Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-846

Refactor _mongoc_write_command_insert_append

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 1.2-rc0
    • None
    • Bulk API, libmongoc
    • None

    Description

      _mongoc_write_command_init_insert and _mongoc_write_command_insert_append differ unnecessarily from the equivalent helper functions for update and remove: the insert functions take an array of documents instead of a single document.

      (The inconsistency dates from the implementation of mongoc_collection_insert_bulk, now deprecated. In any case, mongoc_collection_insert_bulk can be responsible for handling an array of documents instead of pushing that chore down the call stack.)

      Attachments

        Activity

          People

            jesse@mongodb.com A. Jesse Jiryu Davis
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: