Skip to content

Commit

Permalink
DOCSP 36306 $out restriction clarification (#6278)
Browse files Browse the repository at this point in the history
* DOCSP-36306  to time series option

* DOCSP-36306  to time series option

* DOCSP-36306 adding tutorial tag

* DOCSP-36306 tech edit

* DOCSP-36306 adding link to mongodump and mongorestore

* DOCSP-36306 typo
  • Loading branch information
ltran-mdb2 authored Feb 8, 2024
1 parent 52ebe0a commit 33f4bf7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ Migrate Data into a Time Series Collection

.. default-domain:: mongodb

.. facet::
:name: genre
:values: tutorial

.. contents:: On this page
:local:
:backlinks: none
Expand All @@ -19,6 +23,15 @@ To migrate data from an existing collection into a :ref:`time series
collection <manual-timeseries-collection>`, use an :pipeline:`$out`
stage in your aggregation pipeline.

.. note::

In MongoDB versions prior to 7.0.3, an aggregation pipeline
cannot use :pipeline:`$out` to output to a time series
collection. To migrate data into a time series collection with
MongoDB versions prior to 7.0.3, use :binary:`~bin.mongodump` and
:binary:`~bin.mongorestore`.


Migrate Data to a Time Series Collection
----------------------------------------

Expand Down
6 changes: 6 additions & 0 deletions source/reference/operator/aggregation/out.txt
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,12 @@ Restrictions
- An aggregation pipeline cannot use ``$out`` inside
:ref:`transactions <transactions>`.

* - :ref:`Time Series Collections <manual-timeseries-landing>`

- In MongoDB versions prior to 7.0.3, an aggregation pipeline
cannot use :pipeline:`$out` to output to a time series
collection.

* - :ref:`view definition <views-landing-page>`

- The ``$out`` stage is not allowed as part of a
Expand Down

0 comments on commit 33f4bf7

Please sign in to comment.