From 9d3e89a038c0b7c1bdf6c75783e7b029645ebc4d Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Wed, 25 Nov 2026 12:00:41 +0100 Subject: [PATCH] Added the Qdrant issue about the WAL replay to the legacy WAL shim --- .../compatibility-shims/2026-11-qdrant-edge-legacy-wal.md | 4 ++-- runtime/src/qdrant_edge_database.rs | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/documentation/compatibility-shims/2026-11-qdrant-edge-legacy-wal.md b/documentation/compatibility-shims/2026-11-qdrant-edge-legacy-wal.md index 79da4bbce..e15742f63 100644 --- a/documentation/compatibility-shims/2026-11-qdrant-edge-legacy-wal.md +++ b/documentation/compatibility-shims/2026-11-qdrant-edge-legacy-wal.md @@ -2,7 +2,7 @@ - Status: Active - Introduced: 2026-11-24 -- Remove after: when a qdrant-edge release skips the operations of the WAL which its segments already persisted when it loads a store +- Remove after: when a qdrant-edge release skips the operations of the WAL which its segments already persisted when it loads a store, see [qdrant/qdrant#11732](https://github.com/qdrant/qdrant/issues/11732) - Code references: - `runtime/src/qdrant_edge_database.rs` (`acknowledge_legacy_wal`, `WAL_FIRST_INDEX_FILE`, `WAL_FIRST_INDEX_FILE_TEMP`) @@ -10,7 +10,7 @@ Up to qdrant-edge 0.8.0, Qdrant Edge wrote every update of a vector store to its write-ahead log (WAL), but never acknowledged the WAL. Since 0.9.0, loading a store applies every operation of the WAL again which is not marked as acknowledged. The first load of a store written by an older version of AI Studio therefore applies its whole WAL once more. -That WAL holds thousands of operations. Each deletion of a document in there reads and parses every payload of the store, because the fields it filters on have no payload index. For a real store of 317 MB with 20,316 operations in its WAL, the first load had not finished after more than 12 minutes. Meanwhile, every request to the vector database waits, and when the user quits AI Studio before the load is done, the next start begins again. +That WAL holds thousands of operations. Each deletion of a document in there reads and parses every payload of the store, because the fields it filters on have no payload index. For a real store of 317 MB with 20,316 operations in its WAL, the first load had not finished after 39 minutes. Meanwhile, every request to the vector database waits, and when the user quits AI Studio before the load is done, the next start begins again. ## Compatibility Behavior diff --git a/runtime/src/qdrant_edge_database.rs b/runtime/src/qdrant_edge_database.rs index 1f93a9e21..a45e28e39 100644 --- a/runtime/src/qdrant_edge_database.rs +++ b/runtime/src/qdrant_edge_database.rs @@ -1244,7 +1244,8 @@ fn remove_partial_store(path: &Path) -> String { } // Temporary compatibility shim until a qdrant-edge release skips already persisted operations when -// it loads a store: documentation/compatibility-shims/2026-11-qdrant-edge-legacy-wal.md +// it loads a store, see https://github.com/qdrant/qdrant/issues/11732: +// documentation/compatibility-shims/2026-11-qdrant-edge-legacy-wal.md // // Up to qdrant-edge 0.8, Qdrant Edge never acknowledged its WAL. Since 0.9, loading a store applies // every operation of the WAL again which is not marked as acknowledged, so the first load of a store