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
{{ message }}
Repository navigation
Commit f5cf809
Browse filesBrowse the repository at this point in the historyBrowse files
perf(server): drive shell last-error lookup from thread bindings
The last_error subquery in the shell thread query and in the usage-limit
recovery query joined provider sessions to bindings without a fixed
order. With no planner statistics, SQLite drove it from sessions keyed
only on provider_instance_id, so every thread walked every session of
its provider instance: threads x sessions probes per call.
Keep bindings outermost with CROSS JOIN, as the pending-secret lookup in
the same query already does. Each thread now reads its own one or two
bindings through bindings_thread_idx, then each session by primary key.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
0 commit comments