couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Klo <>
Subject Re: SQL Query engine with views instead of tables
Date Tue, 17 May 2011 06:10:44 GMT
You effectively get close to that if you use CouchDB + Lucene. 

Alas not a 'native' solution either, but there is a very well defined query language for Lucene.

I've wondered as well how difficult it would be to build a query optimizer that would effectively
be a dynamic list.   One of the strengths relational db's have is the optimizer - essentially
predetermining what key to use before scanning. Couch effectively has this albeit manually
via lists. Maybe I'm missing something myself but, my biggest gripe about lists though is
output in JSON feels like a kludge vs the method used for views. Output mechanisms should
have some cardinality (I think I should be able to emit in a list vs having to JSONify output).

- Jim 

On May 16, 2011, at 8:32 PM, Hendrik Jan van Meerveld <> wrote:

> Hi all,
> I'm using Couchdb for a new website and loving it.
> The two tier setup with the database directly sending the HTML to the client
> seems elegant to me.
> One thing that I mis is SQL queries.
> Somebody will probably say that I need to learn a new way of thinking, but
> I've already been using Lotus Notes (another noSQL database) for 3 years and
> I'm still missing SQL.
> I've also recently noticed others on this mailing list that would benefit
> from SQL queries:
> - Alexander Gabriel: "Fetching data: how to
> filter<>
> "
> - Mauro Fagnoni: "Convert data query into map/reduce
> function<>
> "
> - Fabio Batalha: "Querying inside a view
> function<>
> "
> I found somebody who actually made a front-end SQL engine for Couchdb:
> And there is a popular noSQL database that actually does queries:
> MongoDB<>
> All this makes me ask the question: "Can SQL language not be added to
> Couchdb?"
> Views are after all very much like tables, so could an existing SQL query
> engine not be rewritten to query tables in Couchdb?
> So my question is, does anybody have some thoughts about this? Would it be
> possible? Would it be difficult to implement in Erlang?
> Kind regards,
> Hendrik Jan

View raw message