-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Push down optimisation of TIKV_REGION_STATUS and TiKV_REGION_PEERS #28330
Labels
type/enhancement
The issue or PR belongs to an enhancement.
Comments
This was referenced Sep 25, 2021
12 tasks
12 tasks
IcePigZDB
added a commit
to IcePigZDB/pd
that referenced
this issue
Oct 25, 2021
Signed-off-by: IcePigZDB <icepigzdb@gmail.com>
IcePigZDB
added a commit
to IcePigZDB/pd
that referenced
this issue
Oct 25, 2021
Signed-off-by: IcePigZDB <icepigzdb@gmail.com>
This was referenced Nov 23, 2021
IcePigZDB
added a commit
to IcePigZDB/tidb
that referenced
this issue
Nov 29, 2021
…e_reader.go ref pingcap#28330 Signed-off-by: IcePigZDB <icepigzdb@gmail.com>
This was referenced Dec 12, 2021
qidi1
added a commit
to IcePigZDB/tidb
that referenced
this issue
Dec 12, 2021
ref: pingcap#28330 Signed-off-by: qidi1 <1083369179@qq.com>
IcePigZDB
added a commit
to IcePigZDB/tidb
that referenced
this issue
Dec 13, 2021
ref: pingcap#28330 Signed-off-by: IcePigZDB <icepigzdb@gmail.com>
IcePigZDB
added a commit
to IcePigZDB/tidb
that referenced
this issue
Dec 13, 2021
ref: pingcap#28330 Signed-off-by: IcePigZDB <icepigzdb@gmail.com>
This was referenced Dec 13, 2021
13 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
second phase of
TIDB_HOT_REGIONS
#25281There used to be a proposal pr, close it because of the change is samll and move core info to this issue, new info will be update in this issue.
Description
The existing implementation of
TIKV_REGION_STATUS
andTIKV_REGION_PEERS
fetches all tables' regions infomation, which results in the same overhead of fetching a small table's regions infomation as a large one. To avoid this, some of the predicates can be pushed down to reduce unnecessary data transfer overhead.tikv_region_status
:The optimization idea is to add
TikvRegionStatusExtractor
to push downDB_NAME
,TABLE_NAME
,INDEX_NAME
,TABLE_ID
,INDEX_ID
and addtikvRegionStatusRetriever
to fetch regions information by region range keys, which construct start key and end key pairs from pushed down predicates.Task list:
TiDB:
PD:
We need to support endKey in ScanRegions http interface.
tikv_region_peers
:The optimization idea is to add
TikvRegionPeersExtractor
to push downSTORE_ID
andREGION_ID
and addtikvRegionPeersRetriever
to fetch regions information from PD.Task list:
TiDB:
tikv_region_peers
planner: add extractor for tikv_region_peers #30656tikv_region_peers
executor: add retriver for tikv_region_peers #30657PD: None
The text was updated successfully, but these errors were encountered: