File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 39
39
40
40
# Estimates the number of documents in the collection and sets a time limit on the operation
41
41
# start-modify-estimate
42
- result = collection . estimated_document_count ( max_time : 1 )
42
+ result = collection . estimated_document_count ( max_time_ms : 1000 )
43
43
puts "Estimated number of documents: #{ result } "
44
44
# end-modify-estimate
45
45
end
Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ estimate of the number of documents in the collection and sets a timeout of
248
248
API Documentation
249
249
-----------------
250
250
251
- To learn more about any of the methods or types discussed in this
251
+ To learn more about any of the methods discussed in this
252
252
guide, see the following API documentation:
253
253
254
254
- `count_documents <{+api-root+}/Mongo/Collection.html#count_documents-instance_method>`__
You can’t perform that action at this time.
0 commit comments