I really hope I'm not recreating a zombie thread, but here goes. The current implementation of the `in` operator on an array type column results in the following query (in postgres):
WHERE ($1 = ANY(t0."column"))
But '&&' (a1 && a2 -> do the two arrays have overlapping elements?) is supported by GIN indexes, which means that the `in` operator could be made to use such an index if it is reimplemented to result in a query like:
WHERE(t0."column" && $1) [["element"]]
(with "element" wrapped in an extra list)
The functionality should be the same, as far as I can tell. I'm willing to implement it myself if somebody can point me at the place in the code in either Ecto or Postgrex where the `in` operator is implemented, I couldn't find it by myself.
Julien