A system for compressing smart grid data, and allowing queries on the compressed representation.