adv

Hard truths about the NoSQL revolution

The NoSQL buzzword has been metastasizing for several years. The excitement about these fast data stores has been intoxicating, and we're as guilty as anyone of seeing the groundbreaking appeal of NoSQL. Yet the honeymoon is coming to an end, and it's time to start balancing our enthusiasm with some gimlet-eyed hard truths.

Don't get us wrong. We're still running to try the latest experiment in building a simple mechanism for storing data. We still find deep value in MongoDB, CouchDB, Cassandra, Riak, and other NoSQL standouts. We're still planning on tossing some of our most trusted data into these stacks of code because they're growing better and more battle-tested each day.

But we're starting to feel the chafing, as the NoSQL systems are far from a perfect fit and often rub the wrong way. The smartest developers knew this from the beginning. They didn't burn the SQL manuals and send nastygrams to the sales force of their once devoted SQL vendor. No, the smart NoSQL developers simply noted that NoSQL stood for "Not Only SQL." If the masses misinterpreted the acronym, that was their problem.

This list of gripes, big and small, is thus an attempt to document this fact and to clear the air. It's meant to set things straight now so that we can do a better job understanding the trade-offs and the compromises.

NoSQL hard truth No. 1: JOINs mean consistency
One of the first gripes people have about SQL systems is the computational cost of executing a JOIN between two tables. The idea is to store the data in one and only one place. If you're keeping a list of customers, you put their street addresses in one table and use their customer IDs in every other table. When you pull the data, the JOIN connects the IDs with the addresses and everything remains consistent.

The trouble is that JOINs can be expensive, and some DBAs have concocted complex JOIN commands that boggle the mind, turning even the fastest hardware to sludge. It was no surprise that the NoSQL developers turned their lack of JOINs into a feature: Let's just keep the customer's address in the same table as everything else! The NoSQL way is to store key-value pairs for each person. When the time comes, you retrieve them all.

Alas, people who want their tables to be consistent still need JOINs. Once you start storing customers' addresses with everything else about them, you often end up with multiple copies of those addresses in each table. And when you have multiple copies, you need to update them all at the same time. Sometimes that works, but when it doesn't, NoSQL isn't ready to help with transactions.

Wait, you say, why not have a separate table with the customer's information? That way there will only be one record to change. It's a great idea, but now you get to write the JOIN yourself in your own logic.



Send us your comments

Login or register to post comments

Comments

Barbour Jacket sale. Buy unique Barbour jackets style from Barbour jackets UK store.The Barbour jackes men and womens Barbour jackets are available for all seasons and many fashion styles.To match your motocycle style,you can choose Barbour international jacket,very cool.And for everyday use or other special occasion,you can with Barbour waxed jacket,these ones are just comfortable and warm enough.Of course,there're more ladies and mens Barbour sale.Such as Barbour Coats. (Thu, 2013-01-31 09:00)
Welcome to buy Arcteryx jackets from Arcteryx outlet.2012 Brand New Arcteryx sale.If you love Arcteryx Jacket,here is the right and the best place for you.As you can find the latest Mens Arcteryx and Womens Arcteryx with reasonable price.The Arc teryx jackets are perfect for many outdoor activities.Choose your own Arcteryx clothing now. (Tue, 2013-01-15 14:33)
Camper Store have the most fashion Camper Shoes sale. Camper footwear company was founded by the Fluxa family in Spain.Why Camper shoes are so popular all over the world? The reason is mainly because they are perfect for many occasions with its unite style.Some of the hottest Camper footwear for this season must be Camper Boots.They are the coming together of dreams that are not just comfortable. The stylish Camper Shoe and Camper Boot is a dream that stands for the way of doing,living and feeling. In our Camper shoes outlet,people can also find some of the hottest Camper Sneakers such as Camper PEU Cami,which are perfect for work or everyday. (Tue, 2013-01-15 11:25)
Problems that there had to be able to find a solution so that people can enjoy the discovery easier. Cost join expensive as what you say is better at evaluating and sought the best solution to overcome them. Meditation (Wed, 2013-01-02 17:59)
They should know the syntax for every actions. So they can make the draft for the database. escort montreal (Fri, 2012-12-28 17:07)
Clearance North Face Outlet online. Welcome to our North Face Jackets Sale outlet store to buy fashion uggs! Upto 60% Discount, No Tax!Outlet authentic North Face Denali On sale online, cheap North Face Denali Jackets sale on sale very hot in the world. New arrival North Face Jackets On Sale for 2012 and 2013. (Mon, 2012-12-03 11:56)
hi, I am havin a tough time trying to rank up for the words "victorias secret coupon codes"... Please approve my comment!! Polo ralph lauren manche longue (Thu, 2012-12-13 19:21)