Storing hierarchical data in Google App Engine Datastore?

前端 未结 3 1372
故里飘歌
故里飘歌 2020-12-04 11:40

Can someone illustrate how I can store and easily query hierarchical data in google app engine datastore?

3条回答
  •  一个人的身影
    2020-12-04 11:57

    One way is to use the Model's parent attribute. You can then make use of query.ancestor() and model.parent() functions.

    I guess it depends on what kind of operations you want to do on this data which would determine how best to represent it.

提交回复
热议问题