Recording analytics observations
At this point, we've explored structuring both discrete and aggregate analytics data, and looked at accessing that data. However, to have interesting data aggregates to access, we first need to record our observations.
Updating a counter column
The daily_status_update_views
table introduces a new type of column: the counter column. Counter columns store integer values, just like int
and bigint
columns; however, unlike a normal data column, counter columns are always incremented or decremented, rather than having a value set directly.
We've currently got two tables to store usage data: status_update_views
to store raw view observations, and daily_status_update_views
to store views by day. We'd like to record that one ...
Get Learning Apache Cassandra now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.