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

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • 1.2.0-alpha1, 1.2.0
    • Affects Version/s: 1.1.6
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • 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:
              Jeremy Mikola
              Reporter:
              Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: