Showing posts with label database. Show all posts
Showing posts with label database. Show all posts

Tuesday, August 6, 2013

Hadoop Summit 2013

Hadoop has matured from version 1.0 to version 2.0 and the research and contributions by some of the companies like Yahoo, Hortonworks, MapR, Cloudera, Spulk, Wandisco, Qubole, Teradata etc. has been quite phenomenal. These are the revolutionaries we should thank for providing us with solutions that enable us to solve the challenges with growing data at an unmanageable scale.

Click here to watch the video list.

Wednesday, July 10, 2013

C* Summit 2013 :: Evolving NoSQL DB

C* (cassandra) has grown pretty good overcoming challenges from version 1.0 to version 2.0 with the CQL 3.0 upgrades. Lets look at some of the new features, challenges, best practises and learn from our peers at the Cassandra summit 2013. Watch these videos at your leisure.


Thursday, March 14, 2013

DataStax DevCenter -- limitation

Installed DevCenter to notice that it is not possible to execute and run just one statement (by selecting the line) without commenting out other statements in the CQL Script file. ##calls_for_imporvement_in_tool

Thursday, October 11, 2012

MySQL and NoSQL at Craigslist

Came across this video on the composite database implementation, some of the challenges faced, architecture at Craigslist.


Thursday, May 17, 2012

AWS NY Summit 2012

Watch below the AWS NY Summit 2012 talking about deploying enterprise apps in the cloud, best practises, building scalable database, disaster recovery, optimizing costs with AWS, acclerating oraganizations profits with cloud deployments, cloud vs datacenter cost comparisons, building applications with AWS etc.

Tuesday, January 10, 2012

SQL to No-SQL migration :: Baby Step 1 -- Preparing your new table structure

No-SQL has been an evolving norm these days. With plethora of data growing and multiplying day-by-day at an exponential rate, everyone is faced with a challenge to live-up to the new evolving standards for applications, grid computation, analytics, high-availability, fast responding user interfaces, etc.

One of the primary steps in migrating from the traditional RDBMS system to NO-SQL system is to come-up with new table design. Ironically, there is no direct mechanism that converts traditional RDBMS database schema to a NO-SQL table structure. 

While RDBMS based systems evolve from a centralized database design to user interface development, newer No-SQL systems need to be designed based on the developing user interface and the queries needed for connecting the user interface together screen-by-screen one at a time.

There is however a small correlation on how the RDBMS table data can be represented in No-SQL table structure based on the mappings.

Example 1 : A one-to-one mapping of our traditional RDBMS table design will result in the following No-SQL design.

*****RDBMS Design****

Customer
----------------
Customer_id int,
first_name varchar,
last_name varchar,
email_id varchar
CustomerAddress

----------------------
Customer_id int,
Street_addr varchar,
apt varchar,
city varchar,
state varchar,
country varchar
pin varchar

******No-SQL Design******
Eliminate two tables and merge the columns into one table per customer_id


Customer
-----------
Customer_id int,
first_name varchar,
last_name varchar,
email_id varchar,
Street_addr varchar,
apt varchar,
......


Example 2 : A many-to-one and one-to-many mapping of our traditional RDBMS table design will result in the following No-SQL design

****RDBMS Design*****
--------------------------

Customer
---------------
Customer_id int,
first_name varchar,
last_name varchar,
....

CustomerPhone

--------------------
Customer_id int,
Phone_type varchar, //mobile, home, office
Phone_number varchar


****** No-SQL Design *****
-------------------------------

CustomerByPhoneNumber
------------------------
Customer_id int,
Phone_type varchar,
Phone_number varchar,
PRIMARY KEY (Phone_number)


PhoneByCustomerId
---------------------------
Customer_id int,
Phone_type varchar,
Phone_number varchar,
PRIMARY KEY (Customer_id)
  

Example 3 : Many-to-Many
--------------------------------

Many-to-Many in NoSQL is nothing but iteration of one-to-many and many-to-one queries and consolidating the result set.

In the above example, if you want to get list of all customers and all their phone numbers, you would have to perform two queries and iterate over to get complete set.