Skip to content

Commit

Permalink
convert nulls in avg write amplification
Browse files Browse the repository at this point in the history
  • Loading branch information
insmac committed Nov 29, 2024
1 parent d50ee55 commit 1db382e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web-console/src/scenes/Editor/Metrics/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ select
count(rowCount) numOfWalApplies,
sum(rowCount) numOfRowsApplied,
sum(physicalRowCount) numOfRowsWritten,
avg(physicalRowCount/rowCount) avgWalAmplification
coalesce(avg(physicalRowCount/rowCount), 1) avgWalAmplification
from ${TelemetryTable.WAL}
where tableId = ${id}
and event = 105
Expand Down

0 comments on commit 1db382e

Please sign in to comment.