[YSQL] Support Bitmap Index Only Scans #21144
Labels
area/ysql
Yugabyte SQL (YSQL)
kind/enhancement
This is an enhancement of an existing feature
priority/medium
Medium priority issue
Jira Link: DB-10084
Description
The following query can be answered by an index only scan:
But this query requires requests to the main table, even though all of it's fields are included in its indexes.
Instead of storing the matching ybctids and using those to query the main table, we could detect that the fields we are requesting are covered by each of the indexes used to access them. We could then store
(ybctid, <target_values>)
in a hash table instead of a ybctid set and avoid a trip to the main table.Issue Type
kind/enhancement
Warning: Please confirm that this issue does not contain any sensitive information
The text was updated successfully, but these errors were encountered: