News for hackers. Stuff that matters.
Re:Developer Preview: RethinkDB Now Available for Windows by talles on Wednesday February 10, 2016 @02:29PM (#11075297)
Not in love with MongoDB, DocumentDB is Azure only. Finally a (great) document database option for me (I work in a .NET shop). Kudos to you guys.

But... but... what's with that C# API? It doesn't look like typical C# at all.

Re:Developer Preview: RethinkDB Now Available for Windows by coffeemug on Wednesday February 10, 2016 @03:14PM (#11075618)
Slava @ RethinkDB here.

You might want to look at https://github.com/mfenniak/rethinkdb-net (this is an alternative C# driver with a different API). We'd love to get an official C# driver in soon, so if the community has suggestions on how to improve the API (and which driver feels more idiomatic), we're all ears!

Re:Developer Preview: RethinkDB Now Available for Windows by talles on Wednesday February 10, 2016 @03:24PM (#11075692)
From a quick glance, this one you just posted feels way more idiomatic than the Java port.

The ultimate idiomatic thing to do would be to expose rethink as an IQueryable<T>, but implementing it can get hard/tricky.

https://msdn.microsoft.com/library/System.Linq.IQueryable

Re:Developer Preview: RethinkDB Now Available for Windows by skrebbel on Wednesday February 10, 2016 @03:56PM (#11075914)
That would be amazing, but potentially also misleading.

My 2 cents for Slava & co: The idea of IQueryable<T> is that it implements all LINQ "operators" (a weird LINQ term; they're just methods on an interface) just like IEnumerable<T> does it on in-memory data structures. But internally IQueryable<T> implementations typically build an SQL query instead.

So IQueryable<T> is designed for a use case somewhere halfway between an SQL query builder and an ORM.

I don't know ReQL well enough, so you'll have to assess this yourselves: If you can map all or most LINQ operators into ReQL, then you have to do the effort and implement IQueryable, it's too awesome an opportunity to let go.

But if the match is only, say, 50%, plus there's a couple of things Rethink can do that isn't easy to express with LINQ, I'd strongly recommend not implementing it at all, but designing your own, C#-flavored, query interface that just resembles the LINQ operators wherever possible (e.g. use "Where" instead of "filter").

Thing is, developers expect that anything they do on an IQueryable is transformed into a single gigantic query and optimized and executed once, on the database. Maybe Rethink can't guarantee the same performance characteristics, simply because it's no relational SQL-ish database. It would have to implement certain parts of IQueryable in client-side memory just to be compatible. Do that, and you'll end up fooling a lot of developers and they'll have a hard time finding out where their speed went. The other option is runtime NotImplementedExceptions for all unsupported methods, which really is just as unfriendly.

Re:Developer Preview: RethinkDB Now Available for Windows by coffeemug on Wednesday February 10, 2016 @05:12PM (#11076513)
Thanks guys, that helps a lot!
Re:Developer Preview: RethinkDB Now Available for Windows by judah on Wednesday February 10, 2016 @06:38PM (#11077121)
If you're in C#, the best NoSQL database for you is RavenDB[0].

First class LINQ support. Transactions. Full text search. Blazing fast. Open source. And it creates and maintains indexes for you based on your app's queries; database machine learning that keeps your app fast.

Disclaimer: I'm a bit biased, as I've contributed to RavenDB. But it really is a great document database. I use it on nearly every project, personal and professional.

[0]: http://ravendb.net

Re:Developer Preview: RethinkDB Now Available for Windows by junto on Thursday February 11, 2016 @05:15AM (#11079301)
I like RavenDb, but correct me if I'm wrong, but it isn't free?

http://ravendb.net/buy

Re:Developer Preview: RethinkDB Now Available for Windows by judah on Tuesday February 23, 2016 @03:46PM (#11162183)
It's free for open source projects.
Re:Developer Preview: RethinkDB Now Available for Windows by hardwaresofton on Wednesday February 10, 2016 @02:57PM (#11075501)
From the little I know about C#, the LINQ (IQueryable?) interface is very well designed/used -- maybe some work could be done to look into exposing that sort of API?

I can at least say that the C# API looks extremely consistent with rethink in other languages.

Re:Developer Preview: RethinkDB Now Available for Windows by Analemma_ on Wednesday February 10, 2016 @03:30PM (#11075734)
>the LINQ (IQueryable?) interface is very well designed/used

It's very well designed/used if someone else does the heavy lifting of creating the data provider for you. Speaking as someone who has done it, writing your own IQueryable LINQ provider is a serious hassle, though fortunately it only has to be done once. If it's something you really wanted, I would try to lean on RethinkDB to do it rather than implementing it yourself.

Re:Developer Preview: RethinkDB Now Available for Windows by hardwaresofton on Wednesday February 10, 2016 @03:33PM (#11075746)
Oh that's what I meant -- RethinkDB is thoroughy open source though, so I'm sure if someone in the community found the time to do it, the rdb devs would give it a look and improve the code, and possibly merge.
Re:Developer Preview: RethinkDB Now Available for Windows by giancarlostoro on Wednesday February 10, 2016 @02:53PM (#11075480)
Well, they are looking for people to help out, if you have time and can invest in it you could be one of the contributors I'm sure. Otherwise I'm sure with Windows being a platform for it someone will come along and work on either a new driver (API) or improve the existing one.
Re:Developer Preview: RethinkDB Now Available for Windows by taco_emoji on Wednesday February 10, 2016 @02:59PM (#11075527)
> Brian [Chavez] based his C# library on our own official Java driver, which we released in December.

I'm guessing it's close to a line-for-line port, so Chavez kept all the Java style conventions.

Re:Developer Preview: RethinkDB Now Available for Windows by habitue on Wednesday February 10, 2016 @03:25PM (#11075699)
Not all of them, but yeah, it's close. The main issue with 3rd party libraries is keeping them up to date with the official drivers. The way this driver is written, updates can be automated
Re:Developer Preview: RethinkDB Now Available for Windows by WaxProlix on Wednesday February 10, 2016 @03:40PM (#11075800)
Had you looked into ravendb at all?
Re:Developer Preview: RethinkDB Now Available for Windows by UK-AL on Wednesday February 10, 2016 @02:58PM (#11075519)
RavenDb?