I have found the "ANY" operator to be slow in general. It is almost always faster to use the "<@" operator:
```
-- more intuitive: select count(*) from testarray where 'test' = ANY (myarray) ;
-- faster: select count(*) from testarray where ARRAY['test'::varchar] <@ myarray ;
```
It is just one of those things, like replacing "OR" with "UNION ALL" whenever possible too, that just make queries faster in PostgreSQL without a ton of effort or fuss.