Skip to content

Commit 9db0b2e

Browse files
committed
new articles from Arnaud
1 parent 13603b4 commit 9db0b2e

File tree

4 files changed

+101
-0
lines changed

4 files changed

+101
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
title: Supported features between Synapse and Cosmos DB
3+
description: Understand the current list of actions supported between Synapse 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 Synapse and Cosmos DB
15+
This article describes what functionalities are currently supported (and not supported) between Synapse and Cosmos DB analytical store.
16+
17+
## Azure Synapse Analytics support
18+
Here is list of the currently supported features between Azure Synapse and Cosmos DB.
19+
20+
| Category | Description |Spark | SQL serverless | SQL provisioned |
21+
| :-------------------- | :----------------------------------------------------------- |:----------------------------------------------------------- | :----------------------------------------------------------- | :----------------------------------------------------------- |
22+
| **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|
23+
| **Cosmos DB API support** |API support as a Synapse Link| SQL / Mongo DB | SQL / Mongo DB | n/a|
24+
| **Object** |Objects such as table that can be created, pointing directly to Cosmos DB collection| View, Table | View | n/a|
25+
| **Read** |Read data from a Cosmos DB collection| OLTP / HTAP | HTAP | n/a|
26+
| **Write** |Write data from Azure Synapse run-time into a Cosmos DB collection| OLTP | n/a | n/a|
27+
28+
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.
29+
30+
## Supported code-generated actions for Spark
31+
32+
| Gesture | Description |OLTP only collection |HTAP collection |
33+
| :-------------------- | :----------------------------------------------------------- |:----------------------------------------------------------- |:----------------------------------------------------------- |
34+
| **Stream data** |Stream data using Cosmos DB change feed|||
35+
| **Ingest into a collection** |Write back data into a collection with Spark|||
36+
| **Load to data frame** |Load and read data into a Spark dataframe |||
37+
38+
## Supported code-generated actions for SQL serverless
39+
40+
| Gesture | Description |OLTP only collection |HTAP collection |
41+
| :-------------------- | :----------------------------------------------------------- |:----------------------------------------------------------- |:----------------------------------------------------------- |
42+
| **Select top 100** |Preview top 100 items from a collection|X||
43+
| **Create view** |Create a view to directly access data in the collection through Synapse and BI tool|X||
44+
45+
## Next steps
773 Bytes
Loading
641 Bytes
Loading
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
---
2+
title: How to connect a Cosmos DB database to a workspace
3+
description: How to connect a Cosmos DB database to a workspace
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+
# Connect and access an Azure Cosmos DB database in Azure Synapse Analytics
15+
16+
This article describes how to access an Azure Cosmos database from Azure Synapse Analytics studio.
17+
18+
## Prerequisites
19+
Before you connect a Cosmos DB account to your workspace, there are a few things that you need.
20+
21+
* Have an existing Cosmos DB account or create a new account following this [quickstart](https://docs.microsoft.com/azure/cosmos-db/how-to-manage-database-account)
22+
* Have an existing Synapse workspace or create a new workspace following this [quickstart](https://docs.microsoft.com/azure/synapse-analytics/quickstart-create-workspace)
23+
24+
## Enable Cosmos DB analytical store
25+
26+
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+
28+
## Connect a Cosmos DB database to a Synapse workspace
29+
30+
Connecting a Cosmos DB database is done as linked service. A Cosmos DB linked service enables users to browse and explore data, read, and write from Synapse Spark or SQL into Cosmos DB.
31+
32+
From the Data Object Explorer, you can directly connect a Cosmos DB database by doing the following steps:
33+
1. Select ***+*** icon near Data
34+
2. Select **Connect to external data**
35+
3. Select the API that you want to connect to: SQL or MongoDB
36+
4. Select ***Continue***
37+
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+
6. Select the **Cosmos DB account name** and **database name**
39+
7. Select ***Create***
40+
41+
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+
43+
**HTAP collection**:
44+
45+
![HTAP collection](./media/htap-collection.png)
46+
47+
**OLTP only collection**:
48+
49+
![OLTP collection](./media/oltp-collection.png)
50+
51+
## Quickly interact with code-generated actions
52+
53+
By right-clicking into a collection, you can use the following gesture that will trigger a Spark or SQL run-time.
54+
55+
## Next steps
56+
* [Learn what is supported between Synapse and Cosmos DB](./concept-cosmosdb-support.md)

0 commit comments

Comments
 (0)