[YSQL] Use geo-location (tablespace) as a cost component in query planner #7535
Labels
area/ysql
Yugabyte SQL (YSQL)
kind/enhancement
This is an enhancement of an existing feature
priority/medium
Medium priority issue
Milestone
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:
pg_tablespace
table (should be in cache, if not we might need to add it).FLAGS_placement_cloud/region/zone
flags) -- seeYBUnsupportedFeatureSignalLevel
inpg_yb_common.c
for how to use them in YSQL layer.cc @deeps1991 @ramsrivatsa
The text was updated successfully, but these errors were encountered: