Greetings, We have queries with IN filters with long list of INT values Sometimes, they running extremely slow, and I have found suggestion to use syntax Instead of On some cases it helps, but on other it makes query running 1000+ times slower So the issue is: - some queries much faster with simple IN - some queries much faster with IN + VALUES Here is explain on case when it’s extremely slow: What is the right way to pass long INT values list to IN filter? I am using PostgreSQL 13.1 on Ubuntu |