Skip to content

chore: gate legacy stores behind a feature flag - #624

Merged
milindsrivastava1997 merged 1 commit into
mainfrom
worktree-gate-legacy-stores
Aug 26, 2026
Merged

chore: gate legacy stores behind a feature flag#624
milindsrivastava1997 merged 1 commit into
mainfrom
worktree-gate-legacy-stores

Conversation

@milindsrivastava1997

Copy link
Copy Markdown
Contributor

Summary

  • LegacySimpleMapStoreGlobal/LegacySimpleMapStorePerKey implement the Store trait but are only exercised by the simple_store_bench comparison benchmark — no production code path uses them.
  • Added an off-by-default legacy_stores Cargo feature; gated pub mod legacy; behind it and made the bench target require it (required-features).
  • Effect: default cargo build/check/test no longer compiles the legacy Store impls, so future changes to the Store trait don't need to touch the legacy variants. Run cargo bench --features legacy_stores when the comparison benchmark is actually needed.

Test plan

  • cargo check -p query_engine_rust (default features) builds clean
  • cargo check -p query_engine_rust --benches --features legacy_stores builds clean
  • cargo check -p query_engine_rust --benches (default features) skips the bench target with no error

Legacy SimpleMapStoreGlobal/PerKey implement the Store trait but are only
used by the simple_store_bench comparison benchmark. Gating them behind an
off-by-default legacy_stores feature means future Store trait changes don't
need to touch the legacy variants.
@milindsrivastava1997 milindsrivastava1997 changed the title Gate legacy SimpleMapStore behind a feature flag chore: gate legacy stores behind a feature flag Aug 26, 2026
@milindsrivastava1997
milindsrivastava1997 merged commit 8571055 into main Aug 26, 2026
5 of 6 checks passed
@milindsrivastava1997
milindsrivastava1997 deleted the worktree-gate-legacy-stores branch August 26, 2026 03:09
milindsrivastava1997 added a commit that referenced this pull request Aug 26, 2026
…627)

* wip(query-engine): batched exact-window store query (#609)

Checkpoint before merging main (legacy stores gated behind feature
flag in #624). Not yet wired into scan_windows_via_exact; no tests
yet.

* wip(query-engine): wire batched exact-window query into scan_windows_via_exact (#609)

Checkpoint before rebasing onto main (legacy stores removed in #625).

* fix(query-engine): restore lock_profiling on batch exact-query, dedupe per_key/global

Addresses review feedback on #609's batch method:
- per_key.rs and global.rs had dropped the lock_profiling wait/hold-time
  instrumentation that the single-window path has, on exactly the path
  now most affected by longer lock hold times.
- The per-window epoch-resolution loop (current_epoch/sealed_epochs
  lookup, read-count bookkeeping) was copy-pasted between the two
  backends. Extracted into common::resolve_exact_windows, shared by both.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant