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

need a new function to extract selected object pairs

    XMLWordPrintable

Details

    Description

      In order to assist a couple of customers who are doing time series work, we need a new function that given an object will produce an array of object pairs selecting only fields which match a certain pattern.
      The idea here is since scanning is much faster than unmarshalling, we can unmarshall only those fields that qualify and we can further optimize things by producing an array whose "val" elements are themselves delayed parsing documents.
      In tests done for MB-30695 we can lower latency of an unmarshall intensive query by 25% just by using this trick.
      While we are doing the work - we can tighten the code for object_names(), object_pairs() and object_values().

      Attachments

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

        Activity

          People

            mihir.kamdar Mihir Kamdar (Inactive)
            marco.greco Marco Greco (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                PagerDuty