2021-06-22
Django查询优化–prefetch_related
prefetch_related使用案例
class A(BaseModel):
bu = models.ForeignKey(Bu, on_delete=models.PROTECT, related_name='bu_tpmbase', db_constraint=False, verbose_name='BU', help_text='BU')
....
class B(models.Model):
tpm_base=models.Forei
原创
2021-06-22 13:42:54 ·
60 阅读 ·
0 评论