Hello everyone,
I have a Business Central database with over 500 GB of data. I would like to retain only the last two years of data and delete the rest, without compressing the data.
Is there a way to achieve this?
Reducing Business Central Database Size by Retaining Recent Data Only
If the data of two years exceeds 500G, I wonder if there are some bad practise customizations, such as storing a lot of attachments or adding a lot of Blob fields?
The data size can be checked in the table mentioned by gdrenteria.
Then you can export the data through Configuration Package and clear the data through AL Code.
Reducing Business Central Database Size by Retaining Recent Data Only
Hi
If you work a lot with attached documents, this also penalizes you. If you check the following option, see which tables are the "heaviest." You should definitely enable the option to save documents in another external location. Also, check if you use email sending with attached documents, this also penalizes you.
Also, do you know which tables are taking the majority of space? 500gb is a lot for a Business Central database. If you don't know, you can look at the Table Information Page to see which tables are taking up a lot of space. Usually its things like attachments or change log entries. I prefer to delete these before deleting actual documents.
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.