Description
Enhancement
#29612 allows TiDB's distsql executors using paging copr requests for pipelined processing. However, paging copr will introduce more RPC rounds. There is a use case which paging copr is a wise choose, only partial data is desired, e.g. a limit executor upon a distsql executor. Limit executor can early stop the distsql executor if distsql executor using paging copr, which does not fetch all data one time.
In most single read cases, limit can be pushed down, so we focus on the double read case. There are some discussions in #21250 which described the problem in double read and got a conclusion that streaming API is the correct solution. As there are still many issues on the streaming API, we use an easier approach, paging API.
This issue suggests the usage of paging API in indexlookup executor which are under limit executor(they can not be pushed down in some cases).
Activity