picasoAVG TPS 1
Updated 2025-03-02Copy Reference Fork
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
›
⌄
WITH daily_tx AS (
SELECT
DATE_TRUNC('day', BLOCK_TIMESTAMP) AS day,
COUNT(DISTINCT TX_HASH) AS daily_tx_count,
DATEDIFF('second', MIN(BLOCK_TIMESTAMP), MAX(BLOCK_TIMESTAMP)) AS seconds_in_day
FROM boba.core.fact_transactions
WHERE BLOCK_TIMESTAMP >= DATEADD('year', -1, CURRENT_DATE)
GROUP BY 1
)
SELECT
day,
daily_tx_count,
ROUND(daily_tx_count / NULLIF(seconds_in_day, 0), 4) AS "Daily AVG TPS"
FROM daily_tx
ORDER BY day;
QueryRunArchived: QueryRun has been archived