Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-680

BulkWrite::count() should return number of operations instead of estimated round-trips

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.2.0-alpha1, 1.2.0
    • Affects Version/s: 1.1.6
    • Component/s: None
    • None

      We currently return php_phongo_bulkwrite_t.commands.len, which is the estimated number of round trips required by a bulk operation. That information is not accessible in libmongoc's public API, and it is also an arbitrary number subject to change (see: CDRIVER-653).

      Most users would expect count() to return the number of operations added to the BulkWrite, so we should switch to returning that value.

      Note: This will also require a documentation update.

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: