Join Joey D'Antoni for an in-depth discussion in this video Key lookup: When it's good and when it's bad, part of SQL Server Performance for Developers.
- [Instructor] The next thing we're going to talk about…in terms of query operators are key lookups.…Key lookups are a specific type of operator that is…typically associated with being very expensive…and common when an index is missing in a SQL Server…execution plan.…Sometimes we can see that there's a index missing…and that's associated with an index scan or an index seek,…and what that means is SQL Server's going to make one operation…for each row in the query plan,…so these are typically very expensive operators,…and they are most of the time bad,…but not all key lookups are bad, and we're going to use this…as an example of things to understand in general…about query plans and performance tuning.…
So, what exactly is a key lookup, and here we have a…pretty simple example of an execution plan.…We have an index seek on an non-clustered index,…and a key lookup against, in this case,…a clustered column store index.…This particular cost would be very expensive.…We would have to look up each row in that clustered…
- Query execution
- How to read an execution plan
- What not to do with SQL Server
- Why cursors are bad
- Why scalar UDFs are expensive
- Datatypes and design
- What is a columnstore index?
- Transaction isolation
Skill Level Intermediate
1. Query Execution
2. What Not to Do with SQL Server
3. Datatypes and Design
4. Temporary Objects
7. Isolation Levels
Next steps2m 15s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.