Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
MONGOC_BULK_OPERATION_T(3)	   libmongoc	    MONGOC_BULK_OPERATION_T(3)

Bulk Write Operations

SYNOPSIS
	  typedef struct _mongoc_bulk_operation_t mongoc_bulk_operation_t;

DESCRIPTION
       mongoc_bulk_operation_t provides	an abstraction for submitting multiple
       write operations	as a single batch.

       After	adding	  all	 of    the    write    operations    to	   the
       mongoc_bulk_operation_t,	call mongoc_bulk_operation_execute()  to  exe-
       cute the	operation.

       WARNING:
	  It  is  only valid to	call mongoc_bulk_operation_execute() once. The
	  mongoc_bulk_operation_t must be destroyed afterwards.

       SEE ALSO:
	  Bulk Write Operations
	  mongoc_bulkwrite_t

       NOTE:
	  If  using  MongoDB  server  8.0+,  prefer  mongoc_bulkwrite_t	  over
	  mongoc_bulk_operation_t to reduce network round trips.

	  mongoc_bulkwrite_t  uses  the	bulkWrite server command introduced in
	  MongoDB server 8.0. bulkWrite	command	supports insert,  update,  and
	  delete  operations  in  the  same payload. bulkWrite supports	use of
	  multiple collection namespaces in the	same payload.

	  mongoc_bulk_operation_t uses the insert, update  and	delete	server
	  commands available in	all current MongoDB server versions. Write op-
	  erations  are	 grouped  by type (insert, update, delete) and sent in
	  separate commands. Only one collection may  be  specified  per  bulk
	  write.

AUTHOR
       MongoDB,	Inc

COPYRIGHT
       2009-present, MongoDB, Inc.

1.30.2				 Apr 12, 2025	    MONGOC_BULK_OPERATION_T(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=mongoc_bulk_operation_t&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>

home | help