I think I got it now.
I did this after creating the MQT:
Quote:
REFRESH TABLE Schema1.NewMqtTable;
RUNSTATS ON TABLE Schema1.NewMqtTable; (<-- is this of any use actually?)
SET CURRENT REFRESH AGE = ANY;
SET CURRENT QUERY OPTIMIZATION = 9;
|
When I use a select statement which matches the one given at MQT-creation, the time needed to fullfil the request speeds up from ~5ms to <1ms.
Thank you all for hints and advice.
//edit: typo.
//edit2:
Correction: I do not know where the effect of the sped up request times came from. It seems impossible to reproduce it. So solution described above does not seem to be the answer to my problem.
//edit3: Looks like it works in the end. I think I messed up the threading (by using multiple clients) when I wrote edit2.