-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed as not planned
Labels
for: external-projectFor an external project and not something we can fixFor an external project and not something we can fix
Description
Upon reviewing the source code, it was found that MongoTemplate executes the count method. The underlying default is AGGREGATE. Can we specify it as the COMMAND policy, as aggregate takes longer to scan
public long countDocuments(Bson filter, CountOptions options) {
return this.executeCount((ClientSession)null, filter, options, CountStrategy.AGGREGATE);
}
Metadata
Metadata
Assignees
Labels
for: external-projectFor an external project and not something we can fixFor an external project and not something we can fix