Slides: bit.ly/33degree
"Properties of facts"
<Schema name="Twitter">
<Cube name="Tweets" defaultMeasure="Count">
<Table name="tweet">
<DimensionUsage name="Time" source="Time" foreignKey="time_id"/>
<Dimension name="Location" foreignKey="location_id">
<Hierarchy hasAll="true" allMemberName="All locations">
<Table name="location"/>
<Level name="Continent" column="continent"/>
<Level name="Country" column="country"/>
<Level name="City" column="city"/>
</Hierarchy>
</Dimension>
<!-- ... -->
</Schema>
Source: www.stratebi.com/cursos/olap-mdx
Big data, before it was cool
SELECT COUNT(id)
FROM tweet NATURAL JOIN locations
GROUP BY locations.continent
INSERT INTO agg (cnt, l.city, l.country, l.continent)
SELECT COUNT(t.id) AS cnt, city, country, continent
FROM tweet t NATURAL JOIN locations l
GROUP BY l.city
Usages:
SELECT SUM(agg.count)
FROM agg
GROUP BY locations.continent
mondrian.jar
- enginesaiku.war
- RESTful web servicesui.war
- JS front-end