You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: How to connect a Cosmos DB to a Synapse workspace
2
+
title: Connect to Synapse Link for Cosmos DB
3
+
description: How to connect a Cosmos DB to a Synapse workspace with Synapse Link
4
4
services: synapse-analytics
5
5
author: acomet
6
6
ms.service: synapse-analytics
@@ -11,9 +11,9 @@ ms.author: acomet
11
11
ms.reviewer: jrasnick
12
12
---
13
13
14
-
# Connect and access an Azure Cosmos DB database (preview) in Azure Synapse Analytics
14
+
# Connect to Synapse Link for Cosmos DB
15
15
16
-
This article describes how to access an Azure Cosmos database from Azure Synapse Analytics studio.
16
+
This article describes how to access an Azure Cosmos database from Azure Synapse Analytics studio with Synapse Link.
17
17
18
18
## Prerequisites
19
19
@@ -24,7 +24,7 @@ Before you connect a Cosmos DB account to your workspace, there are a few things
24
24
25
25
## Enable Cosmos DB analytical store
26
26
27
-
To run large-scale analytics into Cosmos DB without impacting your operational performance, we recommend using HTAP collections. HTAP collections can be enabled through the analytical store. Follow this quickstart to enable HTAP containers.
27
+
To run large-scale analytics into Cosmos DB without impacting your operational performance, we recommend enabling Synapse Link for Cosmos DB which bring HTAP capability to a container and built-in support in Azure Synapse. Follow this quickstart to enable Synapse Link for Cosmos DB containers.
28
28
29
29
## Connect a Cosmos DB database to a Synapse workspace
30
30
@@ -35,24 +35,24 @@ From the Data Object Explorer, you can directly connect a Cosmos DB database by
35
35
2. Select **Connect to external data**
36
36
3. Select the API that you want to connect to: SQL or MongoDB
37
37
4. Select ***Continue***
38
-
5. Name the linked service. The name will be displayed in the Object Explorer and used by Synapse run-times to connect to the database and collections. We recommend using a friendly name.
38
+
5. Name the linked service. The name will be displayed in the Object Explorer and used by Synapse run-times to connect to the database and containers. We recommend using a friendly name.
39
39
6. Select the **Cosmos DB account name** and **database name**
40
40
7. Select ***Create***
41
41
42
-
The Cosmos DB database, should be visible under the tab **Linked** in the Cosmos DB section. You can differentiate an HTAP enabled Cosmos DB collection from an OLTP only collection with the following icons:
42
+
Cosmos DB database are visible under the tab **Linked** in the Cosmos DB section. You can differentiate an HTAP enabled Cosmos DB container from an OLTP only container with the following icons:
By right-clicking into a collection, you can use the following gesture that will trigger a Spark or SQL run-time.
54
+
By right-clicking into a container, you have list of gestures that will trigger a Spark or SQL run-time. Writing into a container will happen through the Transactional Store of Cosmos DB and will consume Request Units.
55
55
56
56
## Next steps
57
57
58
-
*[Learn what is supported between Synapse and Cosmos DB](./cosmos-db-integration/concept-cosmos-db-support.md)
58
+
*[Learn what is supported between Synapse and Cosmos DB](./synapse-link/concept-synapse-link-cosmos-db-support.md)
|**Run-time 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)|
25
+
|**Cosmos DB API support**|API support as a Synapse Link| SQL / Mongo DB | SQL / Mongo DB |
26
+
|**Object**|Objects such as table that can be created, pointing directly to Cosmos DB container| View, Table | View |
27
+
|**Read**|Read data from a Cosmos DB container| OLTP / HTAP | HTAP |
28
+
|**Write**|Write data from run-time into a Cosmos DB container| OLTP | n/a |
29
+
30
+
Writing back into a Cosmos DB container from Spark only happens through the transactional store of Cosmos DB and will impact the transactional performance of Cosmos DB by consuming Request Units. 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 container |HTAP container |
0 commit comments