Speeding up SQL queries by orders of magnitude using UNION | Hacker News