Summary
Add a storage helper for fast table row-count retrieval to reduce repeated full scans.
Why
Several executor paths repeatedly scan prefixes just to count rows; a dedicated helper can simplify code and improve performance.
Tasks
- Add row-count utility in storage layer (
nexum_core/src/storage/engine.rs)
- Refactor executor call sites to use helper where appropriate
- Add unit tests and one integration test
Acceptance Criteria
- Helper returns accurate counts
- Executor logic is cleaner without behavior changes
- Tests cover empty and populated tables
Summary
Add a storage helper for fast table row-count retrieval to reduce repeated full scans.
Why
Several executor paths repeatedly scan prefixes just to count rows; a dedicated helper can simplify code and improve performance.
Tasks
nexum_core/src/storage/engine.rs)Acceptance Criteria