|
| 1 | +--- |
| 2 | +title: Supported features for Cosmos DB |
| 3 | +description: Understand the current list of actions supported between Azure Synapse Analytics and Cosmos DB |
| 4 | +services: synapse-analytics |
| 5 | +author: acomet |
| 6 | +ms.service: synapse-analytics |
| 7 | +ms.topic: quickstart |
| 8 | +ms.subservice: |
| 9 | +ms.date: 04/21/2020 |
| 10 | +ms.author: acomet |
| 11 | +ms.reviewer: jrasnick |
| 12 | +--- |
| 13 | + |
| 14 | +# Supported features between Azure Synapse Analytics and Cosmos DB |
| 15 | + |
| 16 | +This article describes what functionalities are currently supported (and not supported) between Azure Synapse and Cosmos DB analytical store. |
| 17 | + |
| 18 | +## Azure Synapse support |
| 19 | + |
| 20 | +Here is list of the currently supported features between Azure Synapse and Cosmos DB. |
| 21 | + |
| 22 | +| Category | Description |Spark | SQL serverless | SQL provisioned | |
| 23 | +| :-------------------- | :----------------------------------------------------------- |:----------------------------------------------------------- | :----------------------------------------------------------- | :----------------------------------------------------------- | |
| 24 | +| **Azure Synapse Support ** |Support for read or write by Azure Synapse run-time | ✓ | [Contact Us ](mailto:[email protected]?subject=[Enable%20Preview%20Feature]%20SQL%20serverless%20for%20Cosmos%20DB)| n/a | |
| 25 | +| **Cosmos DB API support** |API support as a Synapse Link| SQL / Mongo DB | SQL / Mongo DB | n/a| |
| 26 | +| **Object** |Objects such as table that can be created, pointing directly to Cosmos DB collection| View, Table | View | n/a| |
| 27 | +| **Read** |Read data from a Cosmos DB collection| OLTP / HTAP | HTAP | n/a| |
| 28 | +| **Write** |Write data from Azure Synapse run-time into a Cosmos DB collection| OLTP | n/a | n/a| |
| 29 | + |
| 30 | +Writing back into a Cosmos DB collection from Spark only happens through the transactional side of Cosmos DB and will impact the transactional performance of Cosmos DB. Data will be automatically replicated into the analytical store if analytical store is enabled at the database level. |
| 31 | + |
| 32 | +## Supported code-generated actions for Spark |
| 33 | + |
| 34 | +| Gesture | Description |OLTP only collection |HTAP collection | |
| 35 | +| :-------------------- | :----------------------------------------------------------- |:----------------------------------------------------------- |:----------------------------------------------------------- | |
| 36 | +| **Stream data** |Stream data using Cosmos DB change feed|✓| ✓ | |
| 37 | +| **Ingest into a collection** |Write back data into a collection with Spark|✓| ✓ | |
| 38 | +| **Load to data frame** |Load and read data into a Spark dataframe |✓| ✓ | |
| 39 | + |
| 40 | +## Supported code-generated actions for SQL serverless |
| 41 | + |
| 42 | +| Gesture | Description |OLTP only collection |HTAP collection | |
| 43 | +| :-------------------- | :----------------------------------------------------------- |:----------------------------------------------------------- |:----------------------------------------------------------- | |
| 44 | +| **Select top 100** |Preview top 100 items from a collection|X| ✓ | |
| 45 | +| **Create view** |Create a view to directly access data in the collection through Synapse and BI tool|X| ✓ | |
| 46 | + |
| 47 | +## Next steps |
| 48 | + |
| 49 | +See the [Connect to Cosmos DB quickstart](../quickstart-connect-cosmos-db.md) |
0 commit comments