@@ -169,6 +169,7 @@ public interface MongoCollection<TDocument> {
169169 * Counts the number of documents in the collection.
170170 *
171171 * <p>
172+ * Note: For a fast count of the total documents in a collection see {@link #estimatedDocumentCount()}.<br>
172173 * Note: When migrating from {@code count()} to {@code countDocuments()} the following query operators must be replaced:
173174 * </p>
174175 * <pre>
@@ -193,6 +194,7 @@ public interface MongoCollection<TDocument> {
193194 * Counts the number of documents in the collection according to the given options.
194195 *
195196 * <p>
197+ * Note: For a fast count of the total documents in a collection see {@link #estimatedDocumentCount()}.<br>
196198 * Note: When migrating from {@code count()} to {@code countDocuments()} the following query operators must be replaced:
197199 * </p>
198200 * <pre>
@@ -218,6 +220,7 @@ public interface MongoCollection<TDocument> {
218220 * Counts the number of documents in the collection according to the given options.
219221 *
220222 * <p>
223+ * Note: For a fast count of the total documents in a collection see {@link #estimatedDocumentCount()}.<br>
221224 * Note: When migrating from {@code count()} to {@code countDocuments()} the following query operators must be replaced:
222225 * </p>
223226 * <pre>
@@ -244,6 +247,7 @@ public interface MongoCollection<TDocument> {
244247 * Counts the number of documents in the collection.
245248 *
246249 * <p>
250+ * Note: For a fast count of the total documents in a collection see {@link #estimatedDocumentCount()}.<br>
247251 * Note: When migrating from {@code count()} to {@code countDocuments()} the following query operators must be replaced:
248252 * </p>
249253 * <pre>
@@ -269,6 +273,10 @@ public interface MongoCollection<TDocument> {
269273 /**
270274 * Counts the number of documents in the collection according to the given options.
271275 *
276+ * <p>
277+ * Note: For a fast count of the total documents in a collection see {@link #estimatedDocumentCount()}.
278+ * </p>
279+ *
272280 * @param clientSession the client session with which to associate this operation
273281 * @param filter the query filter
274282 * @return a publisher with a single element indicating the number of documents
@@ -281,6 +289,7 @@ public interface MongoCollection<TDocument> {
281289 * Counts the number of documents in the collection according to the given options.
282290 *
283291 * <p>
292+ * Note: For a fast count of the total documents in a collection see {@link #estimatedDocumentCount()}.<br>
284293 * Note: When migrating from {@code count()} to {@code countDocuments()} the following query operators must be replaced:
285294 * </p>
286295 * <pre>
0 commit comments