Im having a performance issue on using union. I have two sql queries with same column results but from different tables:
SELECT COL1, COL2, COL3
FROM TABLE1
(需要大约4秒完成)和:
SELECT COL1, COL2, COL3
FROM TABLE2 INNER JOIN TABLE3 ON ID
这需要大约4秒完成。当我使用 < code> UNionion ALL 来完成这两个查询时,结果需要22秒才能完成。
是否有改进业绩的建议?