News for hackers. Stuff that matters.
Re:Ask HN: What's the current state of NoSQL ? by justinsb on Monday February 01, 2010 @02:02AM (#1091949)
Is your app pushing the limits of SQL databases? Is there any reason to look at NoSQL other than the fact that it's 'cool'? Currently all the NoSQL databases are very early adopter products, and each have their own strengths and weaknesses, so you'll have to choose a NoSQL database whose strengths match the area where a SQL database is failing you, and where the weaknesses aren't deal breakers.

Of course I'm biased, and tend to lean towards using SQL/relational databases... FathomDB is all about trying to eliminate the pain points of running a (My)SQL database. I feel a lot of the NoSQL marketing hype is picking on weaknesses of MySQL (rather than relational databases per-se), and so we're thinking about how to make MySQL better, and we don't think it's a good idea to abandon the relational model entirely. After all, our industry started with NoSQL back in the 60s, and there were good reasons for adopting the relational model 30 years ago!

Re:Ask HN: What's the current state of NoSQL ? by olalonde on Monday February 01, 2010 @02:08AM (#1091955)
My ultimate goal is to increase productivity - I'm getting tired of writing and maintaining all those SQL queries. I felt the driving force behind NoSQL databases was cutting through the pain of SQL, but I can see from other comments that it is not really the case.
Re:Ask HN: What's the current state of NoSQL ? by justinsb on Monday February 01, 2010 @02:22AM (#1091971)
I believe that simplifying querying is a non-goal for NoSQL, in fact most NoSQL databases actually push more of the burden of querying onto you. CouchDB is arguably a bit better here with its concept of views. SQL is incredibly powerful for expressing very complex queries succinctly, and it's pretty difficult to beat. CRUD queries are tedious in SQL or NoSQL, and an ORM or similar abstraction layer definitely helps productivity when programming those bread-and-butter operations.
Re:Ask HN: What's the current state of NoSQL ? by olalonde on Monday February 01, 2010 @02:30AM (#1091979)
Thanks, that's exactly the answer I was looking for. For some reason, I was under the impression that simplifying queries was actually a design goal of NoSQL whereas it really is about scalability and performance... right?
Re:Ask HN: What's the current state of NoSQL ? by cperciva on Monday February 01, 2010 @02:56AM (#1092001)
NoSQL simplifies queries to the extent that it makes complex queries impossible and thereby forces people to design their data structures in such a way as to allow them to do everything they need using only simple queries. :-)
Re:Ask HN: What's the current state of NoSQL ? by justinsb on Monday February 01, 2010 @03:11AM (#1092012)
That's a great way to look at it. The problem here comes when you want to add a new feature, and you find that your design doesn't allow for the new queries needed.

The relational model and data normalization are reasonable at stopping you painting yourself into a corner, and SQL's bulk data manipulation operations can get you out of trouble.

With NoSQL, you're on your own, which is great for those that are infallible and omniscient. Ironically enough, I think that means that only Larry Ellison should be using NoSQL, to twist the well known joke.

Re:Ask HN: What's the current state of NoSQL ? by richcollins on Monday February 01, 2010 @04:14AM (#1092084)
How are complex queries impossible? You could easy write a declarative language for querying graphs.
Re:Ask HN: What's the current state of NoSQL ? by wlievens on Monday February 01, 2010 @05:22AM (#1092144)
Sure, but the performance would be horrible. That's his point. You can't do some of the things rdbms's do.
Re:Ask HN: What's the current state of NoSQL ? by kunley on Monday February 01, 2010 @10:02AM (#1092459)
I guess he meant: complex queries are impossible at the server side, so you have to run it in the client.
Re:Ask HN: What's the current state of NoSQL ? by justinsb on Monday February 01, 2010 @02:42AM (#1091991)
Yes - that's my understanding of the goal of NoSQL. As for whether they've achieved it, that's a more complex question :-)
Re:Ask HN: What's the current state of NoSQL ? by simonw on Monday February 01, 2010 @02:57AM (#1092002)
"I'm getting tired of writing and maintaining all those SQL queries." - learn a good ORM. The Django ORM is a heck of a lot better at writing SQL than I am, especially the kind of queries that make up 95% of a web application.
Re:Ask HN: What's the current state of NoSQL ? by olalonde on Monday February 01, 2010 @08:21AM (#1092279)
That sentence was for illustration purposes: I was wondering if NoSQL databases acted on the same level as ORMs (and I was apparently wrong). I am very well aware of ORMs (actually wrote my own in PHP: http://www.getdorm.com).