This document discusses key concepts in dimensional modeling and online analytical processing (OLAP) using cubes. It describes facts and measures as the most detailed information for analysis, and dimensions as providing context for facts. Dimensions are used to filter, aggregate, order, and define relationships between facts. The document also outlines features of the Cubes OLAP server, including defining logical models, aggregating and browsing data, slicing and dicing queries, and localization of data and metadata.
Streamlining Python Development: A Guide to a Modern Project Setup
Lightweight Online Analytical Processing Cubes
1. Cubes
Light-weigth Online Analytical Processing
Stefan Urbanek
stefan.urbanek@gmail.com April 2011
@Stiivi
2. Features
■ logical model (metadata)
■ aggregated data browsing
■ OLAP HTTP server with json interface
■ data and metadata localization
■ multiple backends
7. dimensions type
location
time
■ provide context for facts
■ used to filter queries or reports
■ control scope of aggregation of facts
■ used for ordering or sorting
■ define master-detail relationships
☛ [star]
10. Summary
■ fact – most detailed information for analysis
■ measure – an attribute for computation
■ dimension – context of facts
■ hierarchy – master-detail relationship
21. 250
250
top level 125
0
All years
70
70
60
35 50
year level 30
40
0
2006 2007 2008 2009 2010
7
7
5
month level 3,5
3
4
3
2
0 1 1
Jan Feb Mar Apr March April May ...
54. order=region.name
order by region name
order=amount:desc
order by amount descending
55. Natural Ordering
attributes can have default order
specified in model
order=year:asc
... might be omitted if model contains:
{“name” = “year”, “order” = “asc”}