cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

Data archival of ThingWorx Stream data based on a Scheduler

BK_10290693
5-Regular Member

Data archival of ThingWorx Stream data based on a Scheduler

I have 1000's of Streams and want to archive the old data in database using a scheduler in PostgresSQL. Can anyone please help me with a detailed steps, how to proceed to it?

 

2 REPLIES 2

Similar discussion - "Best practice to store data in Stream": https://community.ptc.com/t5/ThingWorx-Developers/Best-practice-to-store-data-in-Stream/td-p/839910 

nmutter
14-Alexandrite
(To:BK_10290693)

I can only provide you this link:

There is unfortunately no straight forward mechanism. When impelemnting a purge solution make sure to purge in batches so that the thingworx ScriptTimeout does not kick in and kill your service.

You could also implement something in the database directly if you want to take the risk (might break in the next twx version when e.g. the schema changes).

Announcements


Top Tags