Skip to content

Use equality comparison for CloseStatus in pinot query instead of range #6758

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

Merged
merged 1 commit into from
Mar 27, 2025

Conversation

neil-xie
Copy link
Member

What changed?
Currently we are using CloseStatus < 0 in Pinot to filter the open workflows which is a range query and can not apply inverted index, Pinot will have to do full scan of the table and the query performance is bad. We are switching to use CloseStatus = -1 which is supposed to have better performance

Why?
Query performance

How did you test it?

Potential risks

Release notes

Documentation Changes

Copy link
Member

@bowenxia bowenxia left a comment

Choose a reason for hiding this comment

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

LGTM

@neil-xie neil-xie merged commit 91633d7 into cadence-workflow:master Mar 27, 2025
22 checks passed
@neil-xie neil-xie deleted the CDNC-12774 branch March 27, 2025 21:22
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