RSDTPS
    Updated 2023-06-08
    Select * FROM (
    (
    select
    'SOL' as "Chain",
    tx_time::date as date,
    avg(tps) as average,
    max(tps) as maximum
    from
    (
    select
    date_trunc('second',block_timestamp) as tx_time,
    count(tx_id) as tps
    from solana.core.fact_transactions
    where block_timestamp::date >= CURRENT_DATE - interval '60 day'
    group by 1
    order by 1
    )
    group by 1,2
    order by 1,2
    )
    UNION
    (
    select
    'ETH' as "Chain",
    tx_time::date as date,
    avg(tps) as average,
    max(tps) as maximum
    from
    (
    select
    date_trunc('second',block_timestamp) as tx_time,
    count(tx_hash) as tps
    from ethereum.core.fact_transactions
    where block_timestamp::date >= CURRENT_DATE - interval '60 day'
    group by 1
    order by 1
    Run a query to Download Data