I think the easiest way to do this would be to calculate the list size at
write time and store the size in its own property. Then you would just query
on the list size property. Since I imagine the list size is known at write
time, this should be quite cheap.

Happy coding,

Jeff

On Tue, Apr 14, 2009 at 3:59 PM, Anonymous Coderrr <[email protected]>wrote:

>
>
> Let's say I have:
>
> class A (db.Model)
>  someList = db.ListProperty(sometype)
>
>
> Is there any way I can include in the where clause of a GQL query the
> size of the list?
>
>
> something like
>
> select * from A where someList.__size__ = :someint
>
> Thank you.
> >
>

--~--~---------~--~----~------------~-------~--~----~
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