Artifacts Associated With Ticket 6811218f58
Ticket change [980d99febf] (rid 2670) by dmestas on 2026-08-25 21:29:30:
- comment initialized to:
The breakdown covers zit and ops. Ops time CONTAINS index queries, OLTP reads and store calls, so a slow page can be attributed to 'ops' and no further. The obs.Render struct already carries the fields; nothing populates SQL. Why it is not trivial: index and oltp both open through ncruces/go-sqlite3's driver.Open, so timing every query means a driver wrapper rather than touching call sites. internal/arch pins the dependency set and would need to allow it. Value: until this lands, the remainder between Elapsed and Ops is template execution plus server overhead plus SQL, all mixed. Splitting SQL out is what makes the remainder mean something.
- priority initialized to: "Medium"
- status initialized to: "Open"
- subsystem initialized to: "observability"
- title initialized to:
ops: SQL is not its own timing category — 'ops 138ms' cannot say index or store
- type initialized to: "Feature"
- comment initialized to:
Ticket change [dffab8d05a] (rid 2700) by dmestas on 2026-08-25 21:50:18:
- comment changed to:
Obstacle found while building the drilldown, worth recording before someone else starts. A clean driver wrapper is NOT available: ncruces/go-sqlite3's driver.Open builds its connector through newConnector, which is unexported, so there is no driver.Connector to wrap and sql.OpenDB cannot be handed one. Registering a wrapping database/sql driver would also lose the fts5.Register init hook that index.Open depends on. So this is a larger piece than 'wrap the driver'. Options are to ask upstream for an exported connector, to time at a small number of index call sites and accept partial coverage, or to leave SQL inside ops time and instead make the REMAINDER legible — which the drilldown now partly does by showing what the store cost, leaving the rest visible by subtraction.
- comment changed to:
Ticket change [23793b6626] (rid 2804) by dmestas on 2026-08-26 11:25:16:
- comment changed to:
Landed as the third option this ticket listed: SQL still has no category of its own and still cannot easily get one, so the remainder is named instead of left to subtraction. 'rest' is a column and the lede says what the ops-minus-zit gap contains.
- resolution changed to: "Fixed"
- status changed to: "Fixed"
- comment changed to:
Ticket change [8efee422aa] (rid 12526) by zeitgeist on 2026-09-24 00:54:15:
- Untracked field number: "90"