Thanks for the article - but this provides an overview of MQT which I am already familiar with.
It talks about the automatic query rewrite (AQR) - which uses the MQT rather than the base table that is referenced in the query. I developed 2 queries - one against the base table taking 3 - 5 seconds and the same data represented in the MQT taking less that .5 second. I don't know why the AQR doesn't know to use the MQT which is obviously faster. I ran them both the SQL Explain (with in quest).
I guess that DB2 optimizer will need statistics to be able to make a decision to deploy AQR strategy. Did you make the effort to update statistics AFTER creating the MQT?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.