Skip to content

Commit da69b60

Browse files
jason-price-mongodbjeff-allen-mongo
authored andcommitted
DOCS-14702-BSON-subtype-7
1 parent c4327f5 commit da69b60

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

source/reference/bson-types.txt

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,50 @@ the :doc:`Extended JSON </reference/mongodb-extended-json>` reference.
4141
The following sections describe special considerations for particular
4242
BSON types.
4343

44+
.. _document-bson-type-binary-data:
45+
46+
Binary Data
47+
-----------
48+
49+
A BSON binary ``binData`` value is a byte array. A ``binData`` value
50+
has a subtype that indicates how to interpret the binary data. The
51+
following table shows the subtypes.
52+
53+
.. list-table::
54+
:header-rows: 1
55+
56+
* - Number
57+
- Subtype
58+
59+
* - 0
60+
- Generic binary subtype
61+
62+
* - 1
63+
- Function data
64+
65+
* - 2
66+
- Binary (old)
67+
68+
* - 3
69+
- UUID (old)
70+
71+
* - 4
72+
- UUID
73+
74+
* - 5
75+
- MD5
76+
77+
* - 6
78+
- Encrypted BSON value
79+
80+
* - 7
81+
- Compressed time series data
82+
83+
.. versionadded:: 5.2
84+
85+
* - 128
86+
- Custom data
87+
4488
.. _document-bson-type-object-id:
4589
.. _objectid:
4690

source/release-notes/5.2.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ Time Series Collection Data Compression
8888
See :ref:`time series collection behavior
8989
<timeseries-collections-behavior>`.
9090

91+
In addition, starting in MongoDB 5.2, the new :ref:`BSON binary data
92+
<document-bson-type-binary-data>` subtype is used for compressed time
93+
series data.
94+
9195
.. _5.2-rel-notes-repl-sets:
9296

9397
Replica Sets

0 commit comments

Comments
 (0)