GAE: How long to wait for eventual consistency?

纵饮孤独 提交于 2019-12-20 02:32:57

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!