Skip to main content
10-Marble
January 8, 2020
Question

Caching in Thingworx

  • January 8, 2020
  • 1 reply
  • 2085 views

How to Implement Caching in Thingworx.

Any reference/pointers/samples will help.

 

Thanks

 

1 reply

22-Sapphire I
January 9, 2020

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

mapatil10-MarbleAuthor
10-Marble
January 13, 2020

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
22-Sapphire I
January 13, 2020

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.