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

Add API to get doc body given its bp (file offset)

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.0-beta-2
    • Fix Version/s: feature-backlog
    • Component/s: storage-engine
    • Security Level: Public
    • Labels:
      None

      Description

      To efficiently store CouchDB-style revision trees in CouchStore, we need a way to get to an older revision of a document, at least until the file is compacted. The simplest way to do this is to get the current revision's DocInfo.bp (file offset) and store that value as part of the new revision's body. Then we just need an API to get a document body given a bp value, which is pretty trivial.

      # Subject Project Status CR V
      For Gerrit Dashboard: &For+MB-7335=message:MB-7335

        Activity

        Show
        jens Jens Alfke added a comment - http://review.couchbase.org/#/c/23005/
        Hide
        cihan Cihan Biyikoglu added a comment -

        Jens is this still relevant?

        Show
        cihan Cihan Biyikoglu added a comment - Jens is this still relevant?
        Hide
        jens Jens Alfke added a comment -

        Could be useful for some clients. But for my project (Couchbase Lite) I'm using ForestDB now.

        Show
        jens Jens Alfke added a comment - Could be useful for some clients. But for my project (Couchbase Lite) I'm using ForestDB now.
        Hide
        cihan Cihan Biyikoglu added a comment -

        no needed anymore.

        Show
        cihan Cihan Biyikoglu added a comment - no needed anymore.

          People

          • Assignee:
            jens Jens Alfke
            Reporter:
            jens Jens Alfke
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There is 1 open Gerrit change