@@ -213,7 +213,9 @@ case class MongoCollection[TResult](private val wrapped: JMongoCollection[TResul
213
213
/**
214
214
* Counts the number of documents in the collection.
215
215
*
216
- * '''Note:''' When migrating from `count()` to `countDocuments()` the following query operators must be replaced:
216
+ * '''Note:'''
217
+ * For a fast count of the total documents in a collection see [[estimatedDocumentCount() ]]
218
+ * When migrating from `count()` to `countDocuments()` the following query operators must be replaced:
217
219
*
218
220
* {{{
219
221
* +-------------+--------------------------------+
@@ -236,7 +238,9 @@ case class MongoCollection[TResult](private val wrapped: JMongoCollection[TResul
236
238
/**
237
239
* Counts the number of documents in the collection according to the given options.
238
240
*
239
- * '''Note:''' When migrating from `count()` to `countDocuments()` the following query operators must be replaced:
241
+ * '''Note:'''
242
+ * For a fast count of the total documents in a collection see [[estimatedDocumentCount() ]]
243
+ * When migrating from `count()` to `countDocuments()` the following query operators must be replaced:
240
244
*
241
245
* {{{
242
246
* +-------------+--------------------------------+
@@ -260,7 +264,9 @@ case class MongoCollection[TResult](private val wrapped: JMongoCollection[TResul
260
264
/**
261
265
* Counts the number of documents in the collection according to the given options.
262
266
*
263
- * '''Note:''' When migrating from `count()` to `countDocuments()` the following query operators must be replaced:
267
+ * '''Note:'''
268
+ * For a fast count of the total documents in a collection see [[estimatedDocumentCount() ]]
269
+ * When migrating from `count()` to `countDocuments()` the following query operators must be replaced:
264
270
*
265
271
* {{{
266
272
* +-------------+--------------------------------+
@@ -285,7 +291,9 @@ case class MongoCollection[TResult](private val wrapped: JMongoCollection[TResul
285
291
/**
286
292
* Counts the number of documents in the collection.
287
293
*
288
- * '''Note:''' When migrating from `count()` to `countDocuments()` the following query operators must be replaced:
294
+ * '''Note:'''
295
+ * For a fast count of the total documents in a collection see [[estimatedDocumentCount() ]]
296
+ * When migrating from `count()` to `countDocuments()` the following query operators must be replaced:
289
297
*
290
298
* {{{
291
299
* +-------------+--------------------------------+
@@ -310,7 +318,9 @@ case class MongoCollection[TResult](private val wrapped: JMongoCollection[TResul
310
318
/**
311
319
* Counts the number of documents in the collection according to the given options.
312
320
*
313
- * '''Note:''' When migrating from `count()` to `countDocuments()` the following query operators must be replaced:
321
+ * '''Note:'''
322
+ * For a fast count of the total documents in a collection see [[estimatedDocumentCount() ]]
323
+ * When migrating from `count()` to `countDocuments()` the following query operators must be replaced:
314
324
*
315
325
* {{{
316
326
* +-------------+--------------------------------+
@@ -336,7 +346,9 @@ case class MongoCollection[TResult](private val wrapped: JMongoCollection[TResul
336
346
/**
337
347
* Counts the number of documents in the collection according to the given options.
338
348
*
339
- * '''Note:''' When migrating from `count()` to `countDocuments()` the following query operators must be replaced:
349
+ * '''Note:'''
350
+ * For a fast count of the total documents in a collection see [[estimatedDocumentCount() ]]
351
+ * When migrating from `count()` to `countDocuments()` the following query operators must be replaced:
340
352
*
341
353
* {{{
342
354
* +-------------+--------------------------------+
0 commit comments