-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Support to IndexLookUp PushDown #62575
Copy link
Copy link
Closed
Labels
affects-8.5This bug affects the 8.5.x(LTS) versions.This bug affects the 8.5.x(LTS) versions.sig/executionSIG executionSIG executionsig/transactionSIG:TransactionSIG:Transactiontype/feature-requestCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.
Metadata
Metadata
Assignees
Labels
affects-8.5This bug affects the 8.5.x(LTS) versions.This bug affects the 8.5.x(LTS) versions.sig/executionSIG executionSIG executionsig/transactionSIG:TransactionSIG:Transactiontype/feature-requestCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.
Feature Request: IndexLookUp PushDown
When processing queries with indexes, TiDB needs to scan the index to find the row id and then scan the row data via row-ids. This is index lookup. IndexLookup requires 2 RPC from TiDB to TiKV, and causes the latency to be high. If the data and index are in the same TiKV instance, we can push down index lookup to TiKV, saving half of the RPCs. This will save lots of TiDB/TiKV CPU/network resources, and reduce latency.
RFC: #62615
Development Tasks
Proto
TiDB
INDEX_LOOKUP_PUSH_DOWNto parser #62713SelectResultto read multiple outputs from one dist task request. #63318index_lookup_pushdownmay affect other hint even pushdown is not allowed #64520bazel_pushdowntest#64704tidb_index_lookup_pushdown_policyand hintNO_INDEX_LOOKUP_PUSHDOWN#64932TiKV
release-8.5