Hello pr2380!
To resolve “Query exceeded resource limits,” you can optimize query patterns by narrowing the dataset with precise filters (e.g., where Timestamp > ago(1d) and EventType == 'Error') to reduce scan scope. Use the summarize operator for aggregations instead of full table scans, a method that cut response times to under 2 seconds in past projects. Additionally, you can increase the cluster’s cache size or scale out to add nodes for higher query throughput.
For slow performance, you can enhance the ingestion-time policy to partition data by Timestamp (e.g., daily extents), improving query efficiency for time-based filters. Update the table’s caching policy to retain hot data for 30 days, ensuring frequently accessed logs are readily available.
Best Practices which you can follow are as follows:
- You can use materialized views for pre-aggregated log metrics to speed up dashboards.
- You can set query limits to prevent resource-intensive operations.
- You can configure Azure Monitor alerts for query durations above 5 seconds.
- You can periodically review extent sizes to optimize partitioning.
- You can use ingestion batching to streamline log data loading.
References:
https://learn.microsoft.com/en-us/kusto/query/best-practices?view=microsoft-fabric
https://learn.microsoft.com/en-us/azure/data-explorer/ingest-data-overview
If this answers your query, do click UpVote`, and, if you have any further query do let us know.
Thanks
Pratyush