Managed Database Services, Migration, and Cost

Azure SQL, Managed Instance, RDS, Aurora, migration, and costs.

28 associated posts28 primary posts

Production DBA

Set MAXDOP in Azure SQL DB or You’ll Get This Cryptic Error.

Max Degrees of Parallelism (MAXDOP) tells the database engine, "If you decide to parallelize a query, go parallel with this many worker threads."

(It's a little more complex than that - there is also a coordinating thread, plus a single plan might have multiple parallel zones that each consume MAXDOP worker threads, but for the sake of this blog post, let's keep it simple.)

Read more about Set MAXDOP in Azure SQL DB or You’ll Get This Cryptic Error. 1 comment — Join the discussion
Production DBA

Why Your Azure SQL DB Hyperscale Bill is Higher Than You’d Expect

tl;dr: if you use Azure SQL DB Hyperscale's auto-scaling, it's probably not cutting your bill down because like SQL Server, Hyperscale doesn't automatically relinquish memory, and it'll be up to you to manually manage your own memory if you wanna cut your bill.

Now for the long story.

Read more about Why Your Azure SQL DB Hyperscale Bill is Higher Than You’d Expect 3 comments — Join the discussion

What SQL Server People Should Know About Amazon Aurora Serverless

You, dear reader, are most likely a Microsoft SQL Server user - either a DBA or developer.

Set your pencil down for a second because you're not going to learn about a Microsoft product today, nor are you going to learn something that is going to be immediately useful to you in your job. Today, I'm writing about a completely different product just to give you a better insight on what else is out there.

Read more about What SQL Server People Should Know About Amazon Aurora Serverless 20 comments — Join the discussion
Production DBA

Azure SQL DB Frequently Asked Questions

Let's get you some answers.
Is Azure SQL DB PaaS, IaaS, or SaaS?
Azure SQL DB is platform-as-a-service (PaaS). Microsoft manages most common database tasks for you, and they act as your DBA.

This also means that like a DBA, Microsoft will tell you "no" if you try to implement something that they don't support. There's no negotiations: the answer is just no.
Who is Azure SQL DB for?
Azure SQL DB is a good fit for new applications.

Read more about Azure SQL DB Frequently Asked Questions 20 comments — Join the discussion
Production DBA

Developers: Azure SQL DB Serverless can save you money.

If you've got a database that doesn't need to be on all the time, Azure SQL DB Serverless is in public preview now. It makes a lot of sense for those development databases you have to keep around, but don't really want to pay for.

If your database doesn't get any queries for 6 hours, it'll pause billing, and automatically resume again when your queries kick in. Here's how to set it up in the portal:

Read more about Developers: Azure SQL DB Serverless can save you money. 20 comments — Join the discussion
Production DBA

There’s a bottleneck in Azure SQL DB storage throughput.

As you pay more for Business Critical Azure SQL DB servers, they're supposed to get more storage throughput. The documentation on this is kinda hard to read, but boiling it down, for every core you add to a Gen5 server, you're supposed to get 2,500 IOPs. That should scale linearly: insert speed should go up evenly with each added core.

Read more about There’s a bottleneck in Azure SQL DB storage throughput. 82 comments — Join the discussion
Production DBA

How fast can a $21,468/mo Azure SQL DB load data? (Updated)

Update March 19: Microsoft has since acknowledged a hidden limit, then documented it, then raised it - but it’s still disappointingly slow.

In my last post, I explored how fast a $5,436/mo Azure SQL DB Hyperscale could load data. I'd had a client who was curious about spinning up their dev environment up there to see how query plans might look different. Well, as long as I was running this test, I thought - "How does this compare with Azure SQL DB?"

Read more about How fast can a $21,468/mo Azure SQL DB load data? (Updated) 30 comments — Join the discussion
Production DBA

How fast can a $5,436/mo Azure SQL DB Hyperscale load data?

A client asked, "How quickly could we spin up a full copy of our database in the new Azure SQL DB Hyperscale?" Their database size wasn't too far off from the 340GB Stack Overflow database, so I decided to migrate that to Hyperscale to see how the experience went. Hyperscale is Microsoft's intriguing competitor to Amazon Aurora. Hyperscale…

Read more about How fast can a $5,436/mo Azure SQL DB Hyperscale load data? 16 comments — Join the discussion
Production DBA

Azure SQL DB is Slow: Do I Need to Buy More DTUs?

You've got an Azure SQL DB, and your queries are going slow. You're wondering, "Am I hitting the performance limits? Is Microsoft throttling my queries?"

There's an easy way to check: run sp_BlitzFirst. sp_BlitzFirst is our free performance health check stored procedure that analyzes a lot of common performance issues and then gives you a prioritized list of reasons why your server might be slow right now.

Read more about Azure SQL DB is Slow: Do I Need to Buy More DTUs? 25 comments — Join the discussion