What is a column family database?

NoSQL Concepts

Miriam Antona

Software engineer

Column family databases - overview

  • Derive from Google BigTable
  • Store data in column families
    • group related data
    • frequently accessed together
  • Also called wide column databases
  • Great when dealing with large volumes of data
NoSQL Concepts

Column family databases - structure

Graphical representation of a column family.

NoSQL Concepts

Column family databases - structure

Graphical representation of a column family with one row.

NoSQL Concepts

Column family databases - structure

Graphical representation of a column family with more rows.

NoSQL Concepts

Column family databases - structure

Graphical representation of a column family with more rows.

  • A column family is like a table in a relational database
NoSQL Concepts

Column family databases - structure

Graphical representation of a column family with highlighted row keys.

  • Row key: unique identifiers
    • Like primary keys in a relational database
NoSQL Concepts

Column family databases - structure

Graphical representation of a column family with highlighted columns.

  • Each row can have different number of columns
    • Columns can be added when needed
NoSQL Concepts

Column family databases - structure

Graphical representation of a column family with highlighted parts of the columns

  • Parts of the columns:
    • Name, value, and timestamp
NoSQL Concepts

Column family databases - structure

Graphical representation of a column family with highlighted parts of the columns.

  • Value: specify the type depending on the database
NoSQL Concepts

Column family databases - structure

Graphical representation of a column family with highlighted parts of the columns.

  • Timestamps: store date and time when the data was inserted.
    • Multiple values of a column
NoSQL Concepts

Column family databases - example

Example of a column family with data.

NoSQL Concepts

Column family databases - designing

  • Think about the queries
  • No joins
    • Add all the columns we need
NoSQL Concepts

Popular column family databases

Logos of popular column family databases.

NoSQL Concepts

Let's practice!

NoSQL Concepts

Preparing Video For Download...