Skip to content

feat: Add insertion optimization and per-index memory attribution#7

Merged
nknize merged 1 commit intomainfrom
feature/perIndexMemMonitoring
Feb 2, 2026
Merged

feat: Add insertion optimization and per-index memory attribution#7
nknize merged 1 commit intomainfrom
feature/perIndexMemMonitoring

Conversation

@nknize
Copy link
Member

@nknize nknize commented Feb 2, 2026

Insertion Performance:

  • Unified data record persistence in insertHere() (was duplicated in basicInsert/split)
  • Added cache lookup fast path in _insert() when eviction disabled
  • Fixed propagateMBRUpdate() clearing cache pointer via setKeyOwned()

Per-Index Memory:

  • Added FieldMemoryStats and per-field tracking to MappingManager
  • Added IndexMemoryStats and printMemoryBreakdown() to IndexDetails
  • Pass field_name through SegmentAllocator for file-to-field registration

Test Fixes:

  • Fixed double-delete in test_xtree.cpp (cache owns mock objects)
  • Fixed use-after-free in test_performance.cpp (removed clearCache before delete)

  Insertion Performance:
  - Unified data record persistence in insertHere() (was duplicated in basicInsert/split)
  - Added cache lookup fast path in _insert() when eviction disabled
  - Fixed propagateMBRUpdate() clearing cache pointer via setKeyOwned()

  Per-Index Memory:
  - Added FieldMemoryStats and per-field tracking to MappingManager
  - Added IndexMemoryStats and printMemoryBreakdown() to IndexDetails
  - Pass field_name through SegmentAllocator for file-to-field registration

  Test Fixes:
  - Fixed double-delete in test_xtree.cpp (cache owns mock objects)
  - Fixed use-after-free in test_performance.cpp (removed clearCache before delete)

Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
@nknize nknize added the feature label Feb 2, 2026
@nknize nknize merged commit 47c4cde into main Feb 2, 2026
5 of 7 checks passed
@nknize nknize deleted the feature/perIndexMemMonitoring branch February 2, 2026 03:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant