Is there a prescribed pattern to optimize Prefetches when the expected 
Prefetch list is known to exceed 100 ? We are on Django 1.8 + Postgres 10. 
PG has a limit of 100 for values in IN queries after which the Index on the 
said column is not used. For ex: a typical Prefetch generating an IN query 
on the PK will be turned into a full table scan if the IN list exceeds 100.

Appreciate your suggestions!


-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/749a4a6b-0630-4900-90ab-8e4e8ec29530%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to