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

perf(card): Adding config support for DS card flushCount and perf logs for cardinality calculation time #1666

Merged
merged 2 commits into from
Sep 11, 2023

Conversation

sandeep6189
Copy link
Contributor

@sandeep6189 sandeep6189 commented Sep 11, 2023

Pull Request checklist

  • The commit(s) message(s) follows the contribution guidelines ?
  • Tests for the changes have been added (for bug fixes / features) ?
  • Docs have been added / updated (for bug fixes / features) ?

Current behavior : We issue a RocksDB write for each each iteration of partKey while traversing through lucene index during DS cardinality store calculation. For large indexes (10-12 billions), this could take up to 2 hours.

New behavior : Reducing the number of RocksDB write by in-memory aggregation up to a configured flushCount after which we issue bulk RocksDB writes.

@sandeep6189 sandeep6189 merged commit bf8ead0 into filodb:develop Sep 11, 2023
1 check 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