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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Caching in Thingworx

mapatil
6-Contributor

Caching in Thingworx

How to Implement Caching in Thingworx.

Any reference/pointers/samples will help.

 

Thanks

 

3 REPLIES 3
PaiChung
22-Sapphire I
(To:mapatil)

Can you tell us more about the use case?

Generally you can cache information

server side

  Property

  Session parameter

client side

  mashup parameter

  session parameter

 input widget

mapatil
6-Contributor
(To:PaiChung)

I am fetching Hierarchical data in TWX from remote server.

The hierarchy can be huge.

So need to cache this data  on TWX side.

can you tell me  what APIs are available for this.

Any documentation will help.

server side

  1.   Property
  2.   Session parameter
PaiChung
22-Sapphire I
(To:mapatil)

Once you have the information retrieved, you can store that in a property of a Thing.

Now you mention 'Huge' how many rows of data is it?

You will have to cast the information into a fitting format, so either infotable or json

 

You could also store it into a DataTable in Thingworx, but if you are frequently accessing the information you might impact performance. It will again depend on the number of rows.

Top Tags