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(query) Use the last chunk and avoid scan if the data is available in the latest ingesting chunk #1978

Merged
merged 3 commits into from
Mar 25, 2025

Conversation

amolnayak311
Copy link
Contributor

@amolnayak311 amolnayak311 commented Mar 24, 2025

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

When TimeRangeChunkScan is provided, all chunkInfos are iterated and the relevant ChunkSetInfos are filtered that contains the data for the given range. The change will avoid this scan and first check if the requested data is available in the currentInfo and return that one chunk of interest.

New behavior :

Just return the currentInfo if thats where all the requested data range lies.

@amolnayak311 amolnayak311 changed the title perf(query) Use the last chunk and avoid scan if the data is availlable in the latest ingesting chunk perf(query) Use the last chunk and avoid scan if the data is available in the latest ingesting chunk Mar 24, 2025
@amolnayak311 amolnayak311 merged commit 9625474 into filodb:develop Mar 25, 2025
1 check passed
amolnayak311 added a commit to amolnayak311/FiloDB that referenced this pull request Mar 25, 2025
amolnayak311 added a commit to amolnayak311/FiloDB that referenced this pull request Mar 25, 2025
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