Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-11426

API for compact-in-place operation

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • feature-backlog
    • 2.5.1
    • forestdb
    • Security Level: Public
    • None
    • ForestDB: Oct 26 - Nov 13

    Description

      It would be convenient to have an explicit API for compacting the database in place, i.e. to the same file. This is what auto-compact does, but if auto-compact isn't enabled, or if the caller wants to run it immediately instead of on a schedule, then the caller has to use fdb_compact, which compacts to a separate file.

      I assume the workaround is to compact to a temporary file, then replace the original file with the temporary. But this is several more steps. Since forestdb already contains the logic to compact in place, it'd be convenient if calling fdb_compact(handle, NULL) would do that.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            chiyoung Chiyoung Seo (Inactive)
            jens Jens Alfke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty