Without joins on Google App Engine, does your data have to exist in one big table?

后端 未结 4 1085
我寻月下人不归
我寻月下人不归 2021-02-05 18:42

Since Google App Engine doesn\'t permit joins, does this mean that I have to take all of the tables in my web app and figure out a way of combining them into a single huge table

4条回答
  •  走了就别回头了
    2021-02-05 19:13

    Just because you don't have joins implemented by the DBMS doesn't mean you can't have multiple tables. In App Engine, these are called 'entity types', and you can have as many of them as you want.

    Generally, you need to denormalize your data in order to avoid the need for frequent joins. In the few situations where they're inevitable, you can use other techniques, like doing the join in user code.

提交回复
热议问题