Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add metrics for index inserts and deletes #2236

Merged
merged 2 commits into from
Feb 10, 2025
Merged

Conversation

jsdt
Copy link
Contributor

@jsdt jsdt commented Feb 10, 2025

Description of Changes

This adds metrics for index insertions and deletions. It relies on the fact that we don't have sparse indexes.

Note that we don't count index insertions for newly added indexes, which we may want to add in the future.

Expected complexity level and risk

1

Testing

Not tested, but seems very low risk, since it mostly uses the row insertion tracking.

Copy link
Collaborator

@joshua-spacetime joshua-spacetime left a comment

Choose a reason for hiding this comment

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

Do we care about bytes inserted/deleted from indexes?

@jsdt
Copy link
Contributor Author

jsdt commented Feb 10, 2025

Do we care about bytes inserted/deleted from indexes?

We might need/want to add that in the future, but I don't think it's worth the extra changes to add right now. Overall it is less important that the bytes written metric, since indexes are totally in memory.

@jsdt jsdt added this pull request to the merge queue Feb 10, 2025
Merged via the queue into master with commit c2d40f8 Feb 10, 2025
13 checks passed
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.

2 participants