1
第一種情況,這個django應用程序模型構造有顯着的性能差異嗎?
app_1 - post_model_1
app_2 - post_model_2 (has Foreign Key Field to post_model_1)
app_3 - post_model_3 (has Foreign Key Field to post_model_1)
第二種情況下,
app_1 - post_model_1,
post_model_2 (has Foreign Key Field to post_model_1),
post_model_3 (has Foreign Key Field to post_model_1),
,如果我做的QuerySet喜歡把所有相關的帖子(不管它是什麼post_model_2,或post_model_3)使用ForeignKeyField到post_model_1,
第一種情況和第二種情況有區別嗎?
如果是,哪個更快?
謝謝!它有幫助。 – touchingtwist