I am working on a POC (to move part of functionality from relational DB to cloud datastore). I have few questions:
- I would need to refresh few "kind" every night as the data comes up
from a different data source (via flat files). I read about it, and
understood that there is not TRUNCATE kind of functionality in
datastore. I believe, only option is to retrieve the keys from the
"kind" in a loop and delete entity by entity. And use import functionality to load the new set of data. Is there any better
option?
- Assume I have a kind called department, and a kind called store. Now, I need a kind called dept-store. So for this parent nodes are department and store. Is there a way to enforce this kind of relationship? From the documentation I see that there can only be one parent.
- If i have a child entity in kind1 whose parent is present in kind2, and they are linked together, is there a way to query all the properties present in kind1 and kind2 together? From relational DB perspective, it is like equi-join with "SELECT *". I am looking for an equivalent functionality in datastore.