Skip to content
RED SAG Skills
hard20 pts · first answer countsdatabasespostgresqlperformance

A query with 20,000 ids in IN (...)

An export builds `WHERE id IN (...)` with 20,000 literal ids, and the query is slow to parse and sometimes fails. What is a better approach in PostgreSQL?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions