Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -84,18 +84,10 @@ stream catches up to the first chunk migration, the ``documentKey`` in the
change stream notification document only includes the ``_id`` of the document,
not the full shard key.

Indexes and Performance
-----------------------
Indexes
-------

Change streams cannot use indexes. MongoDB does not support creating
indexes on the :term:`oplog` collection. Therefore, avoid opening a high
number of :ref:`specifically-targeted <changeStreams-watch-deployment>`
change streams as these can impact server performance.

Change Stream Optimization
~~~~~~~~~~~~~~~~~~~~~~~~~~

.. |change-streams| replace:: change streams

.. include:: /includes/change-streams-optimization.rst