Skip to content

Commit fcaf118

Browse files
authored
Merge pull request #88995 from mamccrea/patch-19
Stream Analytics: Update repartition.md
2 parents a4dcf56 + 8008ee0 commit fcaf118

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

articles/stream-analytics/repartition.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: This article describes how to use repartitioning to optimize Azure
44
ms.service: stream-analytics
55
author: mamccrea
66
ms.author: mamccrea
7-
ms.date: 07/26/2019
7+
ms.date: 09/19/2019
88
ms.topic: conceptual
99
ms.custom: mvc
1010
---
@@ -49,10 +49,20 @@ Experiment and observe the resource usage of your job to determine the exact num
4949

5050
## Repartitions for SQL output
5151

52-
When your job uses SQL database for output, use explicit repartitioning to match the optimal partition count to maximize throughput. Since SQL works best with eight writers, repartitioning the flow to eight before flushing, or somewhere further upstream, may benefit job performance. For more information, see [Azure Stream Analytics output to Azure SQL Database](stream-analytics-sql-output-perf.md).
52+
When your job uses SQL database for output, use explicit repartitioning to match the optimal partition count to maximize throughput. Since SQL works best with eight writers, repartitioning the flow to eight before flushing, or somewhere further upstream, may benefit job performance.
53+
54+
When there are more than 8 input partitions, inheriting the input partitioning scheme might not be an appropriate choice. Consider using [INTO](/stream-analytics-query/into-azure-stream-analytics.md#into-shard-count) in your query to explicitly specify the number of output writers.
55+
56+
The following example reads from the input, regardless of it being naturally partitioned, and repartitions the stream tenfold according to the DeviceID dimension and flushes the data to output.
57+
58+
```sql
59+
SELECT * INTO [output] FROM [input] PARTITION BY DeviceID INTO 10
60+
```
61+
62+
For more information, see [Azure Stream Analytics output to Azure SQL Database](stream-analytics-sql-output-perf.md).
5363

5464

5565
## Next steps
5666

5767
* [Get started with Azure Stream Analytics](stream-analytics-introduction.md)
58-
* [Leverage query parallelization in Azure Stream Analytics](stream-analytics-parallelization.md)
68+
* [Leverage query parallelization in Azure Stream Analytics](stream-analytics-parallelization.md)

0 commit comments

Comments
 (0)