What is a column family database?

Concetti NoSQL

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
Concetti NoSQL

Column family databases - structure

Graphical representation of a column family.

Concetti NoSQL

Column family databases - structure

Graphical representation of a column family with one row.

Concetti NoSQL

Column family databases - structure

Graphical representation of a column family with more rows.

Concetti NoSQL

Column family databases - structure

Graphical representation of a column family with more rows.

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

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
Concetti NoSQL

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
Concetti NoSQL

Column family databases - structure

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

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

Column family databases - structure

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

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

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
Concetti NoSQL

Column family databases - example

Example of a column family with data.

Concetti NoSQL

Column family databases - designing

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

Popular column family databases

Logos of popular column family databases.

Concetti NoSQL

Let's practice!

Concetti NoSQL

Preparing Video For Download...