[SERVER-24002] Consider deprecating the bulk API in the mongo shell Created: 01/May/16  Updated: 19/Jun/23  Resolved: 19/Jun/23

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Max Hirschhorn Assignee: [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
Resolution: Won't Do Votes: 0
Labels: move-stm, sdp-backlog-purge
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to DOCS-8670 Link to db.collection.bulkWrite() met... Closed
is related to SERVER-28383 Shell bulk.updateOne allows replacement Closed
Assigned Teams:
Server Development Platform
Participants:

 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".



 Comments   
Comment by Alex Neben [ 19/Jun/23 ]

This has been identified as work that the SDP team won't do in the near term. Please reopen with a comment if you feel this work should be reprioritized and explain why.

Comment by Steven Vannelli [ 10/May/22 ]

Moving this ticket to the Backlog and removing the "Backlog" fixVersion as per our latest policy for using fixVersions.

Generated at Thu Feb 08 04:05:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.