NAV4SP3 vs ”NAV4SP3 Hotfix 6+6.1+6.2+6.3 and IndexHint=No”

pdj
Member Posts: 643
(Using MS-SQL 2005 – no servicepacks, yet)
I’m currently in the process of migrating a Native NAV4SP3 to SQL, but encountered a strange behavior.
First step was to create the DB and import a backup. This was done without problems and the performance was acceptable. This was done using a plain NAV4SP3 without any hotfixes.
Then we updated NAV client by adding Hotfix 6 and hotfix 6.1 to 6.3. The next time we opened the database it had to upgrade it (fix the SIFT bug) and that also went ok. Performance was still acceptable, but now it used IndexHints everywhere. I prefer the old behavior, so I made the IndexHint=No entry, to globally disable this feature. (It’s not a bug; it is just an annoying feature
)
Now it stopped sending IndexHints, but now it suddenly started doing tablescans very often! I know the IndexHint is used to prevent tablescans, but we didn’t have any problems with tablescans before we updated the client.
So what have changed in the SQL-statements or table definitions from an out-of-the-box NAV4SP3 to the fully updated NAV4SP3 with hotfixes till version 6.3 with disabled IndexHint? (And is there anything I can do to restore the old behavior?)
PS: I know we need to upgrade the SQL server with recent servicepacks. This is to be done by an external company – but just because they are behind schedule doesn’t mean I have to be :-)
I’m currently in the process of migrating a Native NAV4SP3 to SQL, but encountered a strange behavior.
First step was to create the DB and import a backup. This was done without problems and the performance was acceptable. This was done using a plain NAV4SP3 without any hotfixes.
Then we updated NAV client by adding Hotfix 6 and hotfix 6.1 to 6.3. The next time we opened the database it had to upgrade it (fix the SIFT bug) and that also went ok. Performance was still acceptable, but now it used IndexHints everywhere. I prefer the old behavior, so I made the IndexHint=No entry, to globally disable this feature. (It’s not a bug; it is just an annoying feature

Now it stopped sending IndexHints, but now it suddenly started doing tablescans very often! I know the IndexHint is used to prevent tablescans, but we didn’t have any problems with tablescans before we updated the client.
So what have changed in the SQL-statements or table definitions from an out-of-the-box NAV4SP3 to the fully updated NAV4SP3 with hotfixes till version 6.3 with disabled IndexHint? (And is there anything I can do to restore the old behavior?)
PS: I know we need to upgrade the SQL server with recent servicepacks. This is to be done by an external company – but just because they are behind schedule doesn’t mean I have to be :-)
Regards
Peter
Peter
0
Comments
-
-install latest SP+hotfixed on SQL
-do a indexrebuild. This way the SQL-statistics are refreshed.
-if this doesn't help, I would check the C/AL code that generates the SQL-commands that uses tablescans
-Did you already do some SQL-tuning?
Last week, I did an upgrade from SQL2000 to SQL2005 and from 4.00SP3 to 4.00SP3U6+lockrelease on error-hotfix. I have tablescans but the server doesn't feel it:the disks are begging us to have something to do.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
kriki wrote:-install latest SP+hotfixed on SQLkriki wrote:-do a indexrebuild. This way the SQL-statistics are refreshed.kriki wrote:-if this doesn't help, I would check the C/AL code that generates the SQL-commands that uses tablescanskriki wrote:-Did you already do some SQL-tuning?kriki wrote:Last week, I did an upgrade from SQL2000 to SQL2005 and from 4.00SP3 to 4.00SP3U6+lockrelease on error-hotfix. I have tablescans but the server doesn't feel it:the disks are begging us to have something to do.Regards
Peter0 -
-For th G/L Entries : try to create an index "G/L Account,Entry No." and use it as the SETCURRENTKEY of the G/L Entries in case there is only a filter on "G/L Account".
-SQL-tuning: after this, your DB will probably be 12-13GB! PS:this has to be done by a specialist.
-If all else fails, try to create an indexhint directly in SQL for the G/L Entries form.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!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