Decrease loading Region info in RegionCache when using select * from table limit 1
#39733
Labels
duplicate
Issues or pull requests already exists.
type/enhancement
The issue or PR belongs to an enhancement.
Enhancement
original problem : https://asktug.com/t/topic/996693
Background :
We can see there was too many loadRegion from trace info and increased the query_time.
Taking a deep look :the calling chain is func Select --> func (c *CopClient) Send --> func buildCopTasks --> SplitKeyRangesByLocations --> LocateKey --> findRegionByKey --> loadRegion , the action how to actually loadRegion dues to ranges, in tableReader operand building, the ranges are table start_key and end_key. So, it causes a lot of loadRegion actions.
Enhancement : we think , in this scenario, it could be tuned in the way of just requesting specific region info.
The text was updated successfully, but these errors were encountered: