Use values_list, only, and select_related to minimize ORM calls in templates and avoid full queryset evaluations. Create indices on fields that appear frequently in filters and have nearly unique values to improve sorting performance. Check that indices are being used by explaining the query plan and avoiding mixed or multiple field orders.