Thank you to everyone for the responses.

If I understand correctly, for my exampe I should use

if MyModel.gql("WHERE prop = :1 AND active = True", s).count(1):
  print "Found"
else:
  print "Not found"


On Jan 12, 5:52 pm, ryan <ryanb+appeng...@google.com> wrote:
> +1 to the responses.
>
> just to clarify, for the purposes of the archives. in case there's
> confusion between the two get() methods: Model.get()/db.get() are
> generally the fastest, modulo the size of the entity. Query.count(1)
> will be in the same ballpark, usually a little slower, but faster if
> the entity is big. Query.get(), and Query.fetch(1) are slower still,
> and basically the same.
--~--~---------~--~----~------------~-------~--~----~
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