You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
selectgas.waiting_levels , max(mutez_per_gas_unit), min(mutez_per_gas_unit), avg(mutez_per_gas_unit) as avg, count(mutez_per_gas_unit), percentile_disc(0.5) within group (order bygas.mutez_per_gas_unit) as median from (
3
-
select
4
-
(level_in_chain - level_in_mempool) as waiting_levels,
5
-
((total_fee -100-150*1)::float / total_gas_used) as mutez_per_gas_unit
6
-
from gas_stats gs where level_in_chain >0and level_in_mempool >0and total_gas_used >0
7
-
) as gas
8
-
group bygas.waiting_levels;
2
+
selectgas.waiting_levels,
3
+
max(mutez_per_gas_unit),
4
+
min(mutez_per_gas_unit),
5
+
avg(mutez_per_gas_unit) as avg,
6
+
count(mutez_per_gas_unit),
7
+
percentile_disc(0.5) within group (order bygas.mutez_per_gas_unit) as median
8
+
from (
9
+
select
10
+
(level_in_chain - level_in_mempool) as waiting_levels,
11
+
((total_fee -100-150*1)::float / total_gas_used) as mutez_per_gas_unit
12
+
from gas_stats gs
13
+
where level_in_chain >0
14
+
and level_in_mempool >0
15
+
and total_gas_used >0
16
+
) as gas
17
+
group bygas.waiting_levels;
18
+
19
+
comment on view mutez_per_gas_unit is 'Statistics for micro tez per gas unit.';
20
+
comment on column mutez_per_gas_unit.waiting_levels is 'Difference between level in chain and level in mempool.';
21
+
comment on column mutez_per_gas_unit.max is 'Maximum price for gas unit.';
22
+
comment on column mutez_per_gas_unit.min is 'Minimum price for gas unit.';
23
+
comment on column mutez_per_gas_unit.avg is 'Average price for gas unit.';
24
+
comment on column mutez_per_gas_unit.count is 'Count of prices for gas unit.';
25
+
comment on column mutez_per_gas_unit.median is 'Percentile (50%) of price for gas unit.';
select network, hash, max(status) as status, max(source) as source, max(expiration_level) as expiration_level, max(level) as level, max(branch) as branch, sum(fee) as fee, max(counter) as max_counter, sum(storage_limit) as storage_limit, sum(gas_limit) as gas_limit, count(*) as num_contents, min(created_at) as created_at from
0 commit comments