how to improve the performance UNION ALL WITH ORDER BY

647 Views Asked by At

table A has billions of data and table B have very less amount of records. we are fetching union all of A and B using UNION ALL. when we do sort by on top of view query, it took a long time to fetch the records do u have any idea how we can improve the performance?

0

There are 0 best solutions below