June 2019
Beginner to intermediate
770 pages
19h 24m
English
When we have more complex containers or collections, we have more complex design decisions to make. One question is about the granularity of our shelved objects.
When we have an object, such as Blog, which is a container, we can persist the entire container as a single, complex object on our shelf. To an extent, this might defeat the purpose of having multiple objects on a shelf in the first place. Storing large containers involves coarse-grained storage. If we change a contained object, the entire container must be serialized and stored. If we wind up effectively pickling the entire universe of objects in a single container, why use shelve? We must strike a balance that is appropriate to the ...
Read now
Unlock full access