| > Not earth-shattering, but with ReQL all I need to do is attach a function Thing is, some SQL databases have columnar storage, and in there selecting everything, then filtering with an attached function would eliminate the performance benefit of not selecting all of the fields. This is why SELECT looks like it does. Not to mention it's much shorter than attaching a function for the purpose. The author also himself acknowledges that: > The downside is that your queries end up quite long and, for some, rather intimidating. Ok so they're "quite long" and have less potential for optimizing the performance of. Amazing? His example of creating specific indexes and views is also not new to SQL. > There are 3 official drivers: Python, Ruby and Node. Amazing? > The query itself didn’t change at all – I could copy and paste it right in. I had to wrap it with connection info and a run() function, but that’s it. So just like an SQL query, except I can connect to an SQL RDBMS from virtually any language I can think of, and not just a narrow selection of 3 script languages. I sympathize with author's excitement, but from all his examples SQL feels like it has quite an edge both in availability and in terms of design and fit for the domain than a bunch of JS functions composed together (as much as I like composing functions together in JS). I realize how much hard work the folks at RethinkDB have put into creating their product. But technology adoption is not driven by pity, it's driven by benefits. For a new type of DB to not be a flash in the pan it needs a lot more than being "stable and fast". It needs to offer significant additional benefits when compared to existing DBs. And I ain't seeing it. |
This blog post explains how this works: http://rethinkdb.com/blog/lambda-functions/