문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top