(extra post to display previous)
why am I unable to get display of 3,00,000 records in azure sql database with price-tire-50 /100 DTUs?
Hello There,
I recently started using Azure SQL Database as part of my Azure DE learning purpose.
I tried to run the query 'select (*) from' over a table that has around 3,00,000 records -- to just fetch the records ; tried this in Query-editor within Azure SQL DATABASE;
the price-tire I set is with 100 DTUs for Azure SQL SERVER /sql database; I waited for over 1200 seconds; the query is running forever without giving result; I had to force stop the query execution.
Would anyone help me understand the scenario?
Please find the attached screenshots for analysis purpose.
2 additional answers
Sort by: Most helpful
-
Alberto Morillo 32,896 Reputation points MVP
2023-02-03T21:44:20.3966667+00:00 An S3 DTU database, the last time I used that service tier it had 2 cores but max degree parallelism was one (1). All queries are serialized. All those 3 million rows will be brought into memory and read with one vcore only.
Another thing about S3 it allows to use only 8 GB of RAM.
If you would like to have better performance with S3 and one vcore, try to make sure queries against that table are supported by an index.
-
Bruce (SqlWork.com) 56,931 Reputation points
2023-02-05T23:34:45.1433333+00:00 you are overloading the query editor as all the rows must be read into memory in the web application, then packaged as a json response. also the browser can not handle this many rows
try using azure data studio instead.