We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9f7444 commit 93e45fcCopy full SHA for 93e45fc
driver-legacy/src/main/com/mongodb/DB.java
@@ -618,7 +618,9 @@ public Object eval(final String code, final Object... args) {
618
* @return result of the execution
619
* @throws MongoException if the operation failed
620
* @mongodb.driver.manual reference/command/dbStats/ Database Stats
621
+ * @deprecated Prefer {@link #command(DBObject)} to run the dbStats command
622
*/
623
+ @Deprecated
624
public CommandResult getStats() {
625
BsonDocument commandDocument = new BsonDocument("dbStats", new BsonInt32(1)).append("scale", new BsonInt32(1));
626
return executeCommand(commandDocument);
0 commit comments