HadisehFLOW Speed (redux) 2
Updated 2022-12-13
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
›
⌄
with tb as ( select date(block_timestamp) as date,
'Second 6 Months' as status,
count(DISTINCT tx_id) as total_transaction,
total_transaction/86400 as per_second,
total_transaction/1440 as per_minute,
total_transaction/24 as per_hour
from flow.core.fact_transactions
where TX_SUCCEEDED = 'TRUE'
and date >= '2022-06-15'
group by date,status
UNION
select date(block_timestamp) as date,
'First 6 months' as status,
count(DISTINCT tx_id) as total_transaction,
total_transaction/86400 as per_second,
total_transaction/1440 as per_minute,
total_transaction/24 as per_hour
from flow.core.fact_transactions
where date < '2022-06-01'
and date >= '2022-01-01'
and TX_SUCCEEDED = 'TRUE'
group by date,status)
select status,
avg(total_transaction) as average_transaction,
avg(per_second) as average_per_second,
avg(per_minute) as average_per_minute,
avg(per_hour) as average_per_hour
from tb
group by status
Run a query to Download Data