Hello! I need to compress G/L Entry and Ledger Entry Dimension. We have a 80 GB SQL Database in NAV4.0 and these two tables have 23Gb each one.
This is because the deferral recognition that they used, now we are about to change this procedure and we want to reduce old data with the Data Compression functionallity. We only want to compress these two tables.
I run Date Compress but it run for three days and then gave a log overflow error. The log reach 100 Gb, may be I only need to make it bigger.
The problem is that I really don't know how to configure this compression, because Navision ask me to retain some Dimensions that I don't really care. Also I don't have any good documentation to read. Any advice could help us!... thank you very much for your time!
0
Comments
RIS Plus, LLC
I am not sure how to do that, any advice? or any paper to read about it? I think that it could save a lot of space but I am not sure which index delete.
Hi Matais,
As a freelancer, one of my great sources of work is to fix up a database that was damaged by someone using the date compression routines. These routines are designed to run on a totally unmodified database, but almost never run on a modified system. (Did you have any mods made to your System?)
In your case, follow Daniel's advise, you need to take a close look at your whole implementation, and how the data is being built, and how you are using it.
And yes you can read papers and search the internet, but where you are now, (46 Gig in 2 tables) your best solution is to get someone like Daniel to help you out.
In G/L Entry Table I have the following keys:
Key
Entry No.
G/L Account No.,Posting Date
G/L Account No.,Business Unit Code,Global Dimension 1 Code,Global Dimension 2 Code,Close Income Statement Dim. ID,Posting Date
Document No.,Posting Date
Transaction No.
Close Income Statement Dim. ID
IC Partner Code
and in Ledger Entry Dimension:
Table ID,Entry No.,Dimension Code
Dimension Code,Dimension Value Code
Any suggestion??
The dimension table is probably huge because you are using many dimensions.
RIS Plus, LLC
Yes, just those keys. These are the SumIndexFields
for the key:
G/L Account No.,Posting Date
SumIndexFields:
Amount,Debit Amount,Credit Amount,Additional-Currency Amount,Add.-Currency Debit Amount,Add.-Currency Credit Amount
and for the key:
G/L Account No.,Business Unit Code,Global Dimension 1 Code,Global Dimension 2 Code,Close Income Statement Dim. ID,Posting Date
SumIndexFields:
Amount,Debit Amount,Credit Amount,Additional-Currency Amount,Add.-Currency Debit Amount,Add.-Currency Credit Amount
I have almost 38 million of rows in GL Entry table and a little more than 333 million of rows in Ledger Entry Dimension :shock: , may be it can explain the size
I'd have to take a closer look at your table to know for sure why the G/L Entry table is so big and to see what would improve the performance. In itself the number of keys is not that big, you do have quite a few sumindexfields, but also not huge.
RIS Plus, LLC
The people who managed the system before us decide to recognize each month creating an entry for each invoice line. creating thousands miles of entries each month. The process takes 3 hours if we are lucky.
So, we decided to change this way and, if it possible, we want to compress the old entries, or at least reduce the size of these huge tables.
I don't know if it is usefull for you, please let me know if you want something else
Did you get any further with this ?
For a start you should ONLY compress THE FIRST months.
Try to retain as few fields as possible, the more fields you
retain the less effective compression.
BR Per
pjc@kh.dk