Database Reference
In-Depth Information
The overall effect is the same: the values of the total_views and web_views
columns are incremented by one each. As with discrete modification of collection
columns, at no point did we need to read the current value of the column into memory; for
this reason, we don't need to worry about the sort of race condition we explored in the pre-
vious chapter.
Let's take a look at the contents of the daily_status_update_views table:
SELECT * FROM "daily_status_update_views";
As we can see, our observation has been recorded for the day in question:
You'll notice that the date column contains not just a date, but also a time. CQL does not
offer a built-in date type, but does allow us to specify timestamp literals using only a date;
it will interpret this as midnight on that day in the system time zone of the machine on
which Cassandra is running.
Search WWH ::




Custom Search