[Answered ]-Order of select_related in chain

2👍

They both execute the same exact query. So no, there would be no performance differences.

To test, try this:

q = SomeModel.objects.select_related().all()
print q.query

q = SomeModel.objects.all().select_related()
print q.query

You should get the same exact query

👤Abid A

Leave a comment