@@ -229,7 +229,8 @@ public interface MongoCollection<TDocument> {
229
229
* Counts the number of documents in the collection.
230
230
*
231
231
* <p>
232
- * Note: When migrating from {@code count()} to {@code countDocuments()} the following query operators must be replaced:
232
+ * Note: For a fast count of the total documents in a collection see {@link #estimatedDocumentCount(SingleResultCallback)}.
233
+ * When migrating from {@code count()} to {@code countDocuments()} the following query operators must be replaced:
233
234
* </p>
234
235
* <pre>
235
236
*
@@ -253,7 +254,8 @@ public interface MongoCollection<TDocument> {
253
254
* Counts the number of documents in the collection according to the given options.
254
255
*
255
256
* <p>
256
- * Note: When migrating from {@code count()} to {@code countDocuments()} the following query operators must be replaced:
257
+ * Note: For a fast count of the total documents in a collection see {@link #estimatedDocumentCount(SingleResultCallback)}.
258
+ * When migrating from {@code count()} to {@code countDocuments()} the following query operators must be replaced:
257
259
* </p>
258
260
* <pre>
259
261
*
@@ -278,7 +280,8 @@ public interface MongoCollection<TDocument> {
278
280
* Counts the number of documents in the collection according to the given options.
279
281
*
280
282
* <p>
281
- * Note: When migrating from {@code count()} to {@code countDocuments()} the following query operators must be replaced:
283
+ * Note: For a fast count of the total documents in a collection see {@link #estimatedDocumentCount(SingleResultCallback)}.
284
+ * When migrating from {@code count()} to {@code countDocuments()} the following query operators must be replaced:
282
285
* </p>
283
286
* <pre>
284
287
*
@@ -304,7 +307,8 @@ public interface MongoCollection<TDocument> {
304
307
* Counts the number of documents in the collection.
305
308
*
306
309
* <p>
307
- * Note: When migrating from {@code count()} to {@code countDocuments()} the following query operators must be replaced:
310
+ * Note: For a fast count of the total documents in a collection see {@link #estimatedDocumentCount(SingleResultCallback)}.
311
+ * When migrating from {@code count()} to {@code countDocuments()} the following query operators must be replaced:
308
312
* </p>
309
313
* <pre>
310
314
*
@@ -330,7 +334,8 @@ public interface MongoCollection<TDocument> {
330
334
* Counts the number of documents in the collection according to the given options.
331
335
*
332
336
* <p>
333
- * Note: When migrating from {@code count()} to {@code countDocuments()} the following query operators must be replaced:
337
+ * Note: For a fast count of the total documents in a collection see {@link #estimatedDocumentCount(SingleResultCallback)}.
338
+ * When migrating from {@code count()} to {@code countDocuments()} the following query operators must be replaced:
334
339
* </p>
335
340
* <pre>
336
341
*
@@ -357,7 +362,8 @@ public interface MongoCollection<TDocument> {
357
362
* Counts the number of documents in the collection according to the given options.
358
363
*
359
364
* <p>
360
- * Note: When migrating from {@code count()} to {@code countDocuments()} the following query operators must be replaced:
365
+ * Note: For a fast count of the total documents in a collection see {@link #estimatedDocumentCount(SingleResultCallback)}.
366
+ * When migrating from {@code count()} to {@code countDocuments()} the following query operators must be replaced:
361
367
* </p>
362
368
* <pre>
363
369
*
0 commit comments