Can a DBA find performance issues just from reading TSQL code? Is a DBA expected to have that capability?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A good DBA can detect problems using nothing more than tea leaves and chicken entrails.
Seriously though, a hallmark of a good DBA is not so much to be able to detect the problems, but to be able to detect possible problems, based on this sort of static analysis.
By way of example, a good DBA can look at:
and immediately figure out that:
col1andcol2columns.Now, those two potential problem areas aren’t enough to decide whether there are problems. To find that out for sure, the DBA would need to examine the database schema and statistics. But static analysis should be a good start.
So, in answer to your actual question, no, they generally don’t find problems from only reading TSQL (or any SQL), but they should be able to use that information to target their efforts.