Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      The following trivial patch avoids doing a full linear search in some situations and avoids unnecessary calls to couch_btree functions and doing list comprehensions when the list of _local docs is empty.

      It also seems to add a little, performance gain:

      http://graphs.mikeal.couchone.com/#/graph/8bf31813eef7c0b7e37d1ea259020a0b

      1. COUCHDB-1000.patch
        0.9 kB
        Filipe Manana

        Activity

        Hide
        Filipe Manana added a comment -

        Applied to trunk

        Show
        Filipe Manana added a comment - Applied to trunk
        Hide
        Paul Joseph Davis added a comment -

        +1

        Show
        Paul Joseph Davis added a comment - +1
        Hide
        Filipe Manana added a comment -

        Applying it to trunk if no objections raised

        Show
        Filipe Manana added a comment - Applying it to trunk if no objections raised

          People

          • Assignee:
            Filipe Manana
            Reporter:
            Filipe Manana
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development