File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -213,6 +213,31 @@ The :update:`$position` modifier for the :update:`push` update operator
213
213
can accept a negative array index value to indicate a position starting
214
214
from the end of the array.
215
215
216
+ .. _3.6-change-streams:
217
+
218
+ Change Streams
219
+ --------------
220
+
221
+ MongoDB 3.6 supports opening change streams against replica sets and
222
+ sharded clusters with replica set shards.
223
+
224
+ Change streams allow applications to access real-time data changes
225
+ without the complexity and risk of tailing the :term:`oplog`.
226
+ Applications can use change streams to subscribe to all data changes
227
+ on a collection and respond to those changes.
228
+
229
+ You can open a change stream from any 3.6-series driver using the
230
+ :method:`db.collection.watch()` method. See the documentation for
231
+ your preferred driver for complete instructions on usage.
232
+
233
+ See :ref:`changeStreams` for more information.
234
+
235
+ .. important::
236
+
237
+ To use change streams, ``featureCompatibilityVersion`` must be set to
238
+ "3.6". For more information, see :ref:`view-fcv` and
239
+ :dbcommand:`setFeatureCompatibilityVersion`.
240
+
216
241
.. _3.6-sessions:
217
242
218
243
You can’t perform that action at this time.
0 commit comments