Take the 2-minute tour ×  Duplicate of "how does one get a count
of rows in a datastore model in google appengine?"  I'm having
big trouble.  I want to know how many users I have... I did:
users = UserStore.all()  quite simple... But now I have more
than 1000 users and this method continues to return 1000.  Is
there any other way of knowing how many users I have?
(obviously, I want a dynamic way of doing so, I don't want to
check the Dashboard)  Please help me! I'm very lost and panicked
share|improve this question add comment  5 Answers  up vote 14
down vote accepted  It is indeed a duplicate and the other post
describes how to theoretically do it, but I'd like to stress
that you should really not be doing counts this way. The reason
being that BigTable by it's distributed nature is really bad for
aggregates. What you probably want to do is add a transactional
counter to that entity, and if there are lots of transactions a
sharded counter. See:
http://code.google.com/appengine/articles/sharding_counters.ht