After entities have been aggregated in function aggregate_exposure_entities, the database should be compacted with the VACUUM command.
aggregate_exposure_entities
VACUUM
\fyi @laurens @tara @shinde