1👍
✅
Ah, never mind. I was actually ordering my books in my Serializer method which was adding the additional queries:
def get_books(self, obj):
qs = obj.books.order_by(XXX)
return BookSerializer(qs, many=True).data
If I remove that ordering, it is indeed just two queries.
Source:stackexchange.com