Question

How do I modify or add to a previously stored object? If I had a hashtable called "people" which currently maintains 100 hashtables representing individual people, how would I add a profile image and a favorite quote to one of these "people". I see example of accessing the top level of local storage, but I can't seem to find anything about accessing nested members directly. Obviously this could be done by reading the hashtable object, modifying the desired data and rewriting the object, but this seems too inefficient.

Was it helpful?

Solution

Storage is a filesystem like structure designed for smaller things, when you write an object you are effectively serializing which is good for smaller elements. You can either break down the data to smaller "batches" to make it more efficient so instead of writing the whole data to one storage entry.

Alternatively you can use SQLite or CloudObject to store elements, both of which are covered extensively in the developer guide, how do I & course.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top