Hello Everyone,
On the Client OutSystems Factory that I work on, I am performing a clean-up on the Outsystems Databases and noticed that the table "Module_PublicElement" from the Service Center is not going down.
It is exceeding the 2 GB in data and more than 3 million records.
I can understand by the name what it stores, and I did some tests on it:
Result: Doesn't decrease The goal is to reduce the data there, anyone already needed to do the same?Greetings,Pedro Vieira
Hi,
The discussion on this topic will continue on this Post[DB Cleaner on Steroids] Inconsistency on Module_PublicElement (OSSYS_MODULE_PUBLICELEMENT)Greetings,Pedro Vieira
Hi Pedro,
I assume it uses soft delete, so there's an Is_Active boolean in there? So it would make sense it just grows. Also, it may be the case (but I'm just speculating) that if you first make an element non-public, but then publish the previous version of the module, that it doesn't create a new record, but just updates the inactive one?
Hi Kilian,
Indeed, if I publish the previous version, it won't increase this databaseIt is Module Version associated
I will reply to the remain statement on my next replyGreetings,Pedro Vieira
Did you already run DB Cleaner on Steriods to cleanup soft-deleted meta-data?
Regards,
Daniel
Hi Daniël,
This are the steps that I have made:
1 - Create a Module with an Empty Web block Public Available
2 - Change the Web block to Not Public Available
3 - Change the Web Block again to Public Available (Total 3 Versions)
4 - Delete the Module
5 - Open DBCleanerOnSteroids and check Database Usage
6 - Go to DBCleanerOnSteroids --> Modules and run the clean on the Modules Versions
7 - Debug the DBCleanerOnSteroids Process to Check if it is going to the right path8 - Check DBCleanerOnSteroids Database Usage again
I'm missing some step?What exactly is, clean-up soft-deleted meta-data?Greetings,Pedro Vieira
I did some other test where I used the Service Center - Factory - Modules - Check Old Module Versions to Delete
I have deleted 20 modules versions of Active Modules
And seems that the Database Usage decreased for the pretended Database Entity
So, or I'm missing any step on using DBCleanerOnSteroids or DBCleanerOnSteroids doesn't take this Database Entity in considerationGreetings,Pedro Vieira