Be Careful with Missing Index Requests

One of the things that has been interesting to watch over time is how the SQL Server platform has expanded the amount of information that we get back about the performance of the query optimizer and query processor. While it’s not perfect, and there is room for improvement, the advances made with intelligent query processing are helping many systems run faster. Not all queries, but some.

As I’ve done a little work on other platforms, there are ways to look for potential missing indexes in PostgreSQL and MySQL, but these aren’t built into tools, nor are they easily accessible to developers or DBAs. There’s work to be done on many platforms, though I’m not sure if there is more work than required in SQL Server. On all these platforms, you need to dig into queries and understand why they are slow, though the tooling for SQL Server, with graphical plans in SSMS (or with Plan Explorer) can make the job easier.

One thing SQL Server does is provide missing index recommendations in the query plan. You can find information on this in the docs, but you should make sure you read the limitations section. The recommendations returned should not just be run. I should repeat that for junior DBAs, accidental DBAs, and developers:

DO NOT JUST RUN THE MISSING INDEX RECOMMENDATIONS WITHOUT TESTING LOTS OF QUERIES.

I hate using all caps, but that is important. As an example of why, watch this short video from Erik Darling, where he shows that the simplistic view of the missing index is helpful, but not as helpful as it can be. In case that’s not enough, there are other issues that Brent Ozar, Phil Factor, and Aaron Bertrand share some of the problems they’ve found.

There is a wealth of information that is available about queries in SQL Server and how they are processed. It will help you in your career to learn more about performance tuning and how to evaluate queries. We have articles here, there are more on Simple Talk, and Erik Darling produces information every week and also has training to help you learn to tune queries better. There are plenty of others that will help teach you as well.

Maybe the best benefit of learning about tuning is that you can learn to write better queries the first time, which means no rework, no effort responding to complaints, and a cheaper bill if you move into the cloud. That might be something you point out to your boss and ask him or her to fund a little education to help you and your employer.

Steve Jones

Listen to the podcast at Libsyn, Spotify, or iTunes.

Posted in Editorial | Tagged , | Comments Off on Be Careful with Missing Index Requests

Using ThinOptics to Read Data

As I’ve aged, I find myself struggling to read many things in my life. It started with difficulties seeing menus, but moved on to other areas. During the pandemic, I was coaching kids and taking stats. I realized at one point I couldn’t tell if I’d made 3 or 4 marks on the page to represent some action.

Soon after, I got some reading glasses and started wearing them to do certain things. Over time, I’ve found that I needed these more and more for all sorts of computer work.

I’ve actually ended up purchasing a few pairs and stashing them in various coats, bags, and cars. I’ve liked these slim ones with a hard case the best, but I still sometimes forget them, especially in the summer when I don’t wear a coat.

Recently, I realized that I am struggling to read the labels in grocery stores, where I often run inside and forget my readers in the car. After we had a good laugh, my wife realized that I am a bit frustrated with my eyes and the inability to consume data in my daily life.

ThinOptics

My wife has taken pity on me, and decided to help me. She got me a pair of ThinOptics, which are in a case that sticks to my phone. You can see what I got in the mail below:

These are flexible bodies that slip into a case that is always on my phone. I wasn’t sure this would work well, but I find I can still charge my phone wirelessly as well as pay with NFC despite the case being attached to the back of my phone.

What’s more, they are always with me.

I still prefer the slim REAVEE readers, and carry those in my bag, but I find the ThinOptics are very convenient. They do grab my nose a bit and feel like they are scratchy at times, but it’s not too bad.

If you are struggling to read as you get older, you might check them out and see if they help you as much as they’ve helped me.

Posted in Blog | Tagged , | 2 Comments

The Balanced Technical Manager

I find there to be a lot of value in actively managing your career. This is part of a series of editorials based on advice I’ve read from Raylene Yung (Facebook and Stripe) on your engineering career.

In the last few years I’ve started to see a number of organizations find ways to build technical career growth paths that don’t require someone to become a manager. A lot of technical people don’t want to manage others, and I’d argue that making the best technical person the lead or manager isn’t often the best decision. Those are two different skill sets and success in one doesn’t predict success in the other.

There are technical people who would like to move into management. If you are one of those people, then you ought to tackle building skills in that area just as you might tackle learning Power BI, SQL window functions, or any other skill.

Management requires a few different skills. Project management is important, as you will often be balancing a variety of work tasks for your direct reports. Another set of skills is people skills: leadership, listening, evaluating, and having hard conversations, none of which are easy.

Part of the advice for technical people wanting to be managers is that you have to work on your emotional equilibrium, as the way your job works as a manager is different from that of an engineer. Your view of success, happiness, and your emotional takeaway from daily work is different. You also have to view the workings of your team at a higher level, understanding that your focus and goals can be slightly different than those of your engineers.

I think you also have to learn to make hard decisions on what to prioritize or how to distribute your staff among the competing demands you face. Learning to make decisions and move forward, as well as apologize and change course when you realize you’ve made a mistake is something relatively few people do well.

It’s also important to recognize that as your team grows, something will always be wrong. In any size organization, you’ll have a birthday every month and likely some sort of illness or other negative action. Have a large enough organization and someone will die on a regular basis. Keeping yourself balanced when something is always wrong (and something is always right) can be a challenge.

Having done these jobs, I do think that one way to test the waters is to ask to lead a team on a small project. Getting a feel for balancing work, and learning that management is work that needs to be done differently, can help you decide if you want to go down this path. It’s not for everyone, but becoming a manager can be a good career path, though not necessarily easier than writing code or managing infrastructure.

If you want to consider this path, ask others for advice, read books, and learn like you would if someone assigned you a new technology. I’ve enjoyed my time in some companies as a manager, and if I hadn’t been looking to move earlier in my career, I might still be running the technology organization at a previous company. It was one job I really enjoyed.

Steve Jones

Listen to the podcast at Libsyn, Spotify, or iTunes.

Posted in Editorial | Tagged | Comments Off on The Balanced Technical Manager

A New Word: Nighthawk

nighthawk – n. a recurring thought that only seems to strike you late at night – an overdue task, a nagging guilt, a looming future – which you sometimes manage to forget for weeks, only to feel it land on your shoulder once again, quietly building a nest.

I am typically not a night person. I tend to fall asleep early (avoiding late night movies or events) and I can often sleep through the night. I tend to awaken a bit more as I age, but in general I’m not plagued by any sort of insomnia and am not awake at night.

Not often.

However, I often to have various commitments coming, lots of travel, and a chaotic life. Often I find myself reviewing a mental to-do list, worrying that I’ve forgotten something or I didn’t complete a task. I do have a physical list, but often there are so many repeating items that I don’t always write them down.

This usually comes before I speak at some event, and I find myself waking and worrying at night that I didn’t get something done before my presentation the next day.

Interestingly, I almost never think about forgetting to schedule a newsletter. I do that sometimes, but rarely.

From the Dictionary of Obscure Sorrows

Posted in Blog | Tagged , | Comments Off on A New Word: Nighthawk