Data Modeling is the one of the first things to sink your teeth into when trying out a new database. That's why we are going to cover this foundational topic in enough detail for you to get dangerous. Data Modeling for relational databases is more than a touch different than the way it's approached with Cassandra. We will address the quintessential query-driven methodology through a couple of different use cases, including working with time series data for IoT. We will also demo a new tool to get you bootstrapped quickly with MovieLens sample data. This talk should give you the basics you need to get serious with Apache Cassandra.
11. application workflow
• each application has a workflow
• access patterns help us get how data
is accessed
• know your queries you will run before
you design your model
14. mapping rules & patterns
• mapping rules ensure that a logical
data model is right
• each query has a corresponding table
• tables are designed to allow queries to
execute properly
• tables return data in the correct order
16. entities and relationships
1. entity and relationship types map to
tables
2. entities and relationships map to
partitions or rows
3. partition may have data about one or
more entities and relationships
4. attributes are represented by
columns
19. equality search attributes
• equality search attributes become
initial columns of a primary key
• querying on: title and type
20. inequality search attributes
• clustering columns follow partition
key columns in a primary key
• the column involved in an inequality
search must come after columns in
the primary key that are used in an
equality search
21. ordering attributes
1. ordering attributes become clustering columns
2. querying on: user_id = ? and
uploaded_timestamp > ?
3. ordering attributes : uploaded_timestamp (DESC)
22. key attributes
1. relationship type key attributes are included as
primary key columns
2. queries affect primary key design
37. well dani this is all great and
everything…but just how do i get
started? hm? i mean i want to learn
cassandra and try it and everything
but it is just so daunting. i mean
you showed me all this stuff and i
am overwhelmed and it is sort of
making me insecure. what exactly
do i do next to learn more? how do i
really dig in and learn these
concepts? have you thought about
that? have you thought about what i
NEED?
HMMMM DANI, HAVE
YOU??!!!!!!!!!!11