Uploaded image for project: 'Couchbase PHP client library'
  1. Couchbase PHP client library
  2. PCBC-526

bulk subdoc operations API

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 2.4.0
    • library
    • None
    • 1

    Description

      Currently, the lookupIn function takes only one value for the document key. Could we have bulk operations on subdocuments like we have for regular document operations?

      Currently, the below operation works:

      $res = $bucket->lookupIn("airline_10123")
                    ->get("name")
                    ->execute();
      

      We are looking for something similar to the below, where we can pass an array of keys to the lookupIn function.

      $res = $bucket->lookupIn("airline_10","airline_10123","airline_10226")
                    ->get("name")
                    ->execute();
      

      which returns the below error currently:

      PHP Warning:  Couchbase\Bucket::lookupIn() expects exactly 1 parameter, 3 given in /vagrant/test.php on line 16
      PHP Fatal error:  Call to a member function get() on a non-object in /vagrant/test.php on line 17
      

      Attachments

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

        Activity

          People

            pramod Pramod Narikuzhiyil [X] (Inactive)
            pramod Pramod Narikuzhiyil [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty