Skip to content

Commit 2a4ee12

Browse files
committed
Document BulkOperations limitations.
Closes #4082
1 parent a66438f commit 2a4ee12

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/BulkOperations.java

+7-3
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,14 @@
2424
import com.mongodb.bulk.BulkWriteResult;
2525

2626
/**
27-
* Bulk operations for insert/update/remove actions on a collection. These bulks operation are available since MongoDB
28-
* 2.6 and make use of low level bulk commands on the protocol level. This interface defines a fluent API to add
29-
* multiple single operations or list of similar operations in sequence which can then eventually be executed by calling
27+
* Bulk operations for insert/update/remove actions on a collection. Bulk operations are available since MongoDB 2.6 and
28+
* make use of low level bulk commands on the protocol level. This interface defines a fluent API to add multiple single
29+
* operations or list of similar operations in sequence which can then eventually be executed by calling
3030
* {@link #execute()}.
31+
* <p>
32+
* Bulk operations are issued as one batch that pulls together all insert, update, and delete operations. Operations
33+
* that require individual operation results such as optimistic locking (using {@code @Version}) are not supported and
34+
* the version field remains not populated.
3135
*
3236
* @author Tobias Trelle
3337
* @author Oliver Gierke

0 commit comments

Comments
 (0)