Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-3068

need a discussion on how counters are represented

    XMLWordPrintable

Details

    • DOC-S13-Apr06, DOC-2020-S17-Sep06, DOC-2020-S19-Oct04
    • 3

    Description

      Currently, the docs are a bit light on the concepts behind counters.  The basic idea is that SDKs are JSON oriented and SDKs have high-level features behind the counter() operations to make dealing with JSON backed counters simple.  This turns into memcached binary protocol incr/decr at the low level.

      It would be useful if these concepts were described in the docs.

      Concepts:

      • how to initialize counters
      • how counters work with get() and upsert() like other JSON
      • how not to use items you're going to use the counter() functions against (e.g., don't sent them to a JSON object)
      • how to override counters as discussed in JCBC-1156  (canonically, overwrite it with a JSON number)

      And anything else Brett Lawson can think of (please comment!)

      Attachments

        Issue Links

          Activity

            People

              richard.smedley Richard Smedley
              ingenthr Matt Ingenthron
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty