-
Notifications
You must be signed in to change notification settings - Fork 301
DOCSP-34449 - Cosmos DB comparison page #938
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
mongoKart
merged 8 commits into
mongodb:master
from
mongoKart:docsp-34449-cosmos-comparison
Dec 15, 2023
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
8d6272e
first draft
mongoKart 46af465
add links
mongoKart dbff237
fix links
mongoKart a2b44dd
fixes
mongoKart 7c3f0fe
remove period
mongoKart 11eaee2
nr feedback
mongoKart 4610a57
nr suggestions
mongoKart dc30a1b
fix
mongoKart File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
.. _cosmosdb-compat: | ||
|
||
:noprevnext: | ||
|
||
============================= | ||
Azure Cosmos DB Compatibility | ||
============================= | ||
|
||
.. facet:: | ||
:name: genre | ||
:values: reference | ||
|
||
.. meta:: | ||
:keywords: microsoft, support | ||
|
||
.. contents:: On this page | ||
:local: | ||
:backlinks: none | ||
:depth: 1 | ||
|
||
.. figure:: /figures/cosmosdb.png | ||
:alt: Azure Cosmos DB logo | ||
|
||
`Azure Cosmos DB for MongoDB <https://learn.microsoft.com/en-us/azure/cosmos-db/mongodb/introduction>`__ | ||
makes it easy to use Azure Cosmos DB as if it were a MongoDB database. | ||
With Azure Cosmos DB, you can run the same application code and use the same drivers | ||
and tools that you use with MongoDB. | ||
|
||
Azure Cosmos DB for MongoDB implements MongoDB's | ||
`Wire Protocol <https://www.mongodb.com/docs/manual/reference/mongodb-wire-protocol/>`__ | ||
to allow MongoDB `drivers <https://www.mongodb.com/docs/drivers/>`__ to connect and | ||
interact with Cosmos DB as though it were a MongoDB host. However, this | ||
implementation has limitations, as outlined in the :ref:`cosmosdb-compat-section` section | ||
of this page. | ||
|
||
Version Information | ||
------------------- | ||
|
||
Azure Cosmos DB supports MongoDB v4.2, or MongoDB v5.0 for vCore clusters. | ||
These versions don't support all the newer features and functionality in the versions of | ||
MongoDB available on `MongoDB Atlas. <https://www.mongodb.com/docs/atlas/>`__ | ||
|
||
.. tip:: MongoDB Version History | ||
|
||
To learn more about the features available in each version of MongoDB, see | ||
`MongoDB Evolved - Version History. <https://www.mongodb.com/evolved>`__ | ||
|
||
.. _cosmosdb-compat-section: | ||
|
||
Compatibility | ||
------------- | ||
|
||
As of October 2023, Azure Cosmos DB is about 32 percent compatible with the | ||
MongoDB API. | ||
|
||
On Azure Cosmos DB for MongoDB v4.2, the following MongoDB v4.2 features are | ||
available in a limited capacity or are not supported at all: | ||
|
||
- **Features**: `Text indexes <https://www.mongodb.com/docs/manual/core/indexes/index-types/index-text/>`__, | ||
`2d indexes <https://www.mongodb.com/docs/manual/core/indexes/index-types/geospatial/2d/#std-label-2d-index>`__, | ||
`hashed indexes <https://www.mongodb.com/docs/manual/core/indexes/index-types/index-hashed/#std-label-index-type-hashed>`__, | ||
`case-insensitive indexes <https://www.mongodb.com/docs/manual/core/index-case-insensitive/>`__, | ||
`sparse indexes <https://www.mongodb.com/docs/manual/core/index-sparse/>`__ | ||
- **Aggregation Stages**: ``$collStats``, ``$bucket``, ``$bucketAuto``, ``$currentOp``, | ||
``$indexStats``, ``$listLocalSessions``, ``$listSessions``, ``$lookup`` | ||
|
||
To learn more about Azure Cosmos DB's compatibility with MongoDB v4.2, | ||
see Microsoft's `Azure Cosmos DB for MongoDB (4.2 server version): Supported features and syntax <https://learn.microsoft.com/en-us/azure/cosmos-db/mongodb/feature-support-42>`__ | ||
documentation. | ||
|
||
For the most current compatibility status between Azure Cosmos DB and MongoDB, see the | ||
`Is Cosmos DB Compatible with MongoDB Atlas? <https://www.iscosmosdbreallymongodb.com/>`__ | ||
mongoKart marked this conversation as resolved.
Show resolved
Hide resolved
|
||
website. | ||
|
||
Support | ||
------- | ||
|
||
MongoDB doesn't offer commercial support for Azure Cosmos DB. For help with this product, | ||
contact `Azure Support. <https://azure.microsoft.com/en-us/support/>`__ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
===================================== | ||
Other Document Database Compatibility | ||
===================================== | ||
|
||
.. toctree:: | ||
:titlesonly: | ||
:maxdepth: 1 | ||
|
||
/documentdb-support | ||
/cosmosdb-support | ||
|
||
See the following pages for information about other document databases' compatibility | ||
with MongoDB: | ||
|
||
- :ref:`documentdb-compat` | ||
- :ref:`cosmosdb-compat` | ||
|
||
mongoKart marked this conversation as resolved.
Show resolved
Hide resolved
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.