Database size increaising exponentially
Gastón Salomone
10-14-21
Operating system: macOS
Hi

A customer has a database that is increaising size every day by a 1 or 3 GB.
I found that RecordHistory data of Items record, is enabled and every two o three seconds is storing a new update record, saying that record is updated. If I compare any of that updates against actual record, Standard ERP says that no field is updated.
The problem is that backup files is getting bigger every day.
I`m going to disable Login COntrol on that record, but I need to delete all record history information to clean and free some space while I try to find what is the problem.

How I can delete all that old data ?
While exporting a backup file, i found that RecordHistVc is increaing 5 million records every day and It get stuck in "Exporting old records" for some time, maybe 1 hour before finish backup.

I need urgent help

Please
Sanjay Parbhoo
10-15-21
Hi Gastón,

We had the same problem a month ago. In our case, I think we finally tracked this to code that updates unoked deliveries when goods receipts are oked. Removing that bit of code seems to have solved it. The code is in UpdateGoodsReceiptsAvailQty.

In terms of removing record history, that is more difficult. The only way I found how to do that is to use the --drop-register parameter but there might be a better way suggested by someone else from HW.


/Sanjay Parbhoo [2021/10/15 10:07 AM]

------------------------------------------------------------------------
Bror-Erik Kotiranta
11-10-21
Hello,

Excellent have identified some of these things that makes database increase in size more than it should. Erik is looking in to this as well
Leave Comment
You can subscribe to notifications for this post by selecting the 'star' icon on the top right corner of the post.
Back to the list
Latest Posts
Bror-Erik Kotiranta
Hello, these spikes in cpu usage i do believe have been fixed in the 8.5 2026 08 29 version, can you please have a try there?...
13:30 10 Sep 2026
Bror-Erik Kotiranta
Hello, I did not see this as a problem in the newer versions. Have you had a chance to visit the new version and test it out ?...
13:29 10 Sep 2026