|
|
|
|
|
by Svip
1028 days ago
|
|
Seems strange the article doesn't mention the `= ANY(array)`[0] alternative to `IN (?)`. The problem with `IN` is that PostgreSQL uses a slow parser for the subquery, since `IN` is an SQL standard, and a legacy parser is used. You can see in the EXPLAIN, that PostgreSQL converts the `IN (...)` into `= ANY(array)`. [0] https://www.postgresql.org/docs/current/functions-comparison... |
|