Reputation: 2455
If I want to get a property (no filtering) of 50,000 entities and display them all on one page, what would be the most efficient way to do that?
Should I fetch() then in pieces of 1000 at time or use the query iterator?
The entities themselves are small, having one or two StringProperty (unindexed, because no filtering is required), which are < 50 bytes.
PS: I want to display all 50k at once (ie. without the need for a "next" link)
Upvotes: 2
Views: 151
Reputation: 23556
If you regularly load 50k entities, you'd better join them all together and save to the BlobStore
, so you can easily get them (or serve them) all at once. I don't see any point in storing them to the database, especially because you're not doing any filtering or sorting.
Upvotes: 1