What is the difference between the following two query methods with filters?
@classmethod
def get_by_user_id(cls, ancestor_key, user_id):
return cls.query(cls.user_id==user_id, ancestor=ancestor_key).get()
and
@classmethod
def get_by_user_id(cls, ancestor_key, user_id):
return cls.query(user_id=user_id, ancestor=ancestor_key).get()
Seems to give the same results, which are entries filtered by the value of user_id. Thanks.