Performance issue regarding report 795

gdi163
Member Posts: 7
Hello everybody,
maybe somebody can give me a hint to resolve the following situation:
On one of the databases of a customer the runtime of the "Adjust Cost - Item Entries" - report exploded from the usual 30 minutes to 14 hours from one day to another. I had no better idea than performing table optimizing on table 32 (the call from the client: File - database - information - tables...). To my surprise it worked! Runtime went back to 30 minutes but only for 2 or 3 days. Then it exploded again. Another optimization and we have smooth performance for the next few days. Naturally the customer demands a permanent solution.
It is a SQL database (2008) an we use client 5.0 SP1.
What is happening there and is it possible to run the table optimization automatically? Any hint is appreciated.
regards
Guido
maybe somebody can give me a hint to resolve the following situation:
On one of the databases of a customer the runtime of the "Adjust Cost - Item Entries" - report exploded from the usual 30 minutes to 14 hours from one day to another. I had no better idea than performing table optimizing on table 32 (the call from the client: File - database - information - tables...). To my surprise it worked! Runtime went back to 30 minutes but only for 2 or 3 days. Then it exploded again. Another optimization and we have smooth performance for the next few days. Naturally the customer demands a permanent solution.
It is a SQL database (2008) an we use client 5.0 SP1.
What is happening there and is it possible to run the table optimization automatically? Any hint is appreciated.
regards
Guido
0
Comments
-
[Topic moved from 'Navision Financials' forum to 'NAV/Navision Classic Client' forum]
Did you implement a maintenance plan to rebuild the indexes?
I hope you maintenance plan does NOT contain a shrink database and your database property "Auto Shrink" is FALSE.
If you rebuild the indexes in your DB and then do a Shrink DB, your rebuilding of the indexes does serve at anything. And shrinking your DB creates a lot of fragmentation.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Thank you for your reply.
There is a maintenance plan running but it does not contain a shrink database. "Autoshrink" ist false, too.
Other databases of that customer have the identical maintenance plan running but without any problems.0 -
Andwian wrote:Maybe you can try to backup, create a new DB, and then restore the DB. Then use this new DB as your new production environment.
I suspect that the answer lies in setting up proper database maintenance, starting with reindexing and statistics maintenance. Then I would also take a good look at the infrastructure to make sure that this is still adequate. A lot of times, performance problems start appearing when the company grows, and more users are added. The server that used to run fine all of a sudden has to do more than it is comfortable with.
Just to be clear: DO NOT SHRINK YOUR DATA FILES!!!0 -
DenSter wrote:What is that going to accomplish? I don't think that will make any difference whatsoever.gdi163 wrote:Other databases of that customer have the identical maintenance plan running but without any problems.
. Please do apologize if my conclusion is wrong. :oops:
Regards,
Andwian0 -
Andwian wrote:DenSter wrote:What is that going to accomplish? I don't think that will make any difference whatsoever.gdi163 wrote:Other databases of that customer have the identical maintenance plan running but without any problems.
. Please do apologize if my conclusion is wrong. :oops:
If you are referring to a native backup, this is a long process and probably it will create even more problems because when restoring the backup all data is inserted again creating even more fragmentation and bad statistics.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
kriki wrote:If you are referring to a SQL backup, it won't change a thing, because a SQL-backup is almost a bit-by-bit copy of the database.
If you are referring to a native backup, this is a long process and probably it will create even more problems because when restoring the backup all data is inserted again creating even more fragmentation and bad statistics.Regards,
Andwian0 -
It sounds like your problem belongs in the SQL Performance area.
You could look at how your database has been setup for file expansion (and whether that is taking place), and whether your database and disk drives have fragmention issues.
Are you regularly updating statistics and tuning your database?
How large is it?David Machanick
http://mibuso.com/blogs/davidmachanick/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