UNION ALL slow
I have 2 complex queries, just for the simplicity
1. SELECT * from T1 --> takes 1sec
2, SELECT * from T2 --> takes .5 sec
3, SELECT * from T1 --> takes 3 sec
UNION ALL
SELECT * from T2
Why is UNION ALL taking more time? even if its not doing parallel execution it should not be taking 3 secs? any idea? T1 and T2 are complex queries, I made is to simplify the question.
0