Most Efficient One-To-Many Relationships in Google App Engine Datastore?

后端 未结 3 1176
耶瑟儿~
耶瑟儿~ 2021-02-04 05:28

Sorry if this question is too simple; I\'m only entering 9th grade.

I\'m trying to learn about NoSQL database design. I want to design a Google Datastore model that min

3条回答
  •  情深已故
    2021-02-04 06:01

    Be aware of this caveat when using a repeated StructuredProperty:

    Do not use repeated properties if you have more than 100-1000 values. (1000 is probably already pushing it.) They weren't designed for such use.

    See Guido's answer in GAE ndb design, performance and use of repeated properties.

    So while you may not hit the 1 MB entity limit with StructuredProperty, you may easily hit the 100-1000 suggested max.

提交回复
热议问题