在Django文档中, select_related() “遵循”外键关系,在执行查询时选择其他相关对象数据。 prefetch_related() 对每个关系进行单独的查找,并在Python中执行“联接”。
確定! 回上一頁