Maybe you should try playing with the offset param in fetch()

MyData.all().fetch(1,random_offset)

Just remember the fetch limit is 1k.

On Sep 2, 11:31 am, Alexander Kojevnikov <[EMAIL PROTECTED]>
wrote:
> > What I want to ask is ,how random the get() method is ?
> > i.e.
> > MyData.all().get()
> > will get me different result each time ?
>
> As far as I understand, if no order is specified, the entities are
> ordered by their keys. That is the result will be exactly the same
> each time you run all().get()
>
> Regarding using a datetime field to fetch a random entity, you need to
> be careful that your dates are more or less uniformly distributed.
> Otherwise you will get some entities more often than others.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to