S0 Performance Unbearable

I have a database that is roughly 1.5gb total size.  One of the tables has approx. 5m rows in it.  Just executing a count:

select count(id) from dispensing

Takes almost 3 minutes to complete, no other queries being executed on the server.  Running this on a local sql instance on windows 7, through parallels, on a 2 year old macbook, takes < 1 second.  The id column is the primary key w/ clustered index. 

Here is a chart of utilization just from running the count query a few times: http://i.imgur.com/Rn4qz2e.png

Am I expecting too much from S0?  Would hate to see what would happen if I was using more than 0.5% of the size quota.

August 27th, 2015 1:18pm

Can you also share CPU and physical disk read percentage as well , while running this query?
Free Windows Admin Tool Kit Click here and download it now
August 27th, 2015 1:43pm

Like this?

http://i.imgur.com/HWCwgJx.png

August 27th, 2015 1:53pm

 When it comes to S0 , it's not only about storage you need to look but also on these factors. If you see the graph , it seems like you are hitting 100% on data IO / DTU  percentage.

You probably need to try this query with higher performance tier. Check this post for more information - http://dbcouncil.net/2015/07/24/for-a-sql-server-dba-how-to-start-azure-learning-part-5-sql-azure-database-monitoring/


Free Windows Admin Tool Kit Click here and download it now
August 27th, 2015 2:17pm

Just for fun, I spun up an RDS instance on AWS to compare.  I did it with sql express on a micro instance, that is 1vCPU and a comically low 1gb of ram, such a weak server Amazon gives them away for free.  End result: query executes in ~5 seconds.  Something doesn't seem quite right.
August 27th, 2015 2:26pm

I understand it's not only about storage but when I am using a minuscule amount of space and having trouble just counting rows in a table, I can't imagine how it would be usable for anybody with a more realistic database workload.  If I had a very complicated query I would understand, and there would probably be opportunities to optimize it... So if its not something I am doing wrong and I am hitting 100% of the data io quota with the simplest of queries, and that appears to be expected, I guess the real question is: Why is MS providing such lame performance tiers?

I upped the db to S2 and now the query returns in 1-3 seconds on average (although the first execution still took over a minute).  A definite improvement, but for $75? I'll stick with free RDS if that is the only solution.


  • Edited by svickers 11 hours 20 minutes ago
Free Windows Admin Tool Kit Click here and download it now
August 27th, 2015 3:47pm

I understand it's not only about storage but when I am using a minuscule amount of space and having trouble just counting rows in a table, I can't imagine how it would be usable for anybody with a more realistic database workload.  If I had a very complicated query I would understand, and there would probably be opportunities to optimize it... So if its not something I am doing wrong and I am hitting 100% of the data io quota with the simplest of queries, and that appears to be expected, I guess the real question is: Why is MS providing such lame performance tiers?

I upped the db to S2 and now the query returns in 1-3 seconds on average (although the first execution still took over a minute).  A definite improvement, but for $75? I'll stick with free RDS if that is the only solution.


  • Edited by svickers 11 hours 30 minutes ago
August 27th, 2015 3:47pm

I understand it's not only about storage but when I am using a minuscule amount of space and having trouble just counting rows in a table, I can't imagine how it would be usable for anybody with a more realistic database workload.  If I had a very complicated query I would understand, and there would probably be opportunities to optimize it... So if its not something I am doing wrong and I am hitting 100% of the data io quota with the simplest of queries, and that appears to be expected, I guess the real question is: Why is MS providing such lame performance tiers?

I upped the db to S2 and now the query returns in 1-3 seconds on average (although the first execution still took over a minute).  A definite improvement, but for $75? I'll stick with free RDS if that is the only solution.


  • Edited by svickers Thursday, August 27, 2015 7:47 PM
Free Windows Admin Tool Kit Click here and download it now
August 27th, 2015 7:45pm

I understand it's not only about storage but when I am using a minuscule amount of space and having trouble just counting rows in a table, I can't imagine how it would be usable for anybody with a more realistic database workload.  If I had a very complicated query I would understand, and there would probably be opportunities to optimize it... So if its not something I am doing wrong and I am hitting 100% of the data io quota with the simplest of queries, and that appears to be expected, I guess the real question is: Why is MS providing such lame performance tiers?

