的"how does one get a count of rows in a datastore model in google appengine?"Google AppEngine:如何统计超过1000个数据库的条目?
重复,我想知道我有多少用户。以前,我用以下代码实现了这一点:
users = UserStore.all()
user_count = users.count()
但是现在我有超过1000个用户,并且此方法继续返回1,000。
有没有一种有效的程序化方式知道我有多少用户?
+1000。计算每个用户的每个请求是一个非常糟糕的主意。 – 2009-04-28 09:59:55
我最终实现了这个! 感谢百万,我的表现提高了很多(: – 2009-04-30 02:43:22