Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-3425

Make _doc_ids _changes filter fast-path limit configurable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Database Core
    • Labels:
      None

      Description

      For the builtin filter `_docs_ids`, the maximum number of documents for which we trigger the optimized code path is hardcoded to 100 here:

      https://github.com/apache/couchdb/blob/master/src/couch/src/couch_changes.erl#L32-L34

      It would be helpful if this number was configurable.

        Activity

        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 42b34010841afe00596c579af346651b7202d963 in couchdb's branch refs/heads/master from Alex Anderson
        [ https://gitbox.apache.org/repos/asf?p=couchdb.git;h=42b3401 ]

        Allow configuration of max doc IDs for optimised code path in changes filter

        There are two implementations for filtering the _changes feed by doc_ids. One
        implementation is faster, but requires more server resources. The other is
        cheaper but very slow. This commit allows configuration of the threshold at
        which couch changes to using the slower implementation using:

        [couchdb]
        changes_doc_ids_optimization_threshold = 100

        COUCHDB-3425

        Show
        jira-bot ASF subversion and git services added a comment - Commit 42b34010841afe00596c579af346651b7202d963 in couchdb's branch refs/heads/master from Alex Anderson [ https://gitbox.apache.org/repos/asf?p=couchdb.git;h=42b3401 ] Allow configuration of max doc IDs for optimised code path in changes filter There are two implementations for filtering the _changes feed by doc_ids. One implementation is faster, but requires more server resources. The other is cheaper but very slow. This commit allows configuration of the threshold at which couch changes to using the slower implementation using: [couchdb] changes_doc_ids_optimization_threshold = 100 COUCHDB-3425
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 42b34010841afe00596c579af346651b7202d963 in couchdb's branch refs/heads/COUCHDB-3298-optimize-writing-btree-nodes from Alex Anderson
        [ https://gitbox.apache.org/repos/asf?p=couchdb.git;h=42b3401 ]

        Allow configuration of max doc IDs for optimised code path in changes filter

        There are two implementations for filtering the _changes feed by doc_ids. One
        implementation is faster, but requires more server resources. The other is
        cheaper but very slow. This commit allows configuration of the threshold at
        which couch changes to using the slower implementation using:

        [couchdb]
        changes_doc_ids_optimization_threshold = 100

        COUCHDB-3425

        Show
        jira-bot ASF subversion and git services added a comment - Commit 42b34010841afe00596c579af346651b7202d963 in couchdb's branch refs/heads/ COUCHDB-3298 -optimize-writing-btree-nodes from Alex Anderson [ https://gitbox.apache.org/repos/asf?p=couchdb.git;h=42b3401 ] Allow configuration of max doc IDs for optimised code path in changes filter There are two implementations for filtering the _changes feed by doc_ids. One implementation is faster, but requires more server resources. The other is cheaper but very slow. This commit allows configuration of the threshold at which couch changes to using the slower implementation using: [couchdb] changes_doc_ids_optimization_threshold = 100 COUCHDB-3425

          People

          • Assignee:
            Unassigned
            Reporter:
            alxndrsn Alex Anderson
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development