Skip to content

Conversation

@jasagredo
Copy link
Contributor

@jasagredo jasagredo commented Dec 16, 2025

LSM-trees has no way to easily tell the number of entries in a table. With this PR we keep a counter that we modify as we push differences to the tables.

This was requested by the Performance and Tracing team.

Diff.Insert{} -> True
Diff.Delete -> False
)
diffs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're iterating over diffs in the loop above, consider making these calculations there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🏗 In progress

Development

Successfully merging this pull request may close these issues.

2 participants