File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -74,8 +74,8 @@ Create a Collection
7474-------------------
7575
7676While the Ruby driver for MongoDB does not have a direct ``create_collection``
77- method, you can use the ``database.command `` method with the create command to
78- create a collection with specific options.
77+ method, you can use the ``create `` method to create a collection with
78+ specific options.
7979
8080The following example creates a collection called example_collection with
8181specific options:
@@ -220,8 +220,8 @@ Local Threshold
220220~~~~~~~~~~~~~~~
221221
222222If multiple replica set members match the read preference and tag sets you specify,
223- {+driver-short+} reads from the nearest replica set members, chosen according to
224- their ping time.
223+ {+driver-short+} reads from the nearest replica set members of sharded clusters,
224+ chosen according to their ping time.
225225
226226By default, the driver uses only those members whose ping times are within 15 milliseconds
227227of the nearest member for queries. To distribute reads between members with
Original file line number Diff line number Diff line change 2121 # start-create-collection
2222 database = client . database
2323
24- database . command ( create : ' example_collection' , capped : true , size : 1024 )
24+ ddatabase [ : example_collection] . create ( capped : true , size : 1024 )
2525 # end-create-collection
2626
2727 # start-get-list
You can’t perform that action at this time.
0 commit comments