Model.get_by_key_name will call db.get:
@classmethod
def get_by_key_name(cls, key_names, parent=None, **kwargs):
Get instance of Model class by its key's name.
Args:
key_names: A single key-name or a list of key-names.
parent: Parent of instances to get. Can be a model
Is db.get() faster than Model.get_by_key_name()?
Currently we are using Model.get_by_key_name for querying over a
Model. Sometimes it takes unacceptable time, but mostly it is good
enough. The Model has fewer than four attributes, all text. There is a
lot of data that is stored using this model