mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-12-05 11:15:01 +03:00
Keep cold SQLite surface probe results and in-flight batches valid across in-memory metadata updates. Clear and discard cold surface probes only when the SQLite disk stamp changes. On transient SQLite read errors, skip inserting permanent negative cache entries in both synced document loading and surface probing. Back off failed candidates by pass count with exponential strides so later refreshes recover after locks clear.