English 中文(简体)
Google 应用程序引擎一致性
原标题:Google app engine consistency parent/child member

在文献资料中,有大量关于最终一致性的信息,然而,我想知道与父母/子女价值观的一致程度如何。

@Entity
class Parent {
    ...
    String parentName;
    Child child = new Child(parentName);
}

@Entity
class Child {
    ...
    String parentName;

    Child(String parentName) {
        this.parentName = parentName;
    }
}

如果我更新了父子关系中的野外父子关系名称,

问题回答

如果父母/子女指这两个实体是在同一实体组中创建的,那么可以在一个交易中更新两个实体,更新将是原子的,并且非常一致。 (实体集团关系在代码样本中没有完全说明:您必须创建带有适当密钥的实体。 )





相关问题
How to make logging.debug work on Appengine?

I m having a tough time getting the logging on Appengine working. the statement import logging is flagged as an unrecognized import in my PyDev Appengine project. I suspected that this was just an ...

gqlQuery returns object, want list of keys

Is there a way to convert the GqlQuery object to an array of keys, or is there a way to force the query to return an array of keys? For example: items = db.GqlQuery("SELECT __key__ FROM Items") ...

Integrating Google AppEngine with a Thick Client

I want to make a multi-user client-server solution with Java Swing thick client as a front-end and Google AppEngine (Java one) as a back-end. The problem is that GAE provides only web-based forms for ...

sorl.thumbnail : thumbnail is not a valid tag library?

I am trying to install sorl.thumbnail but am getting the following error message: thumbnail is not a valid tag library: Could not load template library from django.templatetags.thumbnail, No module ...

热门标签