Table Optimisation

RachelSoon
Member Posts: 202
Dear All,
Does the system perform the table optimisation during the database restoration?
I try to optimise the detailed customer ledger entry table with 1300000 ++ record, however, the navision still running after 28 hours.
Therefore, would like to find out if the optimisation will take place if we do database restoration.
How would the table optimisation helps in the system?
thank you.
Regards
Rachel
Does the system perform the table optimisation during the database restoration?
I try to optimise the detailed customer ledger entry table with 1300000 ++ record, however, the navision still running after 28 hours.
Therefore, would like to find out if the optimisation will take place if we do database restoration.
How would the table optimisation helps in the system?
thank you.
Regards
Rachel
0
Comments
-
Native or SQL?
For SQL:
one of the things the optimisation does is deleting zero sift records. When restoring a database, the sift tables are filled from scratch, so no zero sift are present. In that way, it's about the same.
For Native:
optimizing will decrease the number of levels in the (B+) tree for a particular table ... I don't know if restoring data will have an optimized number of levels in the tree of a table ... sorry.
The document w1w1ism.pdf on the Doc folder of the product CD contains info about it.0 -
Hi Waldo,
This is SQL.
Thank you for the information.
Regards
Rachel0 -
Just for fun (:oops:) I ran a profiler during the "optimize". I could see following things:
1) Getting index information
2) Rebuilding the indexes of that table
(I even saw the attempt of getting a record link during the optimisation between rebuilding indexes and removing zero SIFT records).
3) I assume deleting the zero SIFT records. However, I found no DELETE or DROP statement (while manually added zero records were indeed deleted). :-k
Anyway, optimalization is also going to rebuild indexes.0 -
Is the DB optimized for SQL (= LOOOOOOTS of indexes and SIFTS in table 21). After optimizing the DB for SQL you will have a lot less of those and the optimize will go a lot faster.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
kriki wrote:Is the DB optimized for SQL (= LOOOOOOTS of indexes and SIFTS in table 21). After optimizing the DB for SQL you will have a lot less of those and the optimize will go a lot faster.
This is a manual process by the way0 -
Waldo wrote:kriki wrote:Is the DB optimized for SQL (= LOOOOOOTS of indexes and SIFTS in table 21). After optimizing the DB for SQL you will have a lot less of those and the optimize will go a lot faster.
This is a manual process by the way
And lots of fun!
At least: I consider it lots of fun!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