Skip to content

Commit

Permalink
#2206 Work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
benedeki committed Jan 10, 2024
1 parent a798f84 commit fc8fcca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ abstract class MongoRepository[C](mongoDb: MongoDatabase)(implicit ct: ClassTag[
}

def count(): Future[Long] = {
collection.countDocuments().toFuture()
collection.estimatedDocumentCount().toFuture()
}

private[repositories] def getNameFilter(name: String): Bson = {
Expand Down

0 comments on commit fc8fcca

Please sign in to comment.