compress metric database size