The times shown above are milliseconds as reported by EXPLAIN ANALYZE. So, there is this significant jump in times around 512 elements when using ANY compared to IN, which still finished in ...