Overview
| Artifact ID: | dffab8d05aef58037d529b5bdad47a20cbc1d71a25d066ffcd6cf11da5a704f7 |
|---|---|
| Ticket: | 6811218f58fbca05b6394a20971ba869f5375683
ops: SQL is not its own timing category — 'ops 138ms' cannot say index or store |
| User & Date: | dmestas on 2026-08-25 21:50:18 |
Changes
- 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.