Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion api/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,26 @@ const defs = {
query: STR('The SQL query text'),
count: NUM('How many times the query has run'),
duration: NUM('Total time spent running the query in milliseconds'),
explain: STR('The SQL explain text'),
max: NUM('Longest single query execution in milliseconds'),
explain: ARR(
OBJ({
id: NUM('Query plan node id'),
parent: NUM('Parent query plan node id'),
detail: STR('Human-readable query plan detail'),
}),
'SQLite EXPLAIN QUERY PLAN rows',
),
status: OBJ({
fullscanStep: NUM('Number of full table scan steps'),
sort: NUM('Number of sort operations'),
autoindex: NUM('Rows inserted into transient auto-indices'),
vmStep: NUM('Number of virtual machine operations'),
reprepare: NUM('Number of automatic statement reprepares'),
run: NUM('Number of statement runs'),
filterHit: NUM('Bloom filter bypass hits'),
filterMiss: NUM('Bloom filter misses'),
memused: NUM('Peak memory usage in bytes'),
}, 'SQLite sqlite3_stmt_status counters'),
}),
'Collected query metrics',
),
Expand Down
Loading
Loading