Update: Dynamic Materialized Views
Please read this article also. Its an improved versio of the
technique described below.
Today i found a workaround for a feature that was realy missing
in MySQL.
Let's say you got a really complicated query that requires a lot
of cpu and time to complete, but the resulting data is quite
static. That's the perfect opportunity to use a "Materialized
View". The Bad Thing™ is, mysql does not support what's usually
known as materialized views. But today i found a nice workaround
for MySQL 5.
But first let's clarify what a materialized view is. I found a
good explanation here:
"A materialized view is a stored summary containing precomputes
results (originating from an SQL …