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

Strong recommendation of how to type a document.

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • None
    • memcached, query, XDCR

    Description

      I'm not sure who the correct team is to assign this to but I do feel that we need to make a recommendation on this topic.

      Currently there are two schools of thinking on how to defining the type of a document with in Couchbase Server:

      • Key prefix
      • Type field in the document

      Our examples in blogs and documentation use a mix of both. This leaves our users to make the choice which later down the line can cause them pain as only some features we have or are developing will only work with key prefixing.

      • XDCR filtering
      • Collections (See the comment below)

      It's worth pointing that N1QL is every so easier to use with a type field but can still work on Key prefix. It should also be mentioned that key prefixing from a internal view point is better as it will be cheaper than parsing the whole document.

      Give the points above should we make this recommendation? This will result in having to update the documentation at the very least.

      Attachments

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

        Activity

          People

            chinhong Chin Hong
            pvarley Patrick Varley (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty