Published on InterSystems Developer Community (https://community.intersystems.com)

Home > Database size issue - Purge process missing some classes

Discussion
Murillo Braga · May 13, 2020

Database size issue - Purge process missing some classes

Hello guys, 

I have used the Studio SOAP wizard to generate some webservice client classes and amongst those classes:

Class RMH.SOAP.s0.Output Extends (%Persistent, %XML.Adaptor) [ ProcedureBlock, SqlTableName = _Output ] {
...
Property Value As %GlobalCharacterStream(XMLNAME = "Value");

And the caller looks like

Class RMH.SOAP.SoapTreeSoap Extends %SOAP.WebClient [ ProcedureBlock ] {
...
Method Run...(Tree As %String, Inputs As %String, Debug As %Integer) As RMH.SOAP.s0.Output 

We do run a daily purge in all of our productions, but I noticed that some globals aren't being taken into consideration. The global related to the class above is occupying 8GB worth of data and its size isn't reduced after the daily purge take place (it uses the ensemble base class Ens.Util.Tasks.PurgeActivityData)

When I checked the global contents, I could definitely spot very old data... so that reinforces my assumption.

Could I make use of anything from the framework to solve this or should I develop custom classes for the purge process?

Any help is appreciated.

Many thanks!

#ObjectScript #Caché #Ensemble

Source URL:https://community.intersystems.com/post/database-size-issue-purge-process-missing-some-classes