Read the original article at How to Optimize MySQL UNION For High Speed
Join 6100 others and follow Sean Hull on twitter @hullsean. There are two ways to speedup UNIONs in a MySQL database. First use UNION ALL if at all possible, and second try to push down your conditions. 1. UNION ALL is much faster than UNION How does a UNION work? Imagine you have two tables [...]
For more articles like these go to Sean Hull's Scalable Startups
Related posts:





