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

bug(query): Query result streaming execution allocated too much mem via RB #1664

Conversation

vishramachandran
Copy link
Member

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) ?

Query result streaming execution used to allocate one RecordBuilder per result SerializedRangeVector.
This is too much allocation and waste of memory.
Instead buffer+group the results and then use one RecordBuilder for several SRVs.
This will result in much less memory use.

Tip: See diff by disabling whitespace changes

@vishramachandran vishramachandran merged commit 7adc382 into filodb:develop Sep 1, 2023
1 check passed
@vishramachandran vishramachandran deleted the streaming-exec-result-perf-bug branch September 1, 2023 16:37
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