Share via

Azure Data explorer database partitioning

Nathan Sommer 80 Reputation points
2026-01-29T15:08:31.4133333+00:00

Hi,

I'm trying to have a database with 1 big table, partitioned by a column string called UNIT_NUMBER. However, when I change the partition policy, I don't see the partitions and the queries' memory and execution time is higher than expected. Is there something I'm doing wrong?

User's image

Thanks,

Nathan

Azure Data Explorer
Azure Data Explorer

An Azure data analytics service for real-time analysis on large volumes of data streaming from sources including applications, websites, and internet of things devices.

0 comments No comments

Answer accepted by question author
  1. Manoj Kumar Boyini 12,735 Reputation points Microsoft External Staff Moderator
    2026-01-29T16:08:18.3466667+00:00

    Hi Nathan Sommer

    It seems like you're having some challenges with partitioning your Azure Data Explorer database using the UNIT_NUMBER column. Here are a few things you can check and try:

    Confirm Partitioning Policy: Make sure that your partitioning policy is correctly set for the table. Verify that the UNIT_NUMBER is defined correctly as the partition key.

    Memory and Execution Time: Sometimes, high memory usage and execution times can occur if there are too many partitions (over 1,000). Check if you're nearing this limit, as it can lead to performance issues.

    Statistics and Query Performance: If your queries are slow, it may be beneficial to check if statistics on the partitioned indexes are being updated. Use the UPDATE STATISTICS command with the FULLSCAN clause to ensure accurate statistics are based on all rows.

    Partition Management: Ensure you are managing the partitions efficiently. Keeping some partitions empty, especially at either end of your partition range, can help avoid inefficient split and merge operations.

    Database Scaling: If you're running memory-intensive operations, consider scaling your database to a higher service tier temporarily. This can help improve performance during demanding queries.

    Review Documentation: It's a great idea to refer to the detailed guidance regarding partitioning in Azure SQL Database for best practices and optimization tips.

    If these steps don't resolve your issue, I would recommend providing more details such as:

    • The specific changes you made to the partitioning policy.
    • The queries you are running, which are experiencing high execution times.
    • Your current database service tier and any recent changes made to it.

    Hope this helps and happy to assist further!

    References


1 additional answer

Sort by: Most helpful
  1. Sander van de Velde | MVP 37,056 Reputation points MVP
    2026-01-29T15:43:50.7033333+00:00

    Hello ,

    welcome to this Azure community forum.

    Adding a partition policy can add overhead during ingestion. You need to 'play' with the MaxPartitionCount:

    User's image

    If your database is already filled with a substantial amount of data, setting this policy can cause throttling.

    As seen in the sample scenarios adding a partition policy seems to add value only for specific occasions. For example, I do a lot with IoT but having a cardinality with at least 1,000,000 distinct values and an even distribution is not always in place. So, check if you really need partitioning.

    --

    If this answer helps you, a thumbs-up or marking it as accepted answer is appreaciated. All community members with similar questions will benefit by doing so. Your contribution is highly appreciated.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.