tikv/tikv

Support scanning multiple ranges

Open

#4.239 geöffnet am 20. Feb. 2019

Auf GitHub ansehen
 (8 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Rust (2.189 Forks)batch import
component/performancedifficulty/mediumhelp wantedsig/transactionstatus/mentortype/enhancement

Repository-Metriken

Stars
 (15.922 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 28T 9h) (68 gemergte PRs in 30 T)

Beschreibung

Feature Request

Scanning multiple ranges (in Coprocessor) is not efficient currently because for each range we need to rebuild the rocksdb iterator. This results in a strange case that scanning from a to z can be faster than scanning from a to c, from f to g, from x to z.

We can support scanning multiple (ordered) ranges in the mvcc scanner, by using the same rocksdb iterator. Each time for a new range, we can next() for several times and then seek() for it, just like what we did in current mvcc process.

Contributor Guide