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

[Tech Request]: optimize composite key pushdown filter exprs #16146

Closed
2 tasks done
XuPeng-SH opened this issue May 15, 2024 · 2 comments
Closed
2 tasks done

[Tech Request]: optimize composite key pushdown filter exprs #16146

XuPeng-SH opened this issue May 15, 2024 · 2 comments
Assignees
Labels
area/performance kind/tech-request New feature or request priority/p0 Critical feature that should be implemented in this version
Milestone

Comments

@XuPeng-SH
Copy link
Contributor

Is there an existing issue for the same tech request?

  • I have checked the existing issues.

Does this tech request not affect user experience?

  • This tech request doesn't affect user experience.

What would you like to be added ?

(a,b,c) are composite keys

a=? and b in (?,?...) ==> __mo_cpkey_col prefix_in (?,?...)
a=? and b = ? and c in (?,?...) ==> __mo_cpkey_col in (?,?...)

Why is this needed ?

No response

Additional information

No response

@XuPeng-SH
Copy link
Contributor Author

XuPeng-SH commented Jun 5, 2024

image

SELECT count(*) AS low_stock FROM ( SELECT s_w_id, s_i_id, s_quantity FROM bmsql_stock WHERE s_w_id = ? AND s_quantity < ? AND s_i_id IN ( SELECT ol_i_id FROM bmsql_district JOIN bmsql_order_line ON ol_w_id = d_w_id AND ol_d_id = d_id AND ol_o_id >= d_next_o_id - 20 AND ol_o_id < d_next_o_id WHERE d_w_id = ? AND d_id = ? ) ) AS L

s_w_id and s_i_id are composite primary keys.

@aunjgr
Copy link
Contributor

aunjgr commented Jun 11, 2024

feature is implemented.

@aunjgr aunjgr assigned XuPeng-SH and unassigned aunjgr Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/performance kind/tech-request New feature or request priority/p0 Critical feature that should be implemented in this version
Projects
None yet
Development

No branches or pull requests

2 participants