question

spindlerm-6480 avatar image
0 Votes"
spindlerm-6480 asked ShaikMaheer-MSFT answered

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

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ShaikMaheer-MSFT avatar image
0 Votes"
ShaikMaheer-MSFT answered

Hi @spindlerm-6480 ,

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://docs.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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.