MONGOC_BULKWRITE_T(3)
okay so bestie, this is the libmongoc page for mongoc_bulkwrite_t, and honestly it’s giving “batch all my writes together” energy 💅✨
✨ SYNOPSIS ✨
typedef struct _mongoc_bulkwrite_t mongoc_bulkwrite_t;
🌸 DESCRIPTION 🌸
mongoc_bulkwrite_t is literally an abstraction for submitting multiple write operations as a single batch. No cap. 🫶
After you’ve added all of the write operations to the mongoc_bulkwrite_t, call mongoc_bulkwrite_execute() to execute the operation. That’s the moment. the main character moment. 👑
⚠️ WARNING: It is only valid to callmongoc_bulkwrite_execute()once. Themongoc_bulkwrite_tmust be destroyed afterwards. Like, one and done, bestie — do not try to reuse it. 💀
📝 NOTE: If you’re using MongoDB server 8.0+, prefermongoc_bulkwrite_tovermongoc_bulk_operation_tto reduce network round trips. Highkey the move. ✨
mongoc_bulkwrite_t uses the bulkWrite server command introduced in MongoDB server 8.0. The bulkWrite command supports insert, update, and delete operations in the same payload. And bulkWrite supports use of multiple collection namespaces in the same payload. Multiple namespaces? in one payload? iconic. 🌈
mongoc_bulk_operation_t uses the insert, update and delete server commands available in all current MongoDB server versions. Write operations are grouped by type (insert, update, delete) and sent in separate commands. Only one collection may be specified per bulk write. That’s the vibe check difference, iykyk. 💜
👑 AUTHOR 👑
MongoDB, Inc
🎀 COPYRIGHT 🎀
2009-present, MongoDB, Inc.
okay that’s the whole page, bestie 🫶 this was libmongoc 2.5.6, dated Oct 09, 2026 — mwah 💋✨
📦 where this page comes from
- epel 10: mongo-c-driver-devel 2.5.6-1.el10_3 · Apache-2.0 AND ISC AND MIT AND Zlib
- 💖 girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms