On Mon, Jul 14, 2014 at 7:40 AM, vinvar k <[email protected]> wrote:
> I would like to store a ArrayList<Object> in datastore. The values that > are supported to be stored in google datastore does not contain ArrayList > .But still im able to save it by just calling entity.put(). > You can save a Collection (or implementations of Collection) to the datastore: https://developers.google.com/appengine/docs/java/datastore/jdo/dataclasses#Collections . Fortunately for your use case, ArrayList implements Collection. On Mon, Jul 14, 2014 at 7:40 AM, vinvar k <[email protected]> wrote: > Is there any limit for the amount of data that can be as a ArrayList in > datastore or no limit and i can store a list of 1000's object wihout any > worry. > Well, there is the usual limit of 1 MB for a datastore entity <https://developers.google.com/appengine/docs/java/datastore/#Java_Quotas_and_limits> - if you're storing thousands of entries, you'll most likely hit that limit sooner or later. But more to the point, you may want to rethink your schema if you're intending to save thousands of values into a property. Usually (but not always) there's a simpler way to store what you need. ----------------- -Vinny P Technology & Media Consultant Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
