Where do you get that in the pg documentation? I can't find that anywhere (google-fu may be failing me), and we do have some queries with more than 100 values using IN.
On Tuesday, July 24, 2018 at 11:00:48 PM UTC-4, Ram Jayaraman wrote: > > 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/2959bc91-c0e1-4611-8c95-439fa181f4a0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.