davisp opened a new pull request #778: Compactor id tree optimization URL: https://github.com/apache/couchdb/pull/778 ## Overview This adds a new optimization to the compactor to read document ids from the `OldDb#db.id_tree` during the first pass of compaction. This saves us a large amount of I/O and CPU since we aren't writing out the emsort structure. However, after the first attempt at swapping the compaction file we have to fall back to using emsort to maintain our ability to do incremental compactions if there were writes during compaction. ## Testing recommendations make eunit apps=couch suites=couch_db_updater_tests ## Related Pull Requests Original PR #754 superseded by this PR cause this one includes a fairly comprehensive test suite. ## Checklist - [x] Code is written and works correctly; - [x] Changes are covered by tests; ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
With regards, Apache Git Services
