100x faster Postgres performance by changing 1 line