getting all entities of type from datastore

57 views
Skip to first unread message

Jonathan Bailey

unread,
Apr 1, 2012, 7:34:37 PM4/1/12
to google-a...@googlegroups.com
The example here shows how to fetch at most 10 items, but I would like to retrieve all the of items, in order to loop through them.

How do I go about this? Like how do I create an array (or slice as Go seems to call them) which has no set capacity?

Bearing in mind that it may have hundreds of entities at some point, how can do I this without loading them all into memory at once? Or do I not need to worry about that on GAE?

Richard Watson

unread,
Apr 4, 2012, 5:48:27 AM4/4/12
to google-a...@googlegroups.com
Hi Jonathan,

As Amy says here, it's probably best to put questions like this on stackoverflow.com.

Richard
Reply all
Reply to author
Forward
0 new messages