app engine ndb - Understanding Google NDB entity relationships -


I am working with a Google App Engine application based on NDB and two entities (A and B) where A Many relationships with the nearest one is B. Apply with a property like this

  bobjects = ndb.KeyProperty (repe = true); I have created an A object (say A1) and three B objects (B1, B2, B3). So I've added the B1, B2 and B3 keys to a1.objects vector. It works fine, but I've removed B1, B2 and B3 from the datastore and they are still visible in 1 (!). Why?   

Why will not they?

The keyporpette store key is nothing to say that there should be keys for those institutions that are actually present, or even referring to those things that you have defined as well . They are just keys.

GAE is not a relational database, and you should not consider it as one. If you need to keep references to other entities, you will need to make sure that you update those references when necessary.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -