Quantcast
Viewing all articles
Browse latest Browse all 27759

Query with Very High CPU Usage - response (1) by dnoeth

The join condition is equal to Z.ID = X.ORDER_NBR OR Z.ID = X.SUB_ORD_ID   You should always try to avoid ORed join conditions, they always lead to product joins. To fix this you have to split the ORed join into two seperate queries using one of the conditions each and UNION ALL them. Dieter    

Viewing all articles
Browse latest Browse all 27759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>