Hi,

for development I used the memory backend. Now I switch to rocksdb backend and 
have some questions:


  1.  Will all values (@Persisted) be loaded eagerly (on activation of the 
function’s scope) or is there some kind of lazy loading?
  2.  If there is some kind of lazy loading:
     *   Does this apply to PersistedValue?

                                                    i.     Means will the value 
be loaded once I access the getter?

                                                   ii.     Will a previous 
value be loaded on setting a new value?

     *   In which way would this apply to PersistedTable?

                                                    i.     Will the keys be 
loaded eagerly or lazy?

                                                   ii.     Will the entire map 
be loaded on accessing the table…

                                                  iii.     …or will each value 
be loaded on accessing by key?

                                                  iv.     Will the entire map 
be loaded on accessing the keys but not the values or are the keys stored in a 
way which allows to load only the keys?

                                                   v.     Will the entire map 
be loaded on putting/updating one value by key?

I don’t use it yet, but what about PersistedAppendingBuffer? The existence of 
such a type suggests that there is some kind of lazy loading (at least to not 
load all data on writing).

I’m thankful for clarification about it 😊

Cheers,
Stephan

Reply via email to