Hi,
I'm trying to understand which approach is better with regard to write throughput in transactions.
We currently have multiple models that all use the same parent key.
As an example, we have the following models:
- Foo
- FooLog (which uses a parent key from Foo)
- FooAudit (which uses a parent key from Foo)
My understanding is that writes to FooLog, FooAudit and Foo are all on the same entity group and thus there'll be limited throughput and possible failed transactions.
We still want to be able to query in transactions, so a parent key is required.
As a way around this, could we create a parent key using Foo's Id?
E.g.
and
FooAudit would have a key("FooAudit",
foo.key.id()).
By doing this, Foo, FooLog and FooAudit would all be in different entity groups, but I can still get consistent results when querying in a transaction.
Is this the correct approach approach?