Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-3160

replication initial sync should use the fast compact command code to build indexes

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.3.2
    • Affects Version/s: None
    • Component/s: Replication
    • None

      The new compact command has been optimized to be very fast at building several indexes during the compaction of a collection. Keys for all indexes are written to temporary files during a single scan of the collection data.

      The same technique could be applied to initial sync and would make it faster for big collections with several indexes. See the compact code - given that is now done it should be fairly easy to plug in to initial sync (clonecollection).

            Assignee:
            benjamin.becker Ben Becker
            Reporter:
            dwight@mongodb.com Dwight Merriman
            Votes:
            1 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: