Commit bf389c9
close #9637
In this pr: [https://github.com/tikv/client-c/pull/193](https://github.com/tikv/client-c/pull/193)
add a bool paramater centralized_schedule for Client::buildBatchCopTasks
When set to true: Regions are concentrated into as few BatchCopTasks as possible
This PR modifies the call to this function, setting the newly added parameter to true when the request is a ANN query.
Signed-off-by: Calvin Neo <calvinneo1995@gmail.com>
Co-authored-by: Yu Jin <yujin.yujin@gmail.com>
Co-authored-by: JaySon-Huang <tshent@qq.com>
Co-authored-by: Calvin Neo <CalvinNeo@users.noreply.github.com>
Co-authored-by: JaySon <tshent@qq.com>
1 parent 62fb024 commit bf389c9
File tree
6 files changed
+54
-3
lines changed- contrib
- dbms/src
- Interpreters
- Server
- Storages
6 files changed
+54
-3
lines changed- OWNERS+79
- cmake/find_grpc.cmake+1
- include/pingcap/RedactHelpers.h+2-1
- include/pingcap/coprocessor/Client.h+18-1
- include/pingcap/kv/RegionCache.h+2-2
- include/pingcap/kv/RegionClient.h+5-3
- src/coprocessor/Client.cc+131-52
- src/kv/RegionCache.cc+25-2
- src/test/batch_coprocessor_test.cc+43
- src/test/lock_resolve_test.cc+1-1
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| 191 | + | |
| 192 | + | |
191 | 193 | | |
192 | 194 | | |
193 | 195 | | |
| |||
2218 | 2220 | | |
2219 | 2221 | | |
2220 | 2222 | | |
| 2223 | + | |
| 2224 | + | |
| 2225 | + | |
| 2226 | + | |
| 2227 | + | |
| 2228 | + | |
| 2229 | + | |
| 2230 | + | |
| 2231 | + | |
| 2232 | + | |
| 2233 | + | |
| 2234 | + | |
| 2235 | + | |
| 2236 | + | |
| 2237 | + | |
| 2238 | + | |
| 2239 | + | |
| 2240 | + | |
| 2241 | + | |
| 2242 | + | |
| 2243 | + | |
| 2244 | + | |
| 2245 | + | |
| 2246 | + | |
| 2247 | + | |
| 2248 | + | |
| 2249 | + | |
| 2250 | + | |
| 2251 | + | |
| 2252 | + | |
| 2253 | + | |
| 2254 | + | |
| 2255 | + | |
| 2256 | + | |
| 2257 | + | |
| 2258 | + | |
| 2259 | + | |
| 2260 | + | |
2221 | 2261 | | |
2222 | 2262 | | |
2223 | 2263 | | |
| |||
2251 | 2291 | | |
2252 | 2292 | | |
2253 | 2293 | | |
| 2294 | + | |
2254 | 2295 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| 193 | + | |
193 | 194 | | |
194 | 195 | | |
195 | 196 | | |
| |||
560 | 561 | | |
561 | 562 | | |
562 | 563 | | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
563 | 567 | | |
564 | 568 | | |
565 | 569 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
849 | 849 | | |
850 | 850 | | |
851 | 851 | | |
| 852 | + | |
852 | 853 | | |
853 | 854 | | |
854 | 855 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1512 | 1512 | | |
1513 | 1513 | | |
1514 | 1514 | | |
| 1515 | + | |
| 1516 | + | |
| 1517 | + | |
1515 | 1518 | | |
1516 | 1519 | | |
1517 | 1520 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
119 | 120 | | |
120 | 121 | | |
121 | | - | |
| 122 | + | |
| 123 | + | |
122 | 124 | | |
123 | 125 | | |
124 | 126 | | |
| |||
0 commit comments