AppEngine's entity group write limit is very limiting in real life application?

匆匆过客 提交于 2019-12-11 15:18:39

问题


I'm thinking about introducing entity groups in my application to enable strong consistency. Propose I have an Order entity and a OrderRow entity with each Order as a parent for it's OrderRows. Then it would be normal to update the Order with the sum of all OrderRows when adding an OrderRow.

But because the datastore is limited to 1 write per second, each time I edit/add an OrderRow it would take at least one second because of the updating of the Order.

Is this correct? If so, the one second limit is extremely limiting because it's very often you update two entities within the same entity group in one user request?


回答1:


If it is within a single request, then you can run them all within the same transaction, (which is the purpose of the entity group).



来源:https://stackoverflow.com/questions/7049717/appengines-entity-group-write-limit-is-very-limiting-in-real-life-application

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