Rebuild SIFT Tables

megawavez
Member Posts: 133
Hi,
Couldn't find anything using a search - is there anyway to force the system to rebuild all the SQL SIFT Tables? I can remove, then add the SIFT indexes, but this is time consuming.
We are looking at clearing out our old company and starting again. I want to delete all history (ledger entries, posted pos, etc.) in SQL (truncate). I need to system to rebuild all the SIFT tables after the information has been cleared.
Thanks,
Mega
Couldn't find anything using a search - is there anyway to force the system to rebuild all the SQL SIFT Tables? I can remove, then add the SIFT indexes, but this is time consuming.
We are looking at clearing out our old company and starting again. I want to delete all history (ledger entries, posted pos, etc.) in SQL (truncate). I need to system to rebuild all the SIFT tables after the information has been cleared.
Thanks,
Mega
0
Comments
-
If you truncate some table, you need to truncate the SIFT tables for this table (have the ID of the table as number in the name of the table). Because if there are no records in the table, there are no records in the SIFT table too... ;-)0
-
kine wrote:If you truncate some table, you need to truncate the SIFT tables for this table (have the ID of the table as number in the name of the table). Because if there are no records in the table, there are no records in the SIFT table too... ;-)
That partially helps - is there anyway to force the system to rebuilt the contents of the table?
Thanks.0 -
Disable and enable SIFT or Nav native Backup/Restore procedure.0
-
Well ... there is ... but it involves some coding.
You can play around with the virtual table "Key".
If you just test it out by:
1) create a new tabular form with a wizard on the "Key" table
2) Preview that form.
3) uncheck the checkbox (MaintainSIFTIndex) on the G/L Entry Table on one of the keys that contains a SumIndexFields
4) save by leaving the record
You'll see you won't have the sift tables anymore.
So, you could create some kind of functionality (report, codeunit, ...) to save the current value, switch off the MaintainSIFTIndex, save the record (COMMIT?), and afterwards put it back on. This doesn't take long at all.. .
Watch out for this though:
- the date and time of the object is changed as well. you can solve this by updating the object table while updating the key table
- You can't save the SIFT levels through the key table. May be there's another virtual tables I don't know of ... . So I think (didn't test this, sorry) all levels will be activated afterwards.
Hope this helps. May be I'll work out something later on my blog... . Looks interesting.0 -
you must disable all SIFTS and store the the table.
After this you must enable your needed sifts (are there buckets in these version :?: ) and now your FlowField workDo you make it right, it works too!0 -
[Topic moved from Navision Financials forum to SQL General forum]Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
As addition ... see my blogpostfor more information on the "Key"-table... .
8)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