Navision Keys <> SQL Index's

Steve
Member Posts: 81
Hello All,
In version 4.x we were told that creating sql index's independent from Navision. (That is we would have 5 keys in Navision that were created and managed inside Navision and those 5 plus lets say 2 others created specifically inside SQL manager.) that Navision could become "out of sync" and require an object to be removed and recreated to correct. ???
I can see how this maybe a correct statement within the Navi 4.x environment since it is maintaining the index as well as sift as separate tables.
Is this or will this be the same type of problem in Navi 5.x since sift tables are more less going away in replace of sql views?
I hope all understand.
Thanks
In version 4.x we were told that creating sql index's independent from Navision. (That is we would have 5 keys in Navision that were created and managed inside Navision and those 5 plus lets say 2 others created specifically inside SQL manager.) that Navision could become "out of sync" and require an object to be removed and recreated to correct. ???
I can see how this maybe a correct statement within the Navi 4.x environment since it is maintaining the index as well as sift as separate tables.
Is this or will this be the same type of problem in Navi 5.x since sift tables are more less going away in replace of sql views?
I hope all understand.
Thanks
Steve
0
Comments
-
There is no change in that. Still, whole database structure is handled by NAV itself, if you make a modification from outside, it is not good for NAV (with exceptions...).0
-
You should never modify any indexes for any NAV tables directly on SQL Server. This is especially important for indexes that are created by the NAV executables. If you modify the index that is associated with a NAV key, you can end up with uncompilable objects.
For NAV databases, you should always create the keys inside the NAV table designer, and manage the SQL Index by modifying the SQLIndex and MaintainSQLIndex properties of the key inside the NAV table designer. This is the best way to keep table definitions up to date, as it will always be managed by the NAV executables.0 -
Just to toss this into the mix, but what about create index views and using included fields within sql?
I agree and would not change a index that is directly related to a navi key, but more over questioning creating additional ones. Above and beyond the ones listed in Navi.Steve0 -
I can't think of a situation where you would want to do this. I see plenty of situations where you may want a NAV key without an underlying SQL index (turn off MaintSQLIndex). But I don't see a situation where I would want a SQL index that NAV is not aware of.There are no bugs - only undocumented features.0
-
Hello BBRown,
I agree, but from a performance aspect I found increased perfromance indexing a view with included fields then just creating a Navi key and including the calculated field as a sumindex. The results were 150% faster calculations verse the standard Navi key method.
I don't disagree with maintaining everything within Navision, but I 'm expolrering why there is such a difference? This could be as simple as our modifications, setup or the developers code within. I'm justtrying to make sense of what I have seen so far.Steve0 -
[Topic moved from Navision forum to SQL Performance forum]Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
There are a number of things to keep in mind when thinking about Keys in NAV and Indexes on Sql.
-Are they needed, or only creating overhead on IUD operations ?
-Are the Selective enough, are the fields on the correct order ?
-Statistics, Fragmentation,...
-Remember the Fill Factor, espacially for HOT tables.
-Should the "Entry No." be the clustered key in NAV Ledger tables ?
-...Debugging is twice as hard as writing code. Therefore if you write the code as cleverly as possible you are by definition not smart enough to debug it.0
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