When `my_variable IN (<long_array_of_items>)` is fast in PostgreSQL?
I find my self sometimes needing to select many items of different tables based on a list of id's or other variables. Given that this list can contain thousands of elements, it is important for me that the filter does…