Skip to content

Commit c0208e7

Browse files
Merge remote-tracking branch 'upstream/master' into v6.1
2 parents c113c43 + 28099d3 commit c0208e7

File tree

77 files changed

+1145
-675
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+1145
-675
lines changed

.github/pull_request_template.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,7 @@
1111
- [ ] Is this free of grammatical errors?
1212
- [ ] Is this free of staging / rendering issues?
1313
- [ ] Are all the links working?
14+
15+
## External Review Requirements
16+
17+
[What's expected of an external reviewer?](https://wiki.corp.mongodb.com/display/DE/Reviewing+Guidelines+for+the+MongoDB+Server+Documentation)

snooty.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,8 @@ qe-abbr = ":abbr:`QE (Queryable Encryption)`"
270270
enc-fields-map = "encrypted fields map"
271271
enc-fields-map-title = "Encrypted Fields Map"
272272
shared-library = "Automatic Encryption Shared Library"
273+
shared-library-version = "6.0.0"
274+
shared-library-version-drop-down = "{+shared-library-version+} (current)"
273275
shared-library-package = "``crypt_shared``"
274276
efm = "``encryptedFieldsMap``"
275277
auto-encrypt-options = "autoEncryptionOpts"

source/administration/production-notes.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ especially when running in production.
2727

2828
.. include:: /includes/fact-mms-summary.rst
2929

30+
.. _prod-notes-supported-platforms:
31+
3032
Platform Support
3133
----------------
3234

33-
.. _prod-notes-supported-platforms:
34-
3535
For running **in production**, refer to the
3636
:ref:`prod-notes-recommended-platforms` for operating system
3737
recommendations.

source/contents.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,13 @@ project, this Manual and additional editions of this text.
3636
/crud
3737
/aggregation
3838
/data-modeling
39-
/core/transactions
4039
/indexes
4140
/security
42-
/changeStreams
4341
/replication
4442
/sharding
43+
/changeStreams
44+
/core/timeseries-collections
45+
/core/transactions
4546
/administration
4647
/storage
4748
/faq

source/core/bulk-write-operations.txt

Lines changed: 13 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ perform bulk insert, update, and delete operations.
2424
MongoDB also supports bulk insert through the
2525
:method:`db.collection.insertMany()` method.
2626

27+
.. _bulk-write-operations-ordered-vs-unordered:
28+
2729
Ordered vs Unordered Operations
2830
-------------------------------
2931

@@ -68,83 +70,17 @@ bulkWrite() Methods
6870
Each write operation is passed to :method:`~db.collection.bulkWrite()` as a
6971
document in an array.
7072

71-
For example, the following performs multiple write operations:
72-
73-
The ``characters`` collection contains the following documents:
74-
75-
.. code-block:: javascript
76-
77-
{ "_id" : 1, "char" : "Brisbane", "class" : "monk", "lvl" : 4 },
78-
{ "_id" : 2, "char" : "Eldon", "class" : "alchemist", "lvl" : 3 },
79-
{ "_id" : 3, "char" : "Meldane", "class" : "ranger", "lvl" : 3 }
80-
81-
The following :method:`~db.collection.bulkWrite()` performs multiple
82-
operations on the collection:
83-
84-
.. code-block:: javascript
85-
86-
try {
87-
db.characters.bulkWrite(
88-
[
89-
{ insertOne :
90-
{
91-
"document" :
92-
{
93-
"_id" : 4, "char" : "Dithras", "class" : "barbarian", "lvl" : 4
94-
}
95-
}
96-
},
97-
{ insertOne :
98-
{
99-
"document" :
100-
{
101-
"_id" : 5, "char" : "Taeln", "class" : "fighter", "lvl" : 3
102-
}
103-
}
104-
},
105-
{ updateOne :
106-
{
107-
"filter" : { "char" : "Eldon" },
108-
"update" : { $set : { "status" : "Critical Injury" } }
109-
}
110-
},
111-
{ deleteOne :
112-
{ "filter" : { "char" : "Brisbane" } }
113-
},
114-
{ replaceOne :
115-
{
116-
"filter" : { "char" : "Meldane" },
117-
"replacement" : { "char" : "Tanys", "class" : "oracle", "lvl" : 4 }
118-
}
119-
}
120-
]
121-
);
122-
}
123-
catch (e) {
124-
print(e);
125-
}
126-
127-
The operation returns the following:
128-
129-
.. code-block:: javascript
130-
131-
{
132-
"acknowledged" : true,
133-
"deletedCount" : 1,
134-
"insertedCount" : 2,
135-
"matchedCount" : 2,
136-
"upsertedCount" : 0,
137-
"insertedIds" : {
138-
"0" : 4,
139-
"1" : 5
140-
},
141-
"upsertedIds" : {
142-
143-
}
144-
}
145-
146-
For more examples, see
147-
:ref:`bulkWrite() Examples <bulkwrite-example-bulk-write-operation>`
73+
Example
74+
-------
75+
76+
The example in this section uses the ``pizzas`` collection:
77+
78+
.. include:: /includes/pizza-example-collection.rst
79+
80+
.. include:: /includes/pizza-bulk-write-example.rst
81+
82+
For more examples, see :ref:`bulkWrite() Examples
83+
<bulkwrite-example-bulk-write-operation>`.
14884

14985
Strategies for Bulk Inserts to a Sharded Collection
15086
---------------------------------------------------

source/core/databases-and-collections.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,4 +128,3 @@ or the :method:`db.getCollectionInfos()` method.
128128
/core/materialized-views
129129
/core/capped-collections
130130
/core/clustered-collections
131-
/core/timeseries-collections

source/core/index-multikey.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,11 +231,13 @@ Examples
231231
Index Basic Arrays
232232
~~~~~~~~~~~~~~~~~~
233233

234-
Consider a ``survey`` collection with the following document:
234+
Create a ``survey`` collection with the following document:
235235

236236
.. code-block:: javascript
237237

238-
{ _id: 1, item: "ABC", ratings: [ 2, 5, 9 ] }
238+
db.survey.insertOne(
239+
{ _id: 1, item: "ABC", ratings: [ 2, 5, 9 ] }
240+
)
239241

240242
Create an index on the field ``ratings``:
241243

source/core/link-text-indexes.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
==============================
2-
Perform a Text Search (Legacy)
3-
==============================
1+
===================================
2+
Perform a Text Search (On-Premises)
3+
===================================
44

55
.. default-domain:: mongodb
66

source/core/multikey-index-bounds.txt

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,17 @@ query that specifies multiple predicates on the array and can use a
3232
:ref:`multikey index <index-type-multikey>` bounds if an
3333
:query:`$elemMatch` joins the predicates.
3434

35-
For example, a collection ``survey`` contains documents with a field
36-
``item`` and an array field ``ratings``:
35+
For example, create a ``survey`` collection that contains documents
36+
with a field ``item`` and an array field ``ratings``:
3737

3838
.. code-block:: javascript
3939

40-
{ _id: 1, item: "ABC", ratings: [ 2, 9 ] }
41-
{ _id: 2, item: "XYZ", ratings: [ 4, 3 ] }
40+
db.survey.insertMany(
41+
[
42+
{ _id: 1, item: "ABC", ratings: [ 2, 9 ] },
43+
{ _id: 2, item: "XYZ", ratings: [ 4, 3 ] }
44+
]
45+
)
4246

4347
Create a :ref:`multikey index <index-type-multikey>` on the ``ratings``
4448
array:
@@ -106,13 +110,18 @@ Compound Index on an Array Field
106110

107111
Consider a compound multikey index; i.e. a :ref:`compound index
108112
<index-type-compound>` where one of the indexed fields is an array. For
109-
example, a collection ``survey`` contains documents with a field
113+
example, create a ``survey`` collection that contains documents with a field
110114
``item`` and an array field ``ratings``:
111115

112116
.. code-block:: javascript
113117

114-
{ _id: 1, item: "ABC", ratings: [ 2, 9 ] }
115-
{ _id: 2, item: "XYZ", ratings: [ 4, 3 ] }
118+
db.survey.insertMany(
119+
[
120+
{ _id: 1, item: "ABC", ratings: [ 2, 9 ] },
121+
{ _id: 2, item: "XYZ", ratings: [ 4, 3 ] }
122+
]
123+
)
124+
116125

117126
Create a :ref:`compound index <index-type-compound>` on the ``item``
118127
field and the ``ratings`` field:
@@ -181,12 +190,17 @@ and ratings to ``[[3.0, 6.0]]`` to use the combined bounds of:
181190
"item" : [ [ "L", "Z" ] ], "ratings" : [ [3.0, 6.0] ]
182191

183192
For another example, consider where the scalar fields belong to a nested document.
184-
For instance, a collection ``survey`` contains the following documents:
193+
For instance, create a ``survey`` collection that contains the following documents:
185194

186195
.. code-block:: javascript
187-
188-
{ _id: 1, item: { name: "ABC", manufactured: 2016 }, ratings: [ 2, 9 ] }
189-
{ _id: 2, item: { name: "XYZ", manufactured: 2013 }, ratings: [ 4, 3 ] }
196+
197+
db.survey.insertMany(
198+
[
199+
{ _id: 1, item: { name: "ABC", manufactured: 2016 }, ratings: [ 2, 9 ] },
200+
{ _id: 2, item: { name: "XYZ", manufactured: 2013 }, ratings: [ 4, 3 ] }
201+
]
202+
)
203+
190204

191205
Create a compound multikey index on the scalar fields ``"item.name"``,
192206
``"item.manufactured"``, and the array field ``ratings`` :

source/core/queryable-encryption/reference/shared-library.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ following link:
6969

7070
`MongoDB Download Center <https://www.mongodb.com/try/download/enterprise>`__
7171

72-
- In the **Version** dropdown, select ``6.0.0-rc9 (release candidate)``.
72+
- In the **Version** dropdown, select ``{+shared-library-version-drop-down+}``.
7373
- In the **Platform** dropdown, select your platform.
7474
- In the **Package** dropdown, select ``crypt_shared``.
7575
- Click **Download**.

0 commit comments

Comments
 (0)