*: modify autoid allocator's Alloc() method, add context and tracing #21617
What problem does this PR solve?
We observed a puzzling phenomenon that running the
After this change:
Get auto-id is bad for the performance of the replace statement:
We are not aware of it before.
B.T.W, the clustered index avoids this auto-id allocation, so the performance is much better.
What is changed and how it works?
Every operation involved with networking should be traced.
Change the interface method, add the
How it Works:
Trace the auto-id allocation.