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

Caching in Thingworx

mapatil
5-Regular Member

Caching in Thingworx

How to Implement Caching in Thingworx.

Any reference/pointers/samples will help.

 

Thanks

 

3 REPLIES 3
PaiChung
21-Topaz II
(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
5-Regular Member
(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
21-Topaz II
(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.

Announcements