perf(core): index queued ops by kind and name (schema 43)

The name checks the drain makes before each create, rename and trash,
and the wake of ops waiting for a name, read the whole queue, which made
a large offline batch quadratic to drain. Schema 43 adds an index on
pending_op(kind, name) (B238).
This commit is contained in:
nvrl committed 2026-10-16 11:50:56 +02:00
1 parent fcbb15cb4b
commit 937a0a6824
4 files changed
+73 -2

No files matched your search

+2 -1
View File
@@ -11,7 +11,8 @@ scratch (user data in `staging/` and `recovery/` is never touched by this).
## [Unreleased]
Schema: **42**, unchanged.
Schema: **43**. Queued changes get an index by kind and name. Nothing is rewritten, and the
upgrade takes a moment.
### Fixed
- **A folder deleted on another device took files with it that had never reached Drive.** A new