-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#20635] YSQL: Model remote index filter in the base scans cost model
Summary: In case of an Index Scan, storage index filters are applied on secondary index and reduce the number of base table lookups neded. Before this change, this was not correctly modeled in the base scans cost model. After this change, we identify filters that can apply to the secondary index. These filters are applied on the rows that match the index conditions used for LSM index lookup. We compute the selectivity of the index conditions and storage index filters together to estimate the number of base table lookups. Jira: DB-9633 Test Plan: ./yb_build.sh --java-test 'org.yb.pgsql.TestPgCostModelSeekNextEstimation' Reviewers: tverona, tnayak Reviewed By: tnayak Subscribers: yql Differential Revision: https://phorge.dev.yugabyte.com/D31751
- Loading branch information
1 parent
53edd59
commit 8fe3336
Showing
10 changed files
with
983 additions
and
348 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.