spacer spacer

spacer spacer
SQLProNews
SecurityProNews
ITmanagement








Perspective From Programming Languages - SQL Vs. NoSQL

spacer By Michael Marr
Expert Author
Article Date: 2012-07-18

The SQL vs. NoSQL debate is quickly becoming a rite of passage for database administrators and geeks alike. Jeff Cogswell recently contributed some fuel to the fire over at Slashdot. Although the commentors on the article focused on the short points in Cogswell's summary of the SQL vs NoSQL debate, the article itself attempts to focus on how programming language implementations for both SQL and NoSQL databases stack up against each other. Unfortunately, Mr. Cogswell's attempt to view the debate from the lens of programming language libraries and programming paradigms is a ridiculous straw man fallacy.

Programming languages are tools. Programs take data and manipulate it a way to create new, more valuable data. Thus, databases are vital to the success of a given program, as it is the core of the programming storing both the data to be manipulate and the resulting new information. (The only exception to this rule would be if you were using a database for logging purposes, which provides little benefit over a straight file logging system.) Thus, shifting the debate between SQL and NoSQL to programming languages is like debating over a knife or spoon when choosing crunchy versus creamy peanut butter in a PB&J sandwhich. It's irrelevant what tool we use to construct our sandwhich, assuming both tools can get the job done. The real questions revolve around the peanut butter, jelly, and bread to use (crunchy, grape, and toasted wheat, obviously).

Jeff actually does an ample job of demonstrating that the programming language really doesn't matter. All mature programming languages have had ample time to make a variety of excellent SQL libraries. In fact, infant programming languages would be doomed to fail without adequate SQL libraries. So the inherit advantage goes to SQL, but even that advantage is minute. As a given NoSQL database grows in popularity, so will its available libraries. Mr. Cogswell chose the absolute worst NoSQL example for his argument. MongoDB is one of the hottest NoSQL databases, and thus libraries for the popular database have been sprouting up with more frequency as it continues to gain popularity. The programming language argument would have been better suited to look at less popular NoSQL databases, like Neo4j, which only has official libraries for Ruby and Java. The programming examples Cogswell used were in node.js and C# - so he would have had to use unofficial libraries and/or the REST API of Neo4j.

The SQL vs. NoSQL debate will always be alive at the independent project level. Because of the CAP Theorem, a given NoSQL or SQL database will never be a one-size-fits all solution. The growing popularity of NoSQL databases are a result of new problems and new data models that traditional relational databases fall short of properly representing. Relational databases will always have a place in a majority of applications, but as developers become more aware of what NoSQL options are available and where each of these databases shine, the appropriate mix of both SQL and NoSQL will surface.


About the Author:
Michael Marr is a IT staff Writer for WebProNews.




SQLProNews is an iEntry, Inc. publication - $line) { echo $line ; } ?> All Rights Reserved Privacy Policy and Legal
gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.