Hi

Do you know your key structure and general distribution?

If for instance you keys are ints, you could randomly choose a key
do a > query and grab the first past that value or a random number
past the first one,
that way you only need to return a few keys/entities.

To make it more likely to get hits, your could have a task queue that
maps the
keys ranges, then your random choice can come from a set of values
more likely to give you an entity.

Just a thought ;-)

T

On Nov 26, 11:35 pm, lein <[email protected]> wrote:
> hello,
>
> i have a table of questions that has many rows. every now and then i
> would have to generate a quiz by randomly selecting questions from
> this table. making a key only query and randomly selecting the
> question keys from the resulting list of keys, takes a lot of CPU
> resources. any suggestions on how i could better do this?
>
> thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
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