@@ -169,6 +169,7 @@ public interface MongoCollection<TDocument> {
169
169
* Counts the number of documents in the collection.
170
170
*
171
171
* <p>
172
+ * Note: For a fast count of the total documents in a collection see {@link #estimatedDocumentCount()}.<br>
172
173
* Note: When migrating from {@code count()} to {@code countDocuments()} the following query operators must be replaced:
173
174
* </p>
174
175
* <pre>
@@ -193,6 +194,7 @@ public interface MongoCollection<TDocument> {
193
194
* Counts the number of documents in the collection according to the given options.
194
195
*
195
196
* <p>
197
+ * Note: For a fast count of the total documents in a collection see {@link #estimatedDocumentCount()}.<br>
196
198
* Note: When migrating from {@code count()} to {@code countDocuments()} the following query operators must be replaced:
197
199
* </p>
198
200
* <pre>
@@ -218,6 +220,7 @@ public interface MongoCollection<TDocument> {
218
220
* Counts the number of documents in the collection according to the given options.
219
221
*
220
222
* <p>
223
+ * Note: For a fast count of the total documents in a collection see {@link #estimatedDocumentCount()}.<br>
221
224
* Note: When migrating from {@code count()} to {@code countDocuments()} the following query operators must be replaced:
222
225
* </p>
223
226
* <pre>
@@ -244,6 +247,7 @@ public interface MongoCollection<TDocument> {
244
247
* Counts the number of documents in the collection.
245
248
*
246
249
* <p>
250
+ * Note: For a fast count of the total documents in a collection see {@link #estimatedDocumentCount()}.<br>
247
251
* Note: When migrating from {@code count()} to {@code countDocuments()} the following query operators must be replaced:
248
252
* </p>
249
253
* <pre>
@@ -269,6 +273,10 @@ public interface MongoCollection<TDocument> {
269
273
/**
270
274
* Counts the number of documents in the collection according to the given options.
271
275
*
276
+ * <p>
277
+ * Note: For a fast count of the total documents in a collection see {@link #estimatedDocumentCount()}.
278
+ * </p>
279
+ *
272
280
* @param clientSession the client session with which to associate this operation
273
281
* @param filter the query filter
274
282
* @return a publisher with a single element indicating the number of documents
@@ -281,6 +289,7 @@ public interface MongoCollection<TDocument> {
281
289
* Counts the number of documents in the collection according to the given options.
282
290
*
283
291
* <p>
292
+ * Note: For a fast count of the total documents in a collection see {@link #estimatedDocumentCount()}.<br>
284
293
* Note: When migrating from {@code count()} to {@code countDocuments()} the following query operators must be replaced:
285
294
* </p>
286
295
* <pre>
0 commit comments