I have two queries that are functionally identical. One of them performs very well, the other one performs very poorly. I do not see from where the performance difference ar
The second query makes usage of the HASH JOIN feature of postgresql. This is much faster then the Seq Scan of the first one.
HASH JOIN
Seq Scan