Hacker News new | ask | show | jobs
by radiospiel 16 days ago
Indeed. The query should maybe be a UNION ALL over individual search results instead.
1 comments

They compare to UNION ALL in passing:

> Getting that original, natural SQL query down to 100 ms on a single core (12x-50x faster than the 84-line UNION ALL rewrite, and within range of a fully denormalized dataset) required rethinking how joins and search indexes interact