I upped the db to S2 and now the query returns in 1-3 seconds on average (although the first execution still took over a minute).  A definite improvement, but for $75? I'll stick with free RDS if that is the only solution.


  • Edited by svickers Thursday, August 27, 2015 7:47 PM
August 27th, 2015 7:45pm

I understand it's not only about storage but when I am using a minuscule amount of space and having trouble just counting rows in a table, I can't imagine how it would be usable for anybody with a more realistic database workload.  If I had a very complicated query I would understand, and there would probably be opportunities to optimize it... So if its not something I am doing wrong and I am hitting 100% of the data io quota with the simplest of queries, and that appears to be expected, I guess the real question is: Why is MS providing such lame performance tiers?

I upped the db to S2 and now the query returns in 1-3 seconds on average (although the first execution still took over a minute).  A definite improvement, but for $75? I'll stick with free RDS if that is the only solution.


  • Edited by svickers Thursday, August 27, 2015 7:47 PM
Free Windows Admin Tool Kit Click here and download it now
August 27th, 2015 7:45pm

I understand it's not only about storage but when I am using a minuscule amount of space and having trouble just counting rows in a table, I can't imagine how it would be usable for anybody with a more realistic database workload.  If I had a very complicated query I would understand, and there would probably be opportunities to optimize it... So if its not something I am doing wrong and I am hitting 100% of the data io quota with the simplest of queries, and that appears to be expected, I guess the real question is: Why is MS providing such lame performance tiers?

I upped the db to S2 and now the query returns in 1-3 seconds on average (although the first execution still took over a minute).  A definite improvement, but for $75? I'll stick with free RDS if that is the only solution.


  • Edited by svickers Thursday, August 27, 2015 7:47 PM
August 27th, 2015 7:45pm

Thanks for the feedback.  We know that you have choices including AWS.  A more realistic comparison point to compare Azure SQL DB and AWS RDS would be a business related benchmark that's a more rounded mix of IOPS, CPU, and throughput.

In Azure SQL DB, we use this benchmark to measure our own performance and to understand where we stand compared to others. https://msdn.microsoft.com/en-us/library/azure/dn741327.aspx?f=255&MSPPError=-2147217396 .

Let me know if I can help further.

Guy

Free Windows Admin Tool Kit Click here and download it now
August 31st, 2015 12:58pm

Thanks for the feedback.  We know that you have choices including AWS.  A more realistic comparison point to compare Azure SQL DB and AWS RDS would be a business related benchmark that's a more rounded mix of IOPS, CPU, and throughput.

In Azure SQL DB, we use this benchmark to measure our own performance and to understand where we stand compared to others. https://msdn.microsoft.com/en-us/library/azure/dn741327.aspx?f=255&MSPPError=-2147217396 .

Let me know if I can help further.

Guy

August 31st, 2015 4:56pm

Thanks for the feedback.  We know that you have choices including AWS.  A more realistic comparison point to compare Azure SQL DB and AWS RDS would be a business related benchmark that's a more rounded mix of IOPS, CPU, and throughput.

In Azure SQL DB, we use this benchmark to measure our own performance and to understand where we stand compared to others. https://msdn.microsoft.com/en-us/library/azure/dn741327.aspx?f=255&MSPPError=-2147217396 .

Let me know if I can help further.

Guy

Free Windows Admin Tool Kit Click here and download it now
August 31st, 2015 4:56pm

Thanks for the feedback.  We know that you have choices including AWS.  A more realistic comparison point to compare Azure SQL DB and AWS RDS would be a business related benchmark that's a more rounded mix of IOPS, CPU, and throughput.

In Azure SQL DB, we use this benchmark to measure our own performance and to understand where we stand compared to others. https://msdn.microsoft.com/en-us/library/azure/dn741327.aspx?f=255&MSPPError=-2147217396 .

Let me know if I can help further.

Guy

August 31st, 2015 4:56pm

Thanks for the feedback.  We know that you have choices including AWS.  A more realistic comparison point to compare Azure SQL DB and AWS RDS would be a business related benchmark that's a more rounded mix of IOPS, CPU, and throughput.

In Azure SQL DB, we use this benchmark to measure our own performance and to understand where we stand compared to others. https://msdn.microsoft.com/en-us/library/azure/dn741327.aspx?f=255&MSPPError=-2147217396 .

Let me know if I can help further.

Guy

Free Windows Admin Tool Kit Click here and download it now
August 31st, 2015 4:56pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics