Skip to content

Commit 492b298

Browse files
committed
RR feedback
1 parent 45ec0fc commit 492b298

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

source/databases-collections.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Access a Database
3939

4040
Access a database by using dictionary-style access on your ``MongoClient`` instance.
4141

42-
The following example accesses a database named "test_database":
42+
The following example accesses a database named ``test_database``:
4343

4444
.. code-block:: python
4545

@@ -50,7 +50,7 @@ Access a Collection
5050

5151
Access a collection by using dictionary-style access on an instance of your database.
5252

53-
The following example accesses a collection named "test_collection":
53+
The following example accesses a collection named ``test_collection``:
5454

5555
.. code-block:: python
5656
:emphasize-lines: 2
@@ -70,7 +70,7 @@ Create a Collection
7070
Use the ``create_collection()`` method to explicitly create a collection in a
7171
MongoDB database.
7272

73-
The following example creates a collection called ``"example_collection"``:
73+
The following example creates a collection called ``example_collection``:
7474

7575
.. code-block:: python
7676
:emphasize-lines: 2
@@ -87,31 +87,31 @@ Time Series Collection
8787
~~~~~~~~~~~~~~~~~~~~~~
8888

8989
Time series collections efficiently store sequences of measurements over a period of time.
90-
The following example creates a time series collection called ``"example_ts_collection"``
91-
with a time field called ``"timestamp"``:
90+
The following example creates a time series collection called ``example_ts_collection``
91+
in which the documents' time field is called ``timestamp``:
9292

9393
.. code-block:: python
9494

9595
database = client["test_database"]
9696
database.create_collection("example_ts_collection", timeseries={"timeField": "timestamp"})
9797

9898
For more information about using time series data with {+driver-short+}, see the
99-
:ref:`<pymongo-time-series>` guide.
99+
:ref:`pymongo-time-series` guide.
100100

101101
Capped Collection
102102
~~~~~~~~~~~~~~~~~
103103

104-
Capped collections have a maximum size that prevent them from growing beyond a specified
105-
limit. The following example creates a capped collection called ``"example_capped_collection"``
106-
with a maximum size of 1000 bytes:
104+
You can create a capped collection that cannot grow beyond a specified memory size or
105+
document count. The following example creates a capped collection called
106+
``example_capped_collection`` that has a maximum size of 1000 bytes:
107107

108108
.. code-block:: python
109109

110110
database = client["test_database"]
111111
database.create_collection("example_capped_collection", capped=True, size=1000)
112112

113-
To learn more about capped collections, see the :manual:`Capped Collections </core/capped-collections/>`
114-
guide in the {+mdb-server+} manual.
113+
To learn more about capped collections, see :manual:`Capped Collections </core/capped-collections/>`
114+
in the {+mdb-server+} manual.
115115

116116
Get a List of Collections
117117
-------------------------

0 commit comments

Comments
 (0)