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.
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!