Skip to content

Commit 6140fcf

Browse files
Docs 16078 support out with time series (#4795) (#4943)
* Docs 16078 support out with time series (#4795) * Draft * Externalized time series config field descriptions * Removed self references * Added missing field * Removed self refs * Added entry to out vs merge comparison table * Removed time series collection limitation from restrictions * caps * Fixed time series reference table syntax for expireAfterSeconds * Internal PR feedback * External PR feedback * External PR feedback * Internal review feedback * Used enum values for time series granularity syntax * Rebuild
1 parent e8e483c commit 6140fcf

6 files changed

+144
-81
lines changed

source/core/timeseries/timeseries-limitations.txt

+4-5
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,11 @@ The following features are not supported for time series collections:
3636
collections are asymmetrically synchronized. For details, see
3737
:realm:`Enable Atlas Device Sync </sync/configure/enable-sync>`.
3838

39-
Aggregation $out and $merge
40-
~~~~~~~~~~~~~~~~~~~~~~~~~~~
39+
Aggregation $merge
40+
~~~~~~~~~~~~~~~~~~
4141

42-
You cannot use the :pipeline:`$out` or :pipeline:`$merge` aggregation
43-
pipeline stages to add data from another collection to a time series
44-
collection.
42+
You cannot use the :pipeline:`$merge` aggregation stage to add data from
43+
another collection to a time series collection.
4544

4645
.. _timeseries-limitations-updates-deletes:
4746

source/core/timeseries/timeseries-procedures.txt

+4-28
Original file line numberDiff line numberDiff line change
@@ -129,41 +129,17 @@ A time series collection includes the following fields:
129129

130130
* - ``timeseries.granularity``
131131
- integer
132-
- Optional. Do not use if setting ``bucketRoundingSeconds`` and
133-
``bucketMaxSpanSeconds``.
134-
135-
Possible values are ``seconds`` (default), ``minutes``, and ``hours``.
136-
137-
Set ``granularity`` to the value that most closely matches
138-
the time between consecutive incoming timestamps. This
139-
improves performance by optimizing how MongoDB stores data in the collection.
140-
141-
For more information on granularity and bucket intervals, see
142-
:ref:`timeseries-granularity`.
132+
- .. include:: /includes/time-series/fact-granularity-field-description.rst
143133

144134
* - ``timeseries.bucketMaxSpanSeconds``
145135
- integer
146-
- Optional. Use with ``bucketRoundingSeconds`` as an alternative
147-
to ``granularity``. Sets the maximum time between timestamps
148-
in the same bucket.
149-
150-
Possible values are 1-31536000.
151-
152-
.. versionadded:: 6.3
153-
136+
- .. include:: /includes/time-series/fact-bucketmaxspanseconds-field-description.rst
154137

155138
* - ``timeseries.bucketRoundingSeconds``
156139
- integer
157-
- Optional. Use with ``bucketMaxSpanSeconds`` as an alternative
158-
to ``granularity``. Must be equal to ``bucketMaxSpanSeconds``.
159-
160-
When a document requires a new bucket, MongoDB rounds down the
161-
document's timestamp value by this interval to set the minimum
162-
time for the bucket.
163-
164-
.. versionadded:: 6.3
140+
- .. include:: /includes/time-series/fact-bucketroundingseconds-field-description.rst
165141

166-
* - ``expireAfterSeconds``
142+
* - ``timeseries.expireAfterSeconds``
167143
- integer
168144
- Optional. Enable the automatic deletion of documents in a
169145
time series collection by specifying the number of seconds
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Optional. Use with ``bucketRoundingSeconds`` as an alternative
2+
to ``granularity``. Sets the maximum time between timestamps
3+
in the same bucket.
4+
5+
Possible values are 1-31536000.
6+
7+
.. versionadded:: 6.3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Optional. Use with ``bucketMaxSpanSeconds`` as an alternative
2+
to ``granularity``. Must be equal to ``bucketMaxSpanSeconds``.
3+
4+
When a document requires a new bucket, MongoDB rounds down the
5+
document's timestamp value by this interval to set the minimum
6+
time for the bucket.
7+
8+
.. versionadded:: 6.3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Optional. Do not use if setting ``bucketRoundingSeconds`` and
2+
``bucketMaxSpanSeconds``.
3+
4+
Possible values are ``seconds`` (default), ``minutes``, and ``hours``.
5+
6+
Set ``granularity`` to the value that most closely matches
7+
the time between consecutive incoming timestamps. This
8+
improves performance by optimizing how MongoDB stores data in the
9+
collection.
10+
11+
For more information on granularity and bucket intervals, see
12+
:ref:`timeseries-granularity`.

0 commit comments

Comments
 (0)