Fixes slowness in rebuilding the materialized views. Now running in under half an hour