~/talk

Time Series with Apache Cassandra: the basics

Talkat Dutch PHP Conference 2017 · 2017-06-29..07-01· [databases]
links:none on file
slides:none on file

Apache Cassandra stores time series by partitioning rows (recommend ~100k rows or ~100MB per partition) and using a compound primary key like (device_id, year) with a clustering key on timestamp DESC so recent writes are topmost. Writes go to the commit log and memtable then flush to immutable SSTables with periodic compaction; deletes create tombstones. Use CQL and the DataStax PHP driver (connect via a contact point, keyspace, persistent sessions). Expect linear write scaling and a hard per-partition limit of two billion cells. write-optimized, partition-per-sensor-per-year

AI-written summary · about

  1. 0:00Intro
  2. 0:14About me
  3. 1:17Big data
  4. 1:34My goal for this talk
  5. 2:41One thing I won't talk about
  6. 3:12What I will talk about
  7. 5:04Cassandra: key features
  8. 6:46What you should expect
  9. 7:28What you should not expect
  10. 9:54Data storage: partitions
  11. 12:45Partitioning: limits
  12. 13:36Partitioning: compound key
  13. 15:23From write to storage
  14. 16:45Compaction
  15. 17:48Effects on usage
  16. 19:42Time series: an example
  17. 20:03Example data
  18. 20:18Considering our data
  19. 22:03Our primary key
  20. 22:30The full create table CQL
  21. 22:42That's it.
  22. 23:05DataStax PHP Driver
  23. 24:12Connecting to your cluster
  24. 25:13Inserting data
  25. 26:17Retrieving data
  26. 27:11In summary
  27. 28:04In closing
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.