tolomea/django-auto-prefetch

Filter Nones from query

Closed this issue · 3 comments

Currently nullable FK's cause id__in=[None, 1, None] style queries. Good to filter them out before sending to DB to reduce SQL noise.

Agree

This might actually be one for django as the prefetch is done with a plain Prefetch('field_name')