I am searching the Final
model (defined below) with a query which filters on its name
property. This query is taking about 2200ms to execute on the development server. How can I speed it up? Here is an AppStats screenshot.
I was filtering on the created
field too, but this was taking in excess of 10000ms so I've removed that part of the query for now.
class Final(db.Model):
name = db.StringProperty() # 7 characters long
author = db.StringProperty()
rating = db.FloatProperty()
created = db.DateTimeProperty()
# this is the important part of the request (AppStats shows that these two
# queries take about 2200ms each).
query = Final.all()
query2 = Final.all()
query.filter('name = ', link1)
query2.filter('name = ', link2)
aa = query.fetch(10000)
bb = query2.fetch(10000)