Azure Data Explorer, select distinct returns NetworkError table > 1.2 Billion records

spindlerm 41 Reputation points
2022-05-27T10:25:12.833+00:00

Hello, I am new to this forum and Azure Data Explorer and am looking for some advice.

I have a table with approx 1.2 Billion records and growing

I'm attempting to perform a select distinct field1,field2 from table1

After approx 4 minutes, the query times out with Client Request NetworkError.

I believe I have hit the Limit Execution Timeout which defaults to 4 minutes.

So I'm looking for advice on alternative (more efficient) ways of achieving this query

Any advice would be greatly appreciated!

Thanks

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.
480 questions
0 comments No comments
{count} votes

Accepted answer
  1. ShaikMaheer-MSFT 37,896 Reputation points Microsoft Employee
    2022-05-28T13:00:16.7+00:00

    Hi @spindlerm ,

    Thank you for posting query in Microsoft Q&A Platform.

    Yes Looks like its because of Limit execution timeout.

    By default, timeout is set to four minutes for queries, and 10 minutes for control commands. This value can be increased if needed (capped at one hour).

    Below are the ways to increase timeout limit.

    • Various client tools support changing the timeout as part of their global or per-connection settings. For example, in Kusto.Explorer, use Tools > Options* > Connections > Query Server Timeout.
    • Programmatically, SDKs support setting the timeout through the servertimeout property. For example, in .NET SDK this is done through a client request property, by setting a value of type System.TimeSpan.

    Click here to know more about this limit.

    There are couple of other query limits also there in Kusto. You may end up facing them too. Please check below documentation with all details and steps to overcome.
    https://learn.microsoft.com/en-us/azure/data-explorer/kusto/concepts/querylimits

    Hope this helps. Please let us know if any further queries.


    Please consider hitting Accept Answer. Accepted answers help community as well.

    0 comments No comments

0 additional answers

Sort by: Most helpful