Closed
Description
Hi, in the documentation for the methods Collection::count_documents
and Collection::count_documents_with_session
, it is recommended to use another method (Collection::estimated_document_count
). I didn't find any such recommendation nor explanation for this in https://www.mongodb.com/docs/v7.0/reference/method/db.collection.countDocuments/. Furthermore, these methods do not have the same purpose as the recommended one.
If relevant, I would be happy to make a pull request.