Nathan
Nathan

Reputation: 141

Google Datastore

First of all I have to admit that I am quite new as far as GAE concerns and that is why my question may seem stupid. I would like to keep three different entities that are related to each other.

  1. Project
  2. User
  3. Data

User (M) <-> (N) Project (1) <-> (N) Data

Basically each project can have plenty of Data entities related to it (e.g. 10 000, 100 000).

However, I am not sure how to keep those relations among the entities in Datastore so that I can easily fetch information like:

Maybe the whole idea is wrong and I should use Google Cloud SQL instead.

I would appreciate any comments.

Thank you.

Upvotes: 1

Views: 583

Answers (1)

user1806561
user1806561

Reputation: 99

which environment (Java, Python or Go) is used?

e.g. Python

1 <-> N ReferenceProperty

M <-> N ListProperty

Take a look her for some examples.

Regards, Thomas

Upvotes: 1

Related Questions