-
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
Parallel building cop tasks with cop workers in TiKV client. (select * from limit 1 is too slow) #14320
Comments
/pick-up-challenge |
/pick-up-challenge |
@ekalinin pick up issue success |
Hi @ekalinin , Thank you for picking this chanllenge. |
Hi @SunRunAway Yes, i'm working on this issue it the moment.
Current state: did almost all steps, except last one ( |
👍 Sounds great, looking forward your pull request. |
@fzhedu PTAL when you're free, Thanks. |
After #53850, both tiflash and tikv coprocessor load the region info in batch from PD, building all the cop tasks no more taks a long time, I think this issue can be closed. |
Description
The current procedure when sending a cop request is
copIteratorWorker
copIteratorWorker
execute the taskIf we have thousands of tasks, the building step may take too long(and it may load region info from pd), it will enlarge the time of first meeting row.
We need build all cop tasks in a diffrent goroutine, and send tasks which successfully builded immediately to
copIteratorWorker
.Difficulty
Score
Mentor(s)
Recommended Skills
The text was updated successfully, but these errors were encountered: