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.

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top