Skip to content

Commit 83989c3

Browse files
jason-price-mongodbjason-price-mongodb
andauthored
DOCSP-21019-revert-time-series-and-indexes-updates (#688)
* DOCSP-21019-revert-time-series-and-indexes-updates * DOCSP-21019-revert-time-series-and-indexes-updates Co-authored-by: jason-price-mongodb <[email protected]>
1 parent 1912180 commit 83989c3

File tree

2 files changed

+2
-80
lines changed

2 files changed

+2
-80
lines changed

source/core/timeseries/timeseries-limitations.txt

Lines changed: 2 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -59,79 +59,14 @@ To remove all documents from a collection, use the
5959

6060
.. _timeseries-limitations-secondary-indexes:
6161

62-
Time Series Secondary Indexes
63-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
62+
Secondary Indexes
63+
~~~~~~~~~~~~~~~~~
6464

6565
You can add :term:`secondary indexes <secondary index>` on the fields
6666
specified as the ``timeField`` and the ``metaField``. If the field value
6767
for the ``metaField`` field is a document, you can also create secondary
6868
indexes on fields inside that document.
6969

70-
The following sections describe:
71-
72-
- Additional secondary indexes you can add.
73-
74-
- Secondary index limitations.
75-
76-
Time Series Secondary Indexes in MongoDB 5.3
77-
````````````````````````````````````````````
78-
79-
Starting in MongoDB 5.3:
80-
81-
- You can add the following secondary indexes to a :ref:`time series
82-
collection <manual-timeseries-collection>`:
83-
84-
- :doc:`Partial
85-
</core/index-partial>`, :doc:`2d </core/2d>`, and :doc:`2dsphere
86-
</core/2dsphere>` indexes to a metadata field.
87-
88-
- :doc:`2dsphere </core/2dsphere>` and :doc:`partial
89-
</core/index-partial>` indexes to a measurement field.
90-
91-
- :doc:`Compound index </core/index-compound>` on time, metadata, or
92-
measurement fields.
93-
94-
- If you need to downgrade the Feature Compatibility Version (FCV),
95-
you must first drop any indexes that are incompatible with the
96-
downgraded FCV. See :dbcommand:`setFeatureCompatibilityVersion`.
97-
98-
- You can use the :query:`$or`, :query:`$in`, and :query:`$geoWithin`
99-
operators with :doc:`partial indexes </core/index-partial>` on a time
100-
series collection.
101-
102-
- You can use the :pipeline:`$geoNear` pipeline operator with a:
103-
104-
.. include:: /includes/geoNear-time-series.rst
105-
106-
For example, the following ``sensorData`` collection contains
107-
temperature readings:
108-
109-
.. code-block:: javascript
110-
111-
db.sensorData.insertMany( [
112-
{
113-
"metadata": { "sensorId": 5578, "type": "temperature" },
114-
"timestamp": ISODate("2022-01-15T00:00:00.000Z"),
115-
"temperatureReading": 12
116-
},
117-
{
118-
"metadata": { "sensorId": 5578, "type": "temperature" },
119-
"timestamp": ISODate("2022-01-15T04:00:00.000Z"),
120-
"temperatureReading": 11
121-
}
122-
] )
123-
124-
The following example creates an ascending secondary index on the
125-
``metadata.sensorId`` and ``temperatureReading`` fields in the
126-
``sensorData`` collection:
127-
128-
.. code-block:: javascript
129-
130-
db.sensorData.createIndex( { "metadata.sensorId": 1, "temperatureReading": 1 } )
131-
132-
Secondary Index Limitations
133-
```````````````````````````
134-
13570
In MongoDB 5.1, the ``metaField`` doesn't support :doc:`text
13671
</core/index-text>` indexes.
13772

source/release-notes/5.3.txt

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,6 @@ MongoDB 5.3 introduces the following aggregation operators:
5757
General Improvements
5858
--------------------
5959

60-
Time Series Collection Improvements
61-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
62-
63-
Starting in MongoDB 5.3, you can:
64-
65-
- Add additional :term:`secondary index <secondary index>` types to
66-
:ref:`time series collections <manual-timeseries-collection>`. See
67-
:ref:`timeseries-limitations-secondary-indexes`.
68-
69-
- Use the :pipeline:`$geoNear` pipeline operator with a:
70-
71-
.. include:: /includes/geoNear-time-series.rst
72-
7360
``serverStatus`` Output Change
7461
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7562

0 commit comments

Comments
 (0)