Details
-
Improvement
-
Resolution: Fixed
-
Minor
-
2.5.1
-
Security Level: Public
-
None
Description
It would make life easier for (some) clients if ForestDB supported a reverse iteration option. This would simply return the same documents but in reverse order.
Both Couchbase Lite and Couchbase Server have APIs that require the ability to reverse the order of query results. I'm currently implementing this for Couchbase Lite.
- It complicates my logic since I have to add a layer of indirection over the ForestDB iterator;
- It's less memory efficient because I have to buffer up all the results in memory;
- It's less parallelizable because I can't return any results to the caller until the entire iteration is complete.