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

Add mechanism to change compression of an existing collection

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • ALL

    Description

      I'd like to switch my database from Snappy to Zstd compression.
       
      Currently, it doesn't seem that it is possible to change the compression of an existing collection.
       
      It would be nice if there were a way to do this, even if (for example) it required making a new replica set member which "re-compresses" the data to the new algorithm while cloning it.
       
      My account rep is recommending today that I create a new collection and manually copy with mongodump/mongorestore which doesn't seem to be a viable option, for data consistency reasons.

      Attachments

        Activity

          People

            chris.kelly@mongodb.com Chris Kelly
            shields@tablecheck.com Johnny Shields
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: