Skip to content

perf(storage): add table row-count helper API #153

@aviralgarg05

Description

@aviralgarg05

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions