mirror of
https://github.com/isledecomp/isle.pizza.git
synced 2026-06-10 12:17:28 +00:00
|
Some checks failed
Build / build (push) Has been cancelled
The account-deletion reconcile in account.ts uses a correlated subquery to pick the latest-per-event row from memory_completions. Without an index whose leading column is event_id the inner subquery falls back to scanning sqlite_autoindex_memory_completions_1, making the reconcile O(rows^2) — observed cost in production was ~171k rows read for one deletion against ~407 rows. With this covering index the inner becomes a seek and the reconcile drops to ~rows*log(rows). |
||
|---|---|---|
| .. | ||
| 0001_initial.sql | ||
| 0002_drop_char_columns.sql | ||
| 0003_object_id_to_anim_index.sql | ||
| 0004_add_language.sql | ||
| 0005_crash_reports.sql | ||
| 0006_cloud_storage.sql | ||
| 0007_memory_events.sql | ||
| 0008_memory_completions_event_index.sql | ||