Hello!
On Wed, Feb 18, 2015 at 12:33 PM, Rollin Crittendon wrote:
> I have done some things with the shared dictionary. It works great, thank
> you!
>
> I was wondering, if I want to share a table across processes, are the
> following the options today?
> 1) Serialize and deserialize the table on set and get.
> 2) Another option is to have sub-keys be string so "address.city",
> "address.zip" etc.
>
The second approach is usually much more efficient because
serialization is almost always an expensive operation. Having said
that, the 2nd approach may result in incomplete records in case of key
eviction when running out of storage. Just be prepared for it when the
dict size is configured small.
Regards,
-agentzh