Core component of SQL Server for storing, processing, and securing data
Get your hands dirty. First of all, you need to master to write queries at all, before you can look into performance. But if you work with data of some size, you will sooner or later face situations where a query is slow and you want to make it run faster.
Indexes and query plans go hand in hand. Indexes are relatively easy to grasp. Query plans less so. But don't be deterred! Query plans are very deterring if you are going to learn exact what each operator does. You will have to learn them bit by bit. Here are two things to look for in query plans:
- The thickness of arrows. The thicker the arrow, the more rows flows through.
- The numbers below the operators which may say something like 12 of 99123. This means that 12 rows were read when the estimate was 99123. This is a gross misestimate, and could be part of the story why the query is slow.
On the other hand, ignore things like Cost 2%, because everything about costs are estimates, and estimates may be correct - or they be completely off.
When it comes to server and database configuration, ignore that for now and save that for later.