What's wrong with using the count() method of the returned query set? i.e. words = db.GqlQuery("SELECT * FROM MyWords where bookname = 'book1'") if words.count() > 5: blah blah
Not the most efficient way if you're only interested in the count (and not the results). Phil On 4 July 2011 09:45, Vlad Software <v...@mazuru.com> wrote: > Are you using Python or Java? > If Python you can write your result to list and use len(my_result). > But how to put result to list please read manual > > -- > 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. > > -- 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.