Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Query Rewriting. - response (5) by dnoeth

$
0
0

Did you compare the actual runtime and CPU/IO from DQBL (preferably QryLogSteps)?
You didn't show the full SQL, but i assume there are some joins in the previous steps. Depending on the actual data/PK/FK you might try to aggregate the large table(s) before the join. Otherwise materialize the data without aggregation in a Volatile Table with a PI on the GROUP BY columns and then aggregate on this VT, thus you'll get "computed locally".
 
 
Dieter
 


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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