GAE ndb design, performance and use of repeated properties

后端 未结 2 1589
野性不改
野性不改 2020-11-29 08:37

Say I have a picture gallery and a picture could potentially have 100k+ fans. Which ndb design is more efficient?

class picture(ndb.model):
    fanIds = ndb.         


        
2条回答
  •  清酒与你
    2020-11-29 09:12

    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.

提交回复
热议问题