开发者

Ancestors in App Engine data store

开发者 https://www.devze.com 2023-03-11 14:04 出处:网络
I\'ve been developing for Google App Engine for a while. One of the features I\'ve noticed but haven\'t had an opportunity to use yet is \"ancestors\" in the data store.

I've been developing for Google App Engine for a while. One of the features I've noticed but haven't had an opportunity to use yet is "ancestors" in the data store.

What would be an example of a 开发者_JAVA技巧situation where this is useful?


When you create an entity with a parent, the entities are placed in the same Entity Group. Transactions in App Engine can only work within a single entity group, so if you need transactions, you need entity groups. If you don't need transaction, you don't need entity groups (in particular, to build relationships between entities that don't need transactional capabilities, you should use ReferenceProperties, not parent-child relationships.)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号