-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
area/ysqlYugabyte SQL (YSQL)Yugabyte SQL (YSQL)kind/enhancementThis is an enhancement of an existing featureThis is an enhancement of an existing featurepriority/mediumMedium priority issueMedium priority issue
Milestone
Description
Jira Link: DB-1318
Specifically, if multiple indexes exist in different tablespaces but are otherwise identical (i.e. w.r.t to included and indexed columns) we should pick the one that (best) matches the placement info of the current node (if any).
We'd need to:
- get the tablespace info from the metadata (and their respective placements) --
pg_tablespace
table (should be in cache, if not we might need to add it). - Get the placement info of the current node (we should have this in the tserver
FLAGS_placement_cloud/region/zone
flags) -- seeYBUnsupportedFeatureSignalLevel
inpg_yb_common.c
for how to use them in YSQL layer. - In the cost calculation from ybcam.c we should use this data appropriately.
ramsrivatsa
Metadata
Metadata
Assignees
Labels
area/ysqlYugabyte SQL (YSQL)Yugabyte SQL (YSQL)kind/enhancementThis is an enhancement of an existing featureThis is an enhancement of an existing featurepriority/mediumMedium priority issueMedium priority issue
Type
Projects
Status
Done