Could you add an int property that is updated with the len ?
So you only check this property ?


On 21 juin, 17:51, johntray <john.tur...@gmail.com> wrote:
> If I have two datastore object types, I'll call A and B, and A
> includes a ReferenceProperty to B, then objects of type B will have a
> back-reference property with default name a_set. Now if I just want
> the size of some B object's a_set, I could call len(a_set). To execute
> this, my understanding is that GAE will do a datastore query to
> retrieve the relevant A objects and pass them to the len() function.
> Since I don't need the A object contents, would it be more efficient
> to set up my own Query object and call Query.count() instead?
--~--~---------~--~----~------------~-------~--~----~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to