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

array index keys max unclear

    XMLWordPrintable

Details

    Description

      "The total size of the array index keys cannot exceed 10K for a single document. The array index key size is calculated using the total size of all array elements being indexed in a single document. If the total array index key size exceeds 10K in a single document, the items are skipped. The following error is logged to indicate that an item is skipped when building the index: "Encoded array key is too long" in the indexer.log file. "

      We should be specific what 10K is, I'm assuming this is 10KB, some people might read that as 10,000 characters, it's not clear.

      Also, the error message "Encoded array key is too long" doesn't appear in the source, there are a couple similar potential error messages. "Encoded secondary array key is too long" and "Encoded secondary key is too long" You can see them at http://src.couchbase.org/source/xref/4.5.0/goproj/src/github.com/couchbase/indexing/secondary/indexer/index_entry.go#132

      Attachments

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

        Activity

          People

            guy.klages Guy Klages (Inactive)
            ianmccloy Ian McCloy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty