python - How can I know when I need another entity instead of a property? -


i making project in gae in have work orders have products. these products in turn have transactions associated them, may happen in different days , areas. have thought of different ways accomplish this, range 1 extreme other.

the first extreme store transactions dates , areas 1 big json object in jsonproperty of product. other 1 have entity each product/area, entity each transaction associated product/area.

i don't either of those, since first 1 @ risk of reaching 1mb limit per entity (although it's unlikely) , may require unnecessary processing, while second 1 sounds terribly wasteful (way many objects minimal content, generate indices).

there many options in between, instance having entity per product/area smaller json object in them, don't know how choose. there key questions can ask myself determine when entity needed or when property can enough?


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -