python - Google AppEngine: how to count a database's entries beyond 1000? -


duplicate of


I want to know how many users I have. First, I have achieved it with the following code:

  user = userstore.all () user_count = users.count ()  

but now my There is more than 1,000 users and 1,000 in this method continue to come back.

Do I have a skilled programmatic way of knowing how many users?

This is actually a duplicate, and in the second post the theoretically described how to do this, But I want to emphasize that you really should not do this kind of calculation. The reason for this is that the distributed nature is really bad for the BigTable set. What you probably want to do, add a transaction counter to that unit, and see if a lot of transactions are a chopped counter:

UPDATE: 1.3.1 The stuff from the cursor is easy like this Make:


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -