diff --git a/source/includes/5.0-changes/no-direct-write-system-views.rst b/source/includes/5.0-changes/no-direct-write-system-views.rst new file mode 100644 index 00000000000..57ddaa7af70 --- /dev/null +++ b/source/includes/5.0-changes/no-direct-write-system-views.rst @@ -0,0 +1,3 @@ +Starting in MongoDB 5.0, for :ref:`featureCompatibilityVersion +` set to ``"5.0"`` or greater, users can no longer write +directly to the :data:`.system.views` collection. \ No newline at end of file diff --git a/source/includes/5.0-mapReduce-deprecated.rst b/source/includes/5.0-mapReduce-deprecated.rst deleted file mode 100644 index b40f606fbe6..00000000000 --- a/source/includes/5.0-mapReduce-deprecated.rst +++ /dev/null @@ -1,5 +0,0 @@ -Starting in MongoDB 5.0, the :dbcommand:`mapReduce` command and -:method:`db.collection.mapReduce()` helper method are deprecated. -Instead, use an :doc:`aggregation pipeline -`, which provides better performance and a -simpler interface than :dbcommand:`mapReduce`. \ No newline at end of file diff --git a/source/reference/system-collections.txt b/source/reference/system-collections.txt index 1865d279fd4..d0be118fc2a 100644 --- a/source/reference/system-collections.txt +++ b/source/reference/system-collections.txt @@ -50,7 +50,7 @@ System collections include these collections stored in the ``admin`` database: .. data:: admin.system.version The :data:`admin.system.version` collection stores metadata to - suport internal operations. Do not modify this collection unless + support internal operations. Do not modify this collection unless specifically instructed to in this documentation or by a MongoDB support engineer. @@ -84,7 +84,7 @@ each database: Starting in MongoDB 4.2, ``.system.indexes`` has been removed (access to the collection has been deprecated since 3.0). - To list the inndexes, use the :dbcommand:`listIndexes` command + To list the indexes, use the :dbcommand:`listIndexes` command instead. .. data:: .system.profile @@ -94,13 +94,15 @@ each database: .. data:: .system.js - The :data:`.system.js` collection holds special JavaScript + The :data:`.system.js` collection stores special JavaScript code for use in :doc:`server side JavaScript `. See - :doc:`/tutorial/store-javascript-function-on-server` for - more information. + :doc:`/tutorial/store-javascript-function-on-server` for more + information. .. data:: .system.views The :data:`.system.views` collection contains information about each :doc:`view ` in the database. + + .. include:: /includes/5.0-changes/no-direct-write-system-views.rst diff --git a/source/release-notes/5.0-compatibility.txt b/source/release-notes/5.0-compatibility.txt index 024d339f4a2..ed23848b506 100644 --- a/source/release-notes/5.0-compatibility.txt +++ b/source/release-notes/5.0-compatibility.txt @@ -57,6 +57,8 @@ Map Reduce Changes General Changes --------------- +- .. include:: /includes/5.0-changes/no-direct-write-system-views.rst + - Starting in MongoDB 5.0, the :dbcommand:`reIndex` command and the :method:`db.collection.reIndex()` shell method may only be run on :term:`standalone` instances.