Comment by tosti
10 hours ago
In that case, I'd suggest using EXPLAIN on your query and CREATE INDEX on whatever requires full table scans.
Worst case, you could CREATE MATERIALIZED VIEW whatever would've happened in that temp table.
At the end of the day, your single query will be faster.
No comments yet
Contribute on Hacker News ↗