I need to transform this query that works in RDBS to GAE. Both of them
are working i check it, but there are a better way, more simpler?.

RDBS:
count = db((db.posts.published_on.year()==year_full) &
(db.posts.published_on.month()==month)).count()

GAE:
count = len(db(db.posts.id>0).select().find(lambda
row:row.published_on.year==year_full).find(lambda
row:row.published_on.month==month))

Reply via email to