-
Type: Task
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: mongodump
Allow mongodump to sort the data written out on disk by some indexed field. This will require that the dump do an in memory sort and significantly slow down the dump process, however when restoring with indexes, this will give a huge boost in performance due to sequential b-tree writes.
We already get this for free with objectID's because they are always increasing, but if you override _id to be something not increasing it will mean mongorestore will take a really long time due to random btree accesses triggering random IO.
There won't be much advantage unless we sort by _id which is always restored by mongorestore, or if we are restoring indexes as well but the performance boost in terms of random IO will be significant.
- duplicates
-
TOOLS-162 Mongodump should support limit/sort/skip
- Accepted
- is duplicated by
-
TOOLS-27 Add a --reverse or --sort option to mongodump
- Closed
- is related to
-
TOOLS-27 Add a --reverse or --sort option to mongodump
- Closed
- related to
-
TOOLS-96 add ability to sort and manipulate mongoexport output
- Closed