4 ms·
Hm, flat files will rule the world? No more messy SQL, just iterate over the file's entries with a for loop - even Java programmers can understand that. Sorry,
by Tichy 18y ago
Hm, flat files will rule the world? No more messy SQL, just iterate over the file's entries with a for loop - even Java programmers can understand that.
Sorry, but I am not convinced yet.
- intinig 18y agoTichy, give it a spin. The ease of execution (and the sheer speed, even over giant amounts of data) is impressive.
- dagheti 18y agoWhat do you mean by impressive "ease of execution"? How terse the code is? How easy the code is to read? How likely the code is to be correct? How flexible the data model is to new requirements? How simply you can reason about what the code does?
- intinig 18y agoThe code is easy to read, and the data model is as flexible as you want it to be, since it's schemaless. Reasoning about what the code does is simple once you shift your paradigm to document from relational.
- old-gregg 18y agoDo your research. "document-based" DBs already "ruled the world" right until relational databases were invented, which quickly obsoleted them. The only advantage of disk-backed hash table is ease of scalability, this is why they're useful for hm.... top 0.005% of web sites, who handle thousands of updates per second.
- jshen 18y agoThey are also useful for rapid app development or prototyping. I've used couchdb this way a few times and it works great.
- sounddust 18y agoI simply don't believe that this model scales "over giant amounts of data", at least in any sort of real-world usage scenario. Can you back up this claim with benchmarks?
- Tichy 18y agoI can imagine some benefits, but as for speed of execution I am really doubtful. Your example suggests a "select all" followed by some analysis done in code. I can't imagine this scales well.
- jshen 18y agoIt creates an index for each view essentially. It's not anything like a "select all".
- Tichy 18y agoReading CouchDB documentation now and can't stop reading. It sounds like a lot of fun. Haven't understood yet how to handle the performance problems, but would like to use it just for the fun of it.
- jshen 18y agoYou may not be convinced yet, nor am I, but your strawman argument makes you look ... well a little silly.
- Tichy 18y agoThat is the way I understood it. What do you mean by "it creates an index for each view"? I just would like to avoid reinventing the wheel, and relational databases abstract away some of the problems of dealing with large data sets. Edit: OK, read the CouchDB introduction now. Did not know that the "views" are server side. I have a past as a Java developer, and I have actually come across the "select all, then compute in Java" pattern several times in the real world.
- jshen 18y agoYou should phrase your comments in the form of a question rather than passing judgement on things you haven't looked into.
- Tichy 18y agoI used to do that but then got negative comments from HN. Anyway, the title of the article was a bit provocative, so I hoped answering in the same spirit would not be taken as offensive. It certainly is inspiring to look into CouchDB.
- jshen 18y agoYeah, the HN headline was stupid. Sadly stupid titles usually get a lot of up votes. By stupid I mean, intended to incite a knee-jerk reaction.
- jamesbritt 18y agoSame seems true of comments. I think I see Tichy's point; if you ask question, you are often ignored, or mocked. If, however, you make a (willfully) ignorant assertion, people jump at the chance to tell you just how wrong you are. Not that I want to advocate this approach, but I understand why someone would use it if, in the end, it generates more useful information. (I think this was discussed elsewhere on HN, with "troll, don't inquire" as a disappointingly effective means of getting information.)