Without a hint SQLite answers the correlated NOT EXISTS with a per-thread stream index scan. On 3000 imported threads with 30000 events that took 150-270ms here and 20.7s in review; with the partial index the importer already names, it takes about 1.5ms. The index ships in the same migration as the V2 tables the guard checks for. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Julius Marminge committed on 10/21/2026, 11:15:45 PMparent4324451
Checks
21 successful · 7 skipped
1 file changedLine totals unavailable