foundationdb
foundationdb copied to clipboard
Change BufferedCursor to use a priority queue
The buffered cursor is merging the mutations from a lot of different cursors. It currently is implemented by sorting results pulled from all of the cursors, but a priority_queue of cursors should be more efficient.