|
When using UNION a UNION DISTINCT is performed, i.e. all column and all row
values of all results are compared and duplicates removed. ... which is time
consuming.
If you specify UNION ALL instead, the results of all queries are just merged
and not compared. So an UNION ALL can be (much) faster than and UNION
(DISTINCT)
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.