UNION ALL takes forever with NULL dataset

你。 提交于 2019-12-24 18:26:10

问题


On a query like:

select col_A from t1
UNION ALL
select col_A from t2

were select col_A from t2 return zero rows, Oracle 11G is taking forever to run. If t2 returns at least 1 row, this query is at least 10 times faster. Any thoughts?

来源:https://stackoverflow.com/questions/45105606/union-all-takes-forever-with-null-dataset

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!