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

optimize logical operator function in TiFlash #9146

Open
windtalker opened this issue Jun 13, 2024 · 0 comments
Open

optimize logical operator function in TiFlash #9146

windtalker opened this issue Jun 13, 2024 · 0 comments
Labels
type/enhancement The issue or PR belongs to an enhancement.

Comments

@windtalker
Copy link
Contributor

Enhancement

Running query

explain analyze select count(ol_i_id), count(ol_supply_w_id), count(ol_delivery_d) from order_line where ol_i_id <= 100000 and ol_supply_w_id <= 1500 and (ol_delivery_d >= "2021-12-27 09:25:34" or ol_delivery_d is NULL)

Where order_line has 452038522 rows, the profile shows logical operator is very slow in TiFlash(takes up almost 70% cpu time), which is not expected.
Screenshot 2024-06-13 at 16 10 56

@windtalker windtalker added the type/enhancement The issue or PR belongs to an enhancement. label Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

No branches or pull requests

1 participant