SQL: All content tagged as SQL in NoSQL databases and polyglot persistence
Monday, 16 January 2012
SQL or Hadoop: What Tools Should I Use to Process My Data?
Great decision flowchart created by Aaron Cordova to help answer the question: what tools should I use to process my data:

Click to view full size. Credit Aaron Cordova
Original title and link: SQL or Hadoop: What Tools Should I Use to Process My Data? (©myNoSQL)
Monday, 12 December 2011
MarkLogic Querying for SQL People
Inspired by the MongoDB MapReduce translated to SQL and Neo4j Cypher Querying for SQL People, MarkLogic’s Jason Hunter and Eric Bloch put together a page mapping SQL terms and queries to MarkLogix terms and XQuery queries respectively.
Here is how SQL statements translate to MarkLogic XQuery expressions:
Tuesday, 6 December 2011
Neo4j Querying for SQL People
Remember how useful it was to see how MapReduce translates to SQL? In a similar vein, Andrés Taylor dives into Cypher, the Neo4j querying language introduced in Neo4j 1.4, explaining it from the perspective of an SQL person:
Unlike SQL which operates on sets, Cypher predominantly works on subgraphs. The relational equivalent is the current set of tuples being evaluated during a SELECT query.

Original title and link: Neo4j Querying for SQL People (©myNoSQL)
via: http://systay.github.com/blog/2011/11/06/cypher---a-view-from-a-recovering-sql-dba/
Wednesday, 10 August 2011
NoSQL: It’s Beginning to Look a Lot Like SQL
Stephen O’Grady:
It is too early to handicap the probable outcomes for these various query language projects. Nor is it certain that NoSQL will achieve the same consolidation the relational market did around a single approach; the differing approaches of the various NoSQL projects argue against this, in fact.
If by consolidation we mean having a query language that pseudo-works (by imposing tons of limitations, like GQL), I think we’ll be better of with custom query languages that take full advantage of their underlying NoSQL database engine.
Programming languages are not unified. Nor are file systems. And we are still using them to take full advantage of their unique features.
Original title and link: NoSQL: It’s Beginning to Look a Lot Like SQL (©myNoSQL)
Monday, 4 July 2011
Aster Data SQL-MapReduce Technology Patent
From a Teradata PR announcement:
SQL-MapReduce® is a framework which enables fast, investigative analysis of complex information by data scientists and business analysts. It enables procedural expressions in software languages (such as Java, C#, Python, C++, and R) to be parallelized across a group of linked computers (compute cluster) and then activated for use (invoked) with standard SQL.
The closest open source solution I can think of is Pig , created and open sourced by Yahoo! (PDF).
Original title and link: Aster Data SQL-MapReduce Technology Patent (©myNoSQL)
Monday, 2 May 2011
Tunning SQL, No Need for NoSQL
The most common complaint against NoSQL is that if you know how to write good SQL queries then SQL works fine. If SQL is slow you can always tune it and make it faster.
Let’s keep in mind two things:
- performance is not equivalent to scalability
- most NoSQL databases have been created to deal with scalability issues. And they offer a different, non-relational, data model.
A NoSQLite might counter that this is what key-value database is for. All that data could have been retrieved in one get, no tuning, problem solved. The counter is then you lose all the benefits of a relational database and it can be shown that the original was fast enough and could be made very fast through a simple turning process, so there is no reason to go NoSQL.
There’s the third thing too: you shouldn’t always obey the Law of the instrument. Polyglot persistence is a viable option.
Original title and link: Tunning SQL, No Need for NoSQL (NoSQL databases © myNoSQL)
Sunday, 30 January 2011
Translating SQL to Pig Latin
We had a SQL to MapReduce translation table, now we have a basic SQL to Pig Latin:
Original title and link: Translating SQL to Pig Latin (NoSQL databases © myNoSQL)
via: http://www.riccomini.name/Topics/DistributedComputing/Hadoop/HadoopPigDocumentation/
Monday, 24 January 2011
MongoDB Map Reduce: Yet another tutorial
As the title says, this is yet-another-tutorial on Map Reduce using MongoDB. But two things that are different here:
- A problem solving approach is used, so we’ll take a problem, solve it in SQL first and then discuss Map Reduce.
- Lots of diagrams, so you’ll hopefully better understand how Map Reduce works.
If MapReduce still didn’t click, you could try this SQL to MongoDB MapReduce guide.
Original title and link: MongoDB Map Reduce: Yet another tutorial (NoSQL databases © myNoSQL)
via: http://blog.mongovue.com/2010/11/03/yet-another-mongodb-map-reduce-tutorial/
Thursday, 13 January 2011
RavenDB: Emulating Group By Using MapReduce
Basic, but clear example with everything you need to get this working:
RavenDB is a document database, and unlike a relational database (like say Microsoft SQL Server) – you can’t do your usual group-by type queries quite as simply. […] For RavenDB instead I need to use a Map-Reduce query. The basics of this are that the first part (the Map) runs over the documents, and finds the matches. The reduce then takes the found matches, and summarises (reduces) the result set.
Original title and link: RavenDB: Emulating Group By Using MapReduce (NoSQL databases © myNoSQL)
via: http://will.hughesfamily.net.au/20101212/ravendb-map-reduce-indexes-and-how-to-install-them/
Wednesday, 10 November 2010
SQL vs NoSQL: Twinkle, Twinkle, NoSQL!
Story and script by Latha Annur Subramaniam:
In case you have a hard time reading it:
RDBMS (SQL) was worried when the news about a new technology called NoSQL
SQL: Oh, he is this new NoSQL guy. People say he is here to beat me out. Hmm. I just hate him!
NoSQL: Howdy, senior SQL. How are you?
SQL: um… uh… oh Hi young man. Looks like you are new to this place?
NoSQL: Oh yeah! Just out of the ‘Latest computing trends’ school.
SQL: He is just a fresher. But I am his great grand senior. He can never take me down.
SQL: Hey, your name NoSQL sounds strange. Sounds like you are an anti-SQL guy.
NoSQL: Hm… true. I fell so unfortunate of my name. But I am never al alternate to you. In short, I am a new solution for the fresh new problems of this computing era… the “WEBSCALE” era.
SQL: (Hey he sounds modest. Am kinda like this guy) Oh. Am hearing this term for the first time. What is this W-E-B SCALE thing all about?
NoSQL: Interestingly, these days humans lead a much active social life on the WEB only.
NoSQLL Just like in their real life, people always need more and more of everything. Tweet, Search, Maps, Blog… their needs never end ;-)
SQL: Hmmm. Now I get it. I’ve been the darling for the enterprises for their data storage needs. But maybe they will abandom me and choose you, when they need more scale?!?!
NoSQL: Partially true. I can help them in scaling massively. But you are still the best in a lot of things.
NoSQL: For example, you are the Superstar when it comes to ‘transaction based apps’. I can never beat you in your ACID qualities
NoSQL: Also, I am still not the best for ‘Reporting’ requirements. While my ‘schemaless’ quality helps dynamically add different types of data, it causes the drawback of not being helpful for reporting.
SQL: I fell you are the right fit for the modern social apps.
NoSQL: You are the right bet for the critical business apps… soon until I catch up with you
SQL: HaHaHa
SQL: Yup. I wish you good luck, young man.
NoSQL: Thank you, senior. Btw, my name doesn’t mean a NO to SQL!!! It is only that I am NOT only SQL :-)
SQL: and so I dedicate this song to you buddy:
Twinkle, twinkle NoSQL Was wondering who you are Out into this computing world, I wish you success all around!!!
Definitely not as good as MongoDB is web scale.
Original title and link: SQL vs NoSQL: Twinkle, Twinkle, NoSQL! (NoSQL databases © myNoSQL)
Tuesday, 9 November 2010
NoSQL Is ... SQL at Scale
Cannot wonder what happened to Benjamin Black since it’s only a couple of weeks since “yelling”: “NoSQL took away the relational model and gave nothing back”. But it looks like he came up with the answer:
This is SQL at scale: radically simple schema, extremely narrow interface, asynchronous writes, and application-layer management of data distribution and query aggregation. These are also the properties of many non-relational databases. At this scale, most of the advantages of a relational database — ACID semantics and complex, ad-hoc queries — are traded for other advantages: operational simplicity, linear performance scaling, geographic distribution, and extreme fault tolerance.
And I’d say this is only from the perspective of scale. Others to consider: data (as in format, importance, etc.), operational costs.
Original title and link: NoSQL Is … SQL at Scale (NoSQL databases © myNoSQL)
Most Popular Articles
- Translate SQL to MongoDB MapReduce
- Tutorial: Getting Started With Cassandra
- CouchDB vs MongoDB: An attempt for a More Informed Comparison
- Cassandra @ Twitter: An Interview with Ryan King
- A Couple of Nice GUI Tools for MongoDB
- NoSQL benchmarks and performance evaluations
- Ehcache: Distributed Cache or NoSQL Store?
- Document Databases Compared: CouchDB, MongoDB, RavenDB
- Quick Review of Existing Graph Databases
- NoSQL Data Modeling
