SQL query plan

Belias
Member Posts: 2,998
Hi everyone, can someone tell me how to decypher this query plan, or better where can i find a guide which explains all the operators? (i found on msdn something which explains the words, but what about the numbers like [2,1],[3,2] etc? thanks in advance
Sort[2,1];Filter[3,2];Nested Loops[4,3];Index Seek($3)[5,4];Clustered Index Seek(Company$Cylinder Rental Calculation$0)[7,4]
0
Answers
-
Sort[2,1];Filter[3,2];Nested Loops[4,3];Index Seek($3)[5,4];Clustered Index Seek(Company$Cylinder Rental Calculation$0)[7,4]
1. SQL Server perfroms a "Seek" on non-clustered Index "$3" (this is usually the best index matching to the WHERE clause)
2. As NAV always executes a SELECT * (= all fields) the SQL Server has to perfrom a "Key Lookup", e.g. a "Seek" on the Clustered Index "Company$Cylinder Rental Calculation$0" to retrieve all other fields from the table
3. The results are combined and filtered
4. The result is sorted to match the ORDER BY clause
That should be it ... more or less ...Jörg A. Stryk (MVP - Dynamics NAV)
NAV/SQL Performance Optimization & Troubleshooting
STRYK System Improvement
The Blog - The Book - The Tool0 -
Sorry, I don't know what the [x,y] mean ... :-k
Here some info about QEP: http://www.sql-server-performance.com/tips/query_execution_plan_analysis_p1.aspxJörg A. Stryk (MVP - Dynamics NAV)
NAV/SQL Performance Optimization & Troubleshooting
STRYK System Improvement
The Blog - The Book - The Tool0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions