Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-24002

Consider deprecating the bulk API in the mongo shell

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Won't Do
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Shell
    • Server Development Platform

    Description

      The Driver CRUD API spec was implemented in the mongo shell as part of SERVER-17953. The Driver CRUD API spec recommends deprecating the bulk API if the driver already implemented it.

      Q: Didn't we just build a bulk API?

      Yes, most drivers did just build out a bulk API (fluent-bulk-api). While unfortunate, we felt it better to have the bulk api be consistent with the rest of the methods in the CRUD family of operations. However, the fluent-bulk-api is still able to be used as this change is non-backwards breaking. Any driver which implemented the fluent bulk API should deprecate it and drivers that have not built it should not do so.

      Note: The implementation of the Driver CRUD API spec in the mongo shell (crud_api.js) uses the code for the bulk API (bulk_api.js) for executing operations, as does DBCollection.prototype.insert(), DBCollection.prototype.update(), and DBCollection.prototype.remove() when the mongo shell's write mode isn't "legacy".

      Attachments

        Activity

          People

            backlog-server-devplatform [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            16 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: