Database Research & Development

  • Home
  • NoSQL
    • NoSQL
    • Cassandra
  • Databases
    • Database Theory
    • Database Designing
    • SQL Server Coding Standards
    • SQL Server
    • PostgreSQL
    • MySQL
    • Greenplum
    • Linux
  • Interviews
    • SQL Server Interviews
    • MySQL Interviews
    • SQL Puzzles
  • DBA Scripts
    • SQL Server DBA Scripts
    • PostgreSQL DBA Scripts
    • MySQL DBA Scripts
    • Greenplum DBA Scripts
  • Home
  • Blog Archives !
  • (: Laugh@dbrnd :)
  • Contact Me !
sqlserverinterviews
Home 2016 March NoSQL: Data Model, What is the Column Family Store (Day 4)

NoSQL: Data Model, What is the Column Family Store (Day 4)

This article is half-done without your Comment! *** Please share your thoughts via Comment ***

Column Store NoSQL Database

Now time to discuss about the different Data model of NoSQL Databases.

One of the most popular data model is, NoSQL Column Family Store Data Model.

Facebook’s Cassandra, Google’s BigTable Amazon DynamoDB and HBase are the most popular column stored base NoSQL Databases.

What exactly it is?

It allows you to store data with the key and mapped value to it, but these values are stored in Column Family.

A Column Family is a collection of rows, which can contain any number of columns for the each row.
You can create unlimited columns in a row; there are no any limitations.

The row key must be unique within a column family, but the same row key can be reused in another column family.

We can also use different data types for each row key.
e.g. User-1 wants to use a Mobile Number as row key, and User-2 wants to use an Email address as the row key.
This is possible.

Very simple term, we can say that Column Family is a logical division of similar data.
e.g., Column Family-1 for User’s Profile and Column Family-2 for User’s Friends.

A Column family is a very similar to the Table of RDBMS.

How exactly it works?

Column Store NoSQL Architecture

Keyspace: Name of the application. e.g.Gmail, Facebook.
ColumnFamily: Structure contained unlimited columns.
Column: Tuple with Name, Value, Timestamp.
Key: Name of the record.
SuperColumn: Containter of the more columns.

Each column has three attributes. The column name, column value and Timestamp. Timestamp automatically attached to the each column.

Using the Timestamp, we can also set expiring usage.
e.g. I want to delete a particular column in next 8000 second.
A real-time example is, Running a promo code or special offer for a set of users and running for the particular time. For this kind of application, we can expire a column by defining timestamp.

All the row keys and column stored in the particular order.

We can also create a Super column, which adds another level of nesting to the regular column family structure.

Each Column Family stores in a file and each file separately stores into Disk.
The benefit of storing data in the column is fast searching and accessing of the data.

For example, we have two column family one for User’s Profile and second for User’s Friends.
Now, I want to fetch User’s Profile data; then It accesses only a User’s Profile file which returns good performance.

Another good example is,
Cricketer’s award information. All cricketers have different award information like International, National and State level matches.
We can store an N number of different award information for each cricketer and stores vertically into Column Family.

Mar 10, 2016Anvesh Patel
NoSQL: Relational Database - RDBMS vs. NoSQL, What do you think? (Day 3)NoSQL: Data Model, What is the Key Value Store Database (Day 5 )
Comments: 1
  1. Francis_hulse
    December 7, 2018 at 3:32 am

    The data which is a collection of key value pairs is compressed as a document store quite similar to a key-value store, but the only difference is that the values stored (referred to as “documents”) provide some structure and encoding of the managed data. XML, JSON (Java Script Object Notation), BSON (which is a binary encoding of JSON objects) are some common standard encodings.

Anvesh Patel
Anvesh Patel

Database Engineer

March 10, 2016 NoSQL, NoSQL TheoryAnvesh Patel, column family store, Column Store, column stored, data model, database, database concept, database research and development, Database Theory, database topic, dbrnd, Document Store, Graph Store, Key Value Store, NoSQL, Not Only SQL, super column, Unstrucutred
About Me!

I'm Anvesh Patel, a Database Engineer certified by Oracle and IBM. I'm working as a Database Architect, Database Optimizer, Database Administrator, Database Developer. Providing the best articles and solutions for different problems in the best manner through my blogs is my passion. I have more than six years of experience with various RDBMS products like MSSQL Server, PostgreSQL, MySQL, Greenplum and currently learning and doing research on BIGData and NoSQL technology. -- Hyderabad, India.

About DBRND !

dbrnd

This is a personal blog (www.dbrnd.com).

Any views or opinions represented in this blog are personal and belong solely to the blog owner and do not represent those of people, institutions or organizations that the owner may or may not be associated with in professional or personal capacity, unless explicitly stated.

Feel free to challenge me, disagree with me, or tell me I’m completely nuts in the comments section of each blog entry, but I reserve the right to delete any comment for any reason whatsoever (abusive, profane, rude, or anonymous comments) - so keep it polite.

The content of this website is protected by copyright. No portion of this website may be copied or replicated in any form without the written consent of the website owner.

Recent Comments !
  • Anvesh Patel { Sure will do... } – May 27, 12:43 PM
  • Anvesh Patel { Great... } – May 27, 12:41 PM
  • Anvesh Patel { Great... } – May 27, 12:39 PM
  • Anvesh Patel { Great... } – May 27, 12:36 PM
  • Anvesh Patel { Great... } – May 27, 12:28 PM
  • Anvesh Patel { Great... } – May 27, 12:27 PM
  • Anvesh Patel { Great... } – May 27, 12:16 PM
  • Older »
Follow Me !
  • facebook
  • linkedin
  • twitter
  • youtube
  • google
  • flickr
© 2015 – 2019 All rights reserved. Database Research & Development (dbrnd.com)
Posting....