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?
Discussion 0
Join free to post in the discussion.
Related questions
- Slow email during signupBackend Developer
- What EXPLAIN tells youBackend Developer
- Asking for only a few fieldsBackend Developer
- Building a long string in a loopBackend Developer
- Building SQL from user inputBackend Developer
- What atomicity guaranteesBackend Developer
- WHERE column = NULL finds nothingBackend Developer
- COUNT(*) versus COUNT(column)Backend Developer