DEV Community

Discussion on: 666 Django projects checked for inefficient database queries. Over half had these 4 anti-patterns

Collapse
 
stamper profile image
Alexander Toropov • Edited

I think we can try HoundsModel.objects.exists() instead of HoundsModel.objects.all().exists()

Collapse
 
codereviewdoctor profile image
Code Review Doctor • Edited

ah yes, that would be neater :)