ThingWorx Model Definition and Composer > Data Storage > Value Streams
Value Streams
ThingWorx value streams provide time series information about a thing’s property values.
For users that are familiar with the functionality of streams, there are some noteworthy differences between streams and value streams in ThingWorx. The key difference is the way the data is written and returned.
Streams are independent data stores and can access data continuously. That is, querying a single column value returns the entire row.
Value streams store data from an associated thing’s property. That is, querying the thing’s property data returns the values for that property only.
This method of data storage in value streams contributes to the elimination of sparsely-populated data tables that can be evident with streams. This thing-centric access of its data in a value stream provides built-in support for multi-tenancy. In addition, scripts are not required to write thing property data to its value stream.
Based on these differences, streams remain most beneficial for non-thing driven models, while value streams are most useful for thing-driven models.
Value streams can also be used in a federation scenario, where the value stream data is written to another ThingWorx server. See the Federation section for more information.
Video Tutorial: Value Streams: Modeling
Video Tutorial: Value Streams: Mashup
Related Links
Creating a Value Stream
Accessing Value Stream Data Using Services
Using the QueryPropertyHistory Service