support lowerBound
and IterReserve
for UnionScan related struct
#45314
Labels
type/enhancement
The issue or PR belongs to an enhancement.
Enhancement
Client-go only have
SnapshotIter
forMemDB
, we could addSnapshotIterReverse
function and used it in UnionScan to improveorder by decs
queries.Related lines
https://github.com/tikv/client-go/blob/e540aa3b9657c4913daafcbc543d7a101488fa50/internal/unionstore/memdb_snapshot.go#L50-L61
and
tidb/executor/mem_reader.go
Line 151 in bbae44b
The text was updated successfully, but these errors were encountered: