can't understand what CLUSTERED property means

leugim
Member Posts: 93
hi
what means exactly the CLUSTERED property in a nav key?
regards
what means exactly the CLUSTERED property in a nav key?
regards
_______________
so far, so good
so far, so good
0
Comments
-
-
Sure you should search Google to find out in general what a clustered index is, but your question is about the clustered index box in NAV.
In layman's terms "Clustered" means that all the data in the record is stored with this key. In Native datbase the Primary key can be compared to a Clustered index, because it stores all the data in the record. If you look at The Sales Line for example, the key Doc type, Doc No, Line No, includes with it Item no, description qty etc. so if you sort by Type,No and then find a record for a particular item, the server then has to go to the clustered index (doc typ, doc no, line no) to get other fields like say Description.
Unfortunately because Navision ALLWAYS does a SELECT *, it has to get every field even if you don't need them, so it ALLWAYS has to at some stage get the Clustered Index as well as the key it uses to execute the retrieval. (read more here : SELECT * in NAV on SQL
Optimizing the CLustered index, looks easy, but if you do it wrong you can cause a lot of problems. But of course no problems with playing with it in a test environment. So to answer your question, the tick box tells SQL which NAV key (or keys) need to contain all the data in the record.David Singleton0 -
wow! thanks david, this is what i call a good reply :!: :!:
thanks a lot, now i can explain what a clustered key is to my colegues
rgrds_______________
so far, so good0 -
leugim wrote:wow! thanks david, this is what i call a good reply :!: :!:
thanks a lot, now i can explain what a clustered key is to my colegues
rgrds
You are very welcomeDavid Singleton0
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