[YSQL] Re-evaluate the constant trimming optimization #26120
Labels
area/ysql
Yugabyte SQL (YSQL)
kind/bug
This issue is a bug
priority/medium
Medium priority issue
status/awaiting-triage
Issue awaiting triage
Jira Link: DB-15447
Description
Re-evaluate the below optimziation. Do we gain much from the below optimization.
Query
has a prefix length of 3
because inserting values
Should return 1 row. And the query returns 0 rows with prefix length 2.
After #17741 is resolved, we should push down a prefix length of 2 in the above case.
This also allows us to remove the need for using get_op_opfamily_strategy in yb_is_const_clause_for_distinct_pushdown function. Since get_op_opfamily_strategy can lead to negative caching issues, this removal is desirable.
Issue Type
kind/bug
Warning: Please confirm that this issue does not contain any sensitive information
The text was updated successfully, but these errors were encountered: