This question is based on the info provided by Microsoft at https://learn.microsoft.com/en-us/azure/cosmos-db/mongodb/find-request-unit-charge-mongodb?tabs=java-driver I ran a find query using mongo driver and immediately run twice the runCommand described in the documentation. I was expecting the first to return the cost in RUs of the first find command and the second the cost of the cost query, but I receive the same value twice.
mongoRepository.find ... (whatever)
Document stats = database.runCommand(new Document("getLastRequestStatistics", 1));
Double requestCharge = stats.getDouble("RequestCharge");
Document stats2 = database.runCommand(new Document("getLastRequestStatistics", 1));
Double requestCharge2 = stats2.getDouble("RequestCharge");
then requestCharge == requestCharge2
Does it mean the operation is free? or there is a charge? I see no clue in the documentation linked above.