问题
I have an app where I am creating a large number of entities. I don't want to put them in the same entity group, because I could be creating a lot of them in a short period of time -- say 1 million in 24 hours.
At certain points, I want to get all of these entities with a query like this:
Foo.all()
How long do I need to wait after the last Foo entity is created to be highly likely to get all of the Foo entities with this query?
EDIT:
From this question, it seems that I can't get all my entities right away. Would be great to know how long I should wait.
回答1:
Other than being quite expensive the whole thing, you will be able to get all your entities right away.
Note that iterating through millions of entities will require to use Tasks and if that is not enough, since they have a deadline of 10 minutes, you should consider using Backends.
来源:https://stackoverflow.com/questions/15261099/gae-how-long-to-wait-for-eventual-consistency