Hello Erel, Thanks for the quick reply !
If I understand correctly,
- The structure to save will be : List - Map - Properties
- I need to iterate among all objects to save them. That's what I expected to avoid because of performance issues. The number of objects may be high and the user will need to wait for all objects to be saved when he will want to save only one item.
I updated the project in the first post including images folder. Here are performance results for 6 objects :
WriteMap : 62 ms
KVS list-map PutObject : 656 ms
KVS list-map GetObject : 157 ms
KVS map-map PutObject : 968 ms
KVS map-map GetObject : 172 ms
KVS map-type PutObject : 968 ms
KVS map-type GetObject : 172 ms
Conclusions :
- WriteMap : 10ms by object to save / impossible to restore / impossible to update one object at a time
- KVS list-map : 100ms by object to save / 25ms by object to restore / impossible to update one object at a time
- KVS map-map : 150ms by object to save / 30ms by object to restore / possible to update one object at a time
- KVS map-type : 150ms by object to save / 30ms by object to restore / possible to update one object at a time
If this analysis is correct, I will better choose KVS map-type approach because of the possibility to update objects instead to save all the objects.