n+1 queries for ListModelMixin in rest_framework.mixins #9448
Answered
by
browniebroke
Pradeep713
asked this question in
Ideas & Suggestions
-
This seems to iterating through a queryset which is causing
This removed the I would love to know if my approach to solving this problem is correct or the changes are needed elsewhere (glaring at Thanks in advance, Cheers! |
Beta Was this translation helpful? Give feedback.
Answered by
browniebroke
Jun 26, 2024
Replies: 1 comment 3 replies
-
You can add the appropriate Which fields to add will depend a lot on your model and serializers... DRF can't do much automatically here. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As I said, it depends. As an example, let's take the models from the Django tutorial: