-
Hi all, @hg-ms According to the output of the following simple example would be that only "name" and "id" would be stored. "version" will be null
microstream version is 08.01.01-MS-GA |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hello, To update the object, you have two options:
In the example code there is also another thing to be aware of:
|
Beta Was this translation helpful? Give feedback.
-
@hg-ms I was wondering also: |
Beta Was this translation helpful? Give feedback.
Hello,
The described behavior is intended.
In your example the first store of the devices will also store the new device object with version being null. The second store will recognize that the device objects has been processed already by the first store and ignore it.
In general, storer only process objects the first time they are encountered. Calling “commit” resets the storer after peristsing the data.
To update the object, you have two options:
In the example code there is also another thing to be aware of:
When setting the storage root at the beginning any existing root will be repla…