Lots of people move to the cloud; it’s common. In fact, it’s very common to hear customers who are being asked to migrate their workloads to a cloud vendor for a variety of reasons. You might not agree, but often there is some reason to move to the cloud. Sometimes it’s even moving from one cloud to another, just because one of the big three (AWS, Azure, GCP) seems more attractive this year than the one from last year.
When you move, do you size your system for the peak? 80% of the peak? Perhaps there is another goal for which you design. Do you worry about ever being under-provisioned and letting customers have a slower system? Or do you ensure you never hit the peak, which increases costs?
Auto-scaling can help, but it doesn’t seem to have worked as well for database systems as it does for serverless functions or other types of workloads. Compute is much easier to scale than stateful database systems that need CPUs and RAM ready on a particular system instantly. In fact, the “serverless” Azure SQL database is attractive to me more for it’s ability to scale the CPUs and RAM more than the on/off capability.
I was in a discussion recently with a number of data professionals who tend to over-provision a bit, mostly because their companies are willing to. It saves them headaches and phone calls (more angry texts these days), but it also means developers aren’t incentivized to optimize any queries. Unless there is a way to determine that the aggregate of all queries could lower the size of the resource provisioned, no one wants to fix any poorly running code.
That was interesting to me, as I’d think we’d want to optimize code as we pay every month, but the reality is that we pay every month for a level of resources. Coming in under that level is all that’s important. If we use 99% of those resources or 25%, we pay the same amount. It’s like saying we want to watch a movie every night because we pay for Netflix/Apple TV/etc. We’ve spent the money, so whether we watch 1 a week or 5 a week, there’s no point in optimizing our time to get value out of the subscription.
In the PaaS world, that might change, but often we’re still purchasing a tier of resources, not paying for each query. Until we need to raise that tier, no one worries about efficiency. If we can’t prove a lower tier would work with better code, no one cares.
It’s a little sad, but perhaps some future version of monitoring that can spin up a digital twin, optimize some code, and model a lower tier will take hold among all the performance tuners and monitoring vendors. Maybe with a few Claude code tokens, one of you will solve that problem.
For now, I still think it’s worth trying to optimize code, especially if an AI can give you suggestions and prove things run quicker in a test environment. If the cost of code is getting lower, then why not extend those savings to SQL code?
Steve Jones
Listen to the podcast at Libsyn, Spotify, or iTunes.
Note, podcasts are only available for a limited time online.



I can tell you why at least some over provision. Those in charge of the DB’ & Servers often have no control over development and so if development won’t do optimized code and the DB’s can’t change that they over provision to offset that b/c the executives don’t care about or want to hear about optimization code when the program is not working or slow they just want it to work. Its not the way it should be just how it is.
A move to the cloud needs to be done only when it makes sense. Not every client will find a better experience in the cloud, it depends on their needs. We were forced to move to the cloud with the software vendor who’s specialty accounting software we use and the experience has been worse all around. The cloud has and is marketed as the computing savior for all your needs for everyone and that is simply not true. The cloud is like a tool and so you should use it only when it makes sense and not b/c its a fad. I say fad b/c I’ve heard too many horror stories post move to the cloud that was done b/c the decision maker believed it was the in thing to do and so they to needed to move to the cloud.
LikeLike
Completely agree. A lot of people move to the cloud without thinking it through, or without planning. The Wed Frameworks provide some good templates and guidance, and should be used, not jsut to move, but to make the decision.
Interestingly, the T-SQL Tuesday this month is about people moving back from the cloud.
LikeLike
“Interestingly, the T-SQL Tuesday this month is about people moving back from the cloud.”
Now THAT is interesting! I didn’t realize that there was a large enough number of entities exiting the cloud and going back (presumably) to on prem that it would be discussed/mentioned like this.
That’s the thing with new tools, you need to properly access them and not just believe whatever the sales people tell you b/c they absolutely will lie. I’ve seen it happen as an employee of the same company as the sale person and experienced later as an employee of a company that uses the software from the place I used to work at. You have to do your own due diligence. Its a shame more companies aren’t more like Red-Gate in terms of taking the “doing it right” mentality instead of the “Doing it right now” mentality.
LikeLike
Not a significant percentage in my experience, but a noticable one. It’s definitely happening
LikeLike