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

Add ability to modify document bodies during compaction

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Duplicate
    • Major
    • feature-backlog
    • 2.0-beta-2, 2.0
    • forestdb
    • Security Level: Public
    • None

    Description

      It's trivial to add a callback hook that allows the app to modify a document body as it's being written to the new file during compaction. This has a couple of uses:

      • Schema migration – it's an efficient and atomic way to change the data format of all or many documents.
      • Discarding obsolete data — for example, a doc might store a time series of records, and the older ones could be pruned during the compaction.
      • Removing file offsets — if a doc stores a file offset to an earlier revision of itself (something I'm going to be doing for implementing revision trees) this needs to get removed during compaction since the offset (and the older revision) are no longer valid.

      Attachments

        For Gerrit Dashboard: MB-7333
        # Subject Branch Project Status CR V

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There is 1 open Gerrit change

                PagerDuty