Implementing data cubes efficiently | Synapse