@@ -16,33 +16,33 @@ Time Series Collection Limitations
16
16
:description: Time Series, IOT
17
17
:keywords: Time Series, IOT
18
18
19
- This page describes limitations of time series collections.
19
+ This page describes limitations on using :ref:`time series collections
20
+ <manual-timeseries-collection>`.
20
21
21
22
Unsupported Features
22
23
~~~~~~~~~~~~~~~~~~~~~
23
24
24
- The following features are not supported for
25
- :ref:`time series collections <manual-timeseries-collection>`.
25
+ The following features are not supported for time series collections:
26
26
27
27
* :atlas:`Atlas Search </atlas-search>`
28
- * :doc :`Change streams </ changeStreams>`
28
+ * :ref :`Change streams <changeStreams>`
29
29
* :ref:`{+csfle+} <manual-csfle-feature>`
30
30
* :realm:`Database Triggers </triggers/database-triggers>`
31
31
* :realm:`GraphQL API </graphql>`
32
- * :realm:`Atlas Device Sync </sync>` (Atlas Device Sync is supported if
33
- the time series collections are asymmetrically synchronized. For
34
- details, see :realm:`Enable Atlas Device Sync
35
- </sync/configure/enable-sync>`.)
32
+ * :ref:`Schema validation rules <schema-validation-overview>`
36
33
* :dbcommand:`reIndex`
37
34
* :dbcommand:`renameCollection`
38
- * :doc:`Schema validation rules </core/schema-validation>`
35
+
36
+ :realm:`Atlas Device Sync </sync>` is only supported if the time series
37
+ collections are asymmetrically synchronized. For details, see
38
+ :realm:`Enable Atlas Device Sync </sync/configure/enable-sync>`.
39
39
40
40
Aggregation $out and $merge
41
41
~~~~~~~~~~~~~~~~~~~~~~~~~~~
42
42
43
- You can't use aggregation pipeline stages :pipeline:`$out` and :pipeline:`$merge`
44
- to output or merge into to :ref:` time series collections
45
- <manual-timeseries-collection>` from another collection.
43
+ You cannot use the :pipeline:`$out` or :pipeline:`$merge` aggregation
44
+ pipeline stages to add data from another collection to a time series
45
+ collection.
46
46
47
47
.. _timeseries-limitations-updates-deletes:
48
48
@@ -54,18 +54,19 @@ operations.
54
54
55
55
Delete commands must meet the following requirements:
56
56
57
- - The query may only match on ``metaField`` field values.
58
- - The delete command may not limit the number of documents to be
59
- deleted. You must use a delete command with ``justOne: false`` or the
57
+ - You can only match on :ref:`metaField <time-series-fields>` field
58
+ values.
59
+ - Your delete command must not limit the number of documents to be
60
+ deleted. Set ``justOne: false`` or use the
60
61
:method:`~db.collection.deleteMany()` method.
61
62
62
63
Update commands must meet the following requirements:
63
64
64
65
.. include:: /includes/time-series/fact-update-limitations.rst
65
66
66
- In MongoDB 5.0, :ref:`Time series collections
67
- <manual-timeseries-collection>` only support insert operations and read
68
- queries. Updates and manual delete operations result in an error.
67
+ In MongoDB 5.0, time series collections only support insert operations
68
+ and read queries. Updates and manual delete operations result in an
69
+ error.
69
70
70
71
To automatically delete old data, :ref:`set up automatic removal (TTL)
71
72
<set-up-automatic-removal>`.
@@ -78,32 +79,32 @@ To remove all documents from a collection, use the
78
79
Time Series Secondary Indexes
79
80
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
80
81
82
+ There is improved support for secondary indexes in MongoDB 6.0.
83
+
81
84
Time Series Secondary Indexes with MongoDB 6.0 and Later
82
85
````````````````````````````````````````````````````````
83
86
84
87
Starting in MongoDB 6.0, you can add a :term:`secondary index <secondary
85
88
index>` to any field.
86
89
87
- These index types aren't supported:
88
-
89
- - :doc:`Text </core/index-text>`
90
- - :doc:`2d </core/2d>`
90
+ These index types are not supported:
91
91
92
- These index properties aren't supported:
92
+ - :ref:`Text indexes <index-feature-text>`
93
+ - :ref:`2d indexes <2d-index>`
94
+ - :ref:`Unique indexes <index-type-unique>`
93
95
94
- - :doc :`TTL </core/ index-ttl>`. For TTL deletion, use
95
- :ref:`expireAfterSeconds <db.createCollection.expireAfterSeconds>`.
96
- - :doc:`Unique </core/index-unique>`
96
+ The :ref :`TTL <index-feature- ttl>` index property is not supported. For
97
+ TTL deletion, use :ref:`expireAfterSeconds
98
+ <db.createCollection.expireAfterSeconds>`.
97
99
98
- The :doc :`multikey index </core/ index-multikey>` type is allowed on the
99
- ``metaField`` only .
100
+ You can only use the :ref :`multikey index <index-type- multikey>` type on
101
+ the ``metaField``.
100
102
101
- These index properties are partially supported:
103
+ These index properties are partially supported. You can create :
102
104
103
- - :doc:`Partial indexes </core/index-partial>` are allowed on all fields
104
- except the ``metaField`` and ``timeField``.
105
- - :doc:`Sparse indexes </core/index-sparse>` are allowed on the
106
- ``metaField`` only.
105
+ - :ref:`partial indexes <index-type-partial>` on every field except
106
+ ``metaField`` and ``timeField``.
107
+ - :ref:`sparse indexes <index-type-sparse>` on the ``metaField``.
107
108
108
109
For improvements to time series secondary indexes available starting in
109
110
MongoDB 6.0, see :ref:`timeseries-add-secondary-index-mongodb-6.0`.
@@ -115,10 +116,10 @@ Time Series Secondary Indexes with MongoDB 5.0 and Earlier
115
116
116
117
In MongoDB 5.0 and earlier:
117
118
118
- - Secondary indexes can only be defined on the ``metaField`` or the
119
- ``timeField``.
119
+ - The ``metaField`` can have secondary indexes.
120
+ - The ``timeField`` can have secondary indexes .
120
121
- If the ``metaField`` is a document, you can add secondary indexes on
121
- fields inside that document.
122
+ fields inside the document.
122
123
123
124
.. seealso::
124
125
@@ -127,18 +128,18 @@ In MongoDB 5.0 and earlier:
127
128
Capped Collections
128
129
~~~~~~~~~~~~~~~~~~
129
130
130
- A time series collection can't be created as a :ref:`capped collection
131
+ You cannot create a time series collection as a :ref:`capped collection
131
132
<manual-capped-collection>`.
132
133
133
134
Modification of Collection Type
134
135
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
135
136
136
- A collection's type can only be set when creating the collection:
137
+ You can only set the collection type when you create a collection:
137
138
138
- - An existing collection can't be converted into a :ref:` time series
139
- collection <manual-capped-collection>` .
140
- - A :ref:` time series collection <manual-capped-collection>` can't be
141
- converted into a different collection type.
139
+ - An existing collection cannot be converted into a time series
140
+ collection.
141
+ - A time series collection cannot be converted into a different
142
+ collection type.
142
143
143
144
To move data from an existing collection to a time series collection,
144
145
:ref:`migrate data into a time series collection
@@ -148,27 +149,29 @@ Modification of ``timeField`` and ``metaField``
148
149
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
149
150
150
151
You can only set a collection's ``timeField`` and ``metaField``
151
- parameters when creating the collection. After creation these parameters
152
- can't be modified .
152
+ parameters when you create the collection. You cannot modify these
153
+ parameters later .
153
154
154
155
.. _timeseries-limitations-granularity:
155
156
156
157
Modification of ``granularity``
157
158
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
158
159
159
- Once the ``granularity`` is set it can only be increased by one level at
160
- a time. From ``"seconds"`` to ``"minutes"`` or from ``"minutes"`` to
161
- ``"hours"``. Other changes are not allowed. If you need to change the
162
- ``granularity`` from ``"seconds"`` to ``"hours"``, first increase the
163
- ``granularity`` to ``"minutes"`` and then to ``"hours"``.
160
+ After you set the ``granularity``, you can only increase it one level at
161
+ a time. The ``granularity`` can change from ``"seconds"`` to
162
+ ``"minutes"`` or from ``"minutes"`` to ``"hours"``. Other changes are
163
+ not allowed.
164
+
165
+ To change the ``granularity`` from ``"seconds"`` to ``"hours"``, first
166
+ increase the ``granularity`` to ``"minutes"`` and then to ``"hours"``.
164
167
165
168
.. _time-series-limitations-sharding:
166
169
167
170
Sharding
168
171
~~~~~~~~
169
172
170
- Starting in MongoDB 5.1 (and 5.0.6), sharded time series collections are
171
- supported .
173
+ Starting in MongoDB 5.1 (and 5.0.6), you can create sharded time series
174
+ collections .
172
175
173
176
In versions earlier than MongoDB 5.0.6, you cannot shard time series
174
177
collections.
@@ -191,14 +194,13 @@ Shard Key Fields
191
194
Resharding
192
195
``````````
193
196
194
- You can't reshard sharded time series collections.
197
+ You cannot reshard sharded time series collections.
195
198
196
199
Transactions
197
200
~~~~~~~~~~~~
198
201
199
- You can't write to :ref:`time series collections
200
- <manual-timeseries-collection>` in :doc:`transactions
201
- </core/transactions>`.
202
+ You cannot write to time series collections in :ref:`transactions
203
+ <transactions>`.
202
204
203
205
.. note::
204
206
@@ -213,3 +215,4 @@ Views
213
215
214
216
- You cannot create a view from a time series bucket collection
215
217
namespace (namely, a collection prefixed with ``system.buckets``).
218
+
0 commit comments