I got the following situation
class M(db.Model):
a = db.ReferenceProperty(A)
x = db.ReferenceProperty(X)
y = db.ReferenceProperty(Y)
z = db.ReferenceProperty(Z)
items = db.StringListProperty()
date = db.DateTimeProperty()
I want to make queries that filter (a), (x, y or z) and (elements) ordered by date ie
mm = M.all().filter('a =', a1).filter('x =', x1).filter('items =', i).order('-date')
For example, there will never be a query with a filter on x and y, for example.
So my questions are:
1) How many (and which) indexes should I create?
2) How many lines can be added to elements? (I'd like to add in the thousands)
3) How many index entries will I have on one "M", if there are 1000 elements?
I don't understand this index stuff yet and are killing me. Your help will be greatly appreciated :)
source
share