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 3939
4040 # Estimates the number of documents in the collection and sets a time limit on the operation
4141 # start-modify-estimate
42- result = collection . estimated_document_count ( max_time : 1 )
42+ result = collection . estimated_document_count ( max_time_ms : 1000 )
4343 puts "Estimated number of documents: #{ result } "
4444 # end-modify-estimate
4545end
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
248248API Documentation
249249-----------------
250250
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
252252guide, see the following API documentation:
253253
254254- `count_documents <{+api-root+}/Mongo/Collection.html#count_documents-instance_method>`__
You can’t perform that action at this time.
0 commit comments