Questions tagged [entity-groups]
19 questions
25
votes
3 answers
Good open-source examples of using entity groups in App Engine?
I know all details about how entity groups work in GAE's storage, but yesterday (at the App Engine meetup in Palo Alto), as a presenter was explaining his use of entity groups, it struck me that I've never really made use of them in my own GAE apps,…

Alex Martelli
- 854,459
- 170
- 1,222
- 1,395
13
votes
2 answers
When to use entity groups in GAE's Datastore
Following up on my earlier question regarding GAE Datastore entity hierarchies, I'm still confused about when to use entity groups.
Take this simple example:
Every Company has one or more Employee entities
An Employee cannot be moved to another…

Tony the Pony
- 40,327
- 71
- 187
- 281
4
votes
1 answer
Google Appengine: Is This a Good set of Entity Groups?
I am trying to wrap my head around Entity Groups in Google AppEngine. I understand them in general, but since it sounds like you can not change the relationships once the object is created AND I have a big data migration to do, I want to try to get…

Blaine Garrett
- 1,286
- 15
- 23
3
votes
1 answer
Google Appengine: Odd get_by_key_name behavior
UPDATE: After further testing, it seems this issue affects all child entities in my entity group. My root parent for all these different instances is User kind, which is my own creation, not the built in User kind. After removing the parent=user…

Blaine Garrett
- 1,286
- 15
- 23
2
votes
1 answer
Entity Group Consitency after PUT in Appengine HRD
Say I have an Entity A and an Entity B, A is a parent of B, that is, many B's can be part of a single A's entity group.
Now, say I put to the HRD a bunch of B's (across many entity groups - i.e. they across many A parents). If I now query for all…

aloo
- 5,331
- 7
- 55
- 94
2
votes
2 answers
Unique short identifier across entity groups in App Engine
I've searched around for answers to this question, but not found anything quite on the money. I'd be really interested to hear people's thoughts. Here goes:
In Google AppEngine, lets say I have a number of User objects, each of which can have a…

Mason
- 3,577
- 2
- 20
- 11
2
votes
1 answer
creating a compound or composite key on google app engine
I have two models:
Car(ndb.Model) and Branch(ndb.Model) each with a key method.
@classmethod
def car_key(cls, company_name, car_registration_id):
if not (company_name.isalnum() and car_registration_id.isalnum()):
raise…

Rusty Rob
- 16,489
- 8
- 100
- 116
1
vote
1 answer
GAE/J Is fetch all faster with 1 entity group or multiple entity groups?
I have an Entity called Movie.
I want to have a get_or_create method for the Movie entity. Right now each Movie entity is in its own Entity group.
I read I have to put them in the same entity group and use transactions to avoid duplicate entities.
I…

dnkoutso
- 6,041
- 4
- 37
- 58
1
vote
1 answer
Symfony Serializer with Groups not working - empty output
I am trying to serialise data as JSON with the default Symfony Serializer.
To do that I'm trying to use @Groups() as explained here:
https://symfony.com/doc/current/serializer.html
After adding the @Groups annotation as shown below:
class User…

Alphabetus
- 309
- 3
- 12
1
vote
1 answer
Are Google App Engine entity groups locked when writes are not in a transaction
I have a question-answer-comment application(similar to stackoverflow). The questions and their related answers and comments logically form part of entity groups as defined in App Engine Docs .
I want to use entity groups/ancestor paths to group my…

ThierryMichel
- 487
- 1
- 5
- 20
1
vote
1 answer
Is there any limit of the entities written in one batch query per entity group (max number/second) in AppEngine DataStore?
I am structuring my datastore 'schema' and I have created root entity that has many child entites. My application will do potentially thousands of writes in the child entities. (The reason for this was some simplicity in terms of transactions - I…

honzajde
- 2,270
- 3
- 31
- 36
1
vote
4 answers
Google App Engine Assigning Entity Groups / Parent Keys, Unique constraint
I have a Kind of 'Customer'. I want to run a transaction that locks the entire Kind when a new 'Customer' is about to be inserted. The transaction would first query to check that the new 'Customer' Name does not already exist, then the 2nd part of…

GrantsV
- 45
- 1
- 7
0
votes
1 answer
How To Use Entity Groups And Ancestors with DjangoForms
I would like to rewrite the example from the GAE djangoforms article to be show most up to date after submitting a form (e.g. when updating or adding a new entry) on Google App Engine using the High Replication Datastore.
The main recurring query in…

reallife
- 329
- 4
- 12
0
votes
2 answers
GAE Lookup Table Incompatible with Transactions?
My Python High Replication Datastore application requires a large lookup table of between 100,000 and 1,000,000 entries. I need to be able to supply a code to some method that will return the value associated with that code (or None if there is no…

Dragonfly
- 814
- 8
- 12
0
votes
1 answer
Creating Entity Group in SuiteScript
I'm trying to create an entity group through SuiteScript based upon creation of some custom records. However, I'm getting an error:
You cannot define this group type using this search.
The search being used is a search for contact records, the…

Michael McCauley
- 853
- 1
- 12
- 37