2844polygon performence
Updated 2022-07-26Copy Reference Fork
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
31
32
33
34
35
36
›
⌄
select 'Polygon' as "Blockchain",
avg(abs(period)) as average_sec, --in seconds
max(abs(period)) as max_sec,
min(abs(period)) as min_sec
from (
SELECT
distinct BLOCK_NUMBER,
block_timestamp,
LAG(block_timestamp,1) IGNORE NULLS OVER (ORDER BY BLOCK_NUMBER) as last_block_timestamp,
datediff(SECOND,block_timestamp,last_block_timestamp) as period
from polygon.core.fact_blocks
order by BLOCK_NUMBER asc
)
UNION
select 'Algorand' as "Blockchain",
avg(abs(period)) as average_sec, --in seconds
max(abs(period)) as max_sec,
min(abs(period)) as min_sec
from (
SELECT
distinct BLOCK_ID,
block_timestamp,
LAG(block_timestamp,1) IGNORE NULLS OVER (ORDER BY BLOCK_ID) as last_block_timestamp,
datediff(SECOND,block_timestamp,last_block_timestamp) as period
from flipside_prod_db.algorand.block
order by BLOCK_ID asc
)
UNION
select 'Solana' as "Blockchain",
avg(abs(period)) as average_sec, --in seconds
max(abs(period)) as max_sec,
min(abs(period)) as min_sec
from (
Run a query to Download Data