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

fix: Remove if check for update time filters when adding shard ID clause in StreamMeasurements #1901

Conversation

tristanvuong2021
Copy link
Contributor

fix: Remove if check for update time filters when adding shard ID clause in StreamMeasurements

StreamMeasurements always orders results by Update time so the shard ID clause should always be added. Testing revealed that with the if check, setting the after field is required for it to work properly.

@wfa-reviewable
Copy link

This change is Reviewable

@tristanvuong2021 tristanvuong2021 marked this pull request as ready for review November 5, 2024 19:05
Copy link
Member

@SanjayVas SanjayVas left a comment

Choose a reason for hiding this comment

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

StreamMeasurements always orders results by Update time

This is the important part, meaning the index is always used. Is this resulting in any buggy behavior, or just a performance hit?

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @tristanvuong2021)

Copy link
Contributor Author

@tristanvuong2021 tristanvuong2021 left a comment

Choose a reason for hiding this comment

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

I didn't look into it closely, but it is giving me no results.

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @tristanvuong2021)

Copy link
Collaborator

@stevenwarejones stevenwarejones left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @tristanvuong2021)

@tristanvuong2021 tristanvuong2021 merged commit f787447 into main Nov 6, 2024
4 checks passed
@tristanvuong2021 tristanvuong2021 deleted the tristanvuong-remove-update-time-check-in-stream-measurements-for-shard branch November 6, 2024 21:46
roaminggypsy pushed a commit that referenced this pull request Nov 26, 2024
…use in StreamMeasurements (#1901)

fix: Remove if check for update time filters when adding shard ID clause
in StreamMeasurements

StreamMeasurements always orders results by Update time so the shard ID
clause should always be added.
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.

4 participants