【发布时间】:2010-07-08 09:24:53
【问题描述】:
我在这里获取了这个示例代码:Django ORM: Selecting related set
polls = Poll.objects.filter(category='foo')
choices = Choice.objects.filter(poll__in=polls)
我的问题很简单:当你最终使用查询集choices 时,你是否打了两次数据库?
【问题讨论】:
标签: python django performance django-orm