How to execute several unrelated queries so that they were sent in a single DB request?

前端 未结 0 1544
北海茫月
北海茫月 2021-02-04 05:14

Let\'s say I need to get several objects:

obj1 = session.query(First).get(1)
obj2 = session.query(Second).get(2)

As far as I understand, this way

相关标签:
回答
  • 消灭零回复
提交回复
热议问题