What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-12 15:25:09
django select_related and prefetch_related
django select_related and prefetch_related select_related >> foreignkey prefetch_related >> many to many basically they are performance boosters ,used to avoid multiple unnecessary queries Both methods achieve the same purpose, to forego unne... Add solution
Best helpers
Kittyngwy
+5
Fame Whiz
+5
Wolfwood
+5
Larry Liang
+5
Clay Fowler
+5
RogueModron
+5
Mahdi_12167
+5
Lina Omran
+5
Cris Kool
+5
Talin
+5
Egon pauli
+5