Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
Hello everyone
I need to collect the data all time.
I found purge data service in Thingworx MFG app customize guide.
How i disable purge data service in "PTC.Factory.MidnightPurgeWeekOldHistoryScheduler" thing?
First time, I try to disable it by change the enable properties inside the thing. But, It not working.
Enable properties is change to "True" after I refresh browser.
Hi @ssriuaipornchai ,
Can you please try executing DisableScheduler service of PTC.Factory.MidnightPurgeWeekOldHistoryScheduler.
This will set the Enabled property value to false.
Thanks,
Himanshu
Good job.
This solution is working.
Thank you.
Hi @ssriuaipornchai ,
Please mark as the correct response as Accepted Solution, for the benefit of others who may have the same question.
Thanks,
Himanshu
Please note that the purge is there for a reason, disabling the purge will create continuous build up of data in the system, without archiving/purging that data, the system will become slow, unresponsive and in the end crash.
what should I do if I want to save plant data for at least 1 year?
The purge is based off the scheduler, you can potentially reconfigure the scheduler.
else disable that scheduler and create a new one that invokes the purge on a year basis.
BUT if you keep data for a year, do you know how many rows of data you are retaining? If you go into several million rows, you will affect the performance and potentially stability of your system. Besides very likely slow response times.