5 ms·
I have a feeling that "I made up a random database as big as Digg's, and look, I'm getting 1000x the speed!!!" would kind of tend to imply that you're not accur
by steveklabnik 17y ago
I have a feeling that "I made up a random database as big as Digg's, and look, I'm getting 1000x the speed!!!" would kind of tend to imply that you're not accurately replicating their problem.
- TimothyFitz 17y agoAgreed. Reading the digg article I'm interpreting their perf claim to mean "on a loaded server in our cluster, if we try to do this query on a cold cache it takes 1.5 seconds to complete", because this is exactly how I would measure the performance. When I test the performance of a query, I query a live mysql node (or at least a live replicated standby) of some data that's not actively being used (to give a realistic "cold-cache" scenario, even though the caches aren't necessarily cold). If digg used this method, it would completely account for performance discrepancy. Digg did not release a benchmark, and trying to treat their findings as a repeatable benchmark is wrong.
- gill_bates 17y ago>Digg did not release a benchmark, and trying to treat their findings as a repeatable benchmark is wrong. Yet they released record counts, schema, and then performance numbers, and then used their results to demonstrate the failure of the RDBMS (which they led into by saying that it, as some given philosophy, optimizes writes at the cost of reads, hence their poor read performance). Many of the comments in here are baffling. Digg specifically used the hammer of NoSQL to pound the nail of their database needs, replacing MySQL. They've made a big deal about this. So why the noise about "they're different, man?" And now the petty whines about benchmark methodology when Digg made concrete claims about RDBMS systems?
- jpcx01 17y agoI think the parent author's main point is they used a defective RDBMS as a representative example of all. MySQL does not do certain things well. However many mature RDBMS's have solved these problems and its worth pointing that out before you drop the entire class of tools for the next shiny tech.
- nostrademons 17y agoBecause many of us have had the experience of going into a new project where we thought all the existing engineers were idiots, miraculously being given enough latitude to do things our way, and then finding that there were good reasons for those idiotic decisions, and our proposed replacement completely falls down under real-world conditions. Eventually, you learn not to criticize projects that you aren't actively in the trenches with. There's almost always some subtlety you're missing, and the existing team is too busy fixing it to correct your misconception. I bet the Digg team is looking at these comments (well, if they have time) and thinking to themselves, "We tried that a year ago, and it didn't work. If only they knew..."
- ars 17y agoOr it implies that digg did a bad job.
- spamizbad 17y agoYou'd have a pretty low opinion of digg engineers to think they'd optimize that poorly. Which the article author does. It's actually pretty depressing to see content like this from an alleged Database expert. I've never been able to get 1:1 results between "lab" tests and actual deployments, and I've gone to much greater lengths than the author to simulate workloads.
- gill_bates 17y agoDid we read the same article? The one I read made ample disclaimers about it being nothing even remotely approximating a serious benchmark.
- ahk 17y agoAnd still uses those same worthless benchmarks to try to prove the point of sqldbs ability to scale.
- WorkerBee 17y agoHe wasn't aiming for 1:1, he was trying for a ballpark, and he got 1000:1 improvement on modest hardware. On a fricking laptop. That's all in the article.
- gill_bates 17y agoDigg couldn't do a rudimentary join. I'm sorry but if you can read their original entry and not picture an almost comical scene, that you are out of your league. Now the Joe Plump or whatever guy is telling people that you should sort in PHP. That is the level of expertise of Digg.
- steveklabnik 17y agoI didn't read their original entry. I read an article that was basically "Hurf durf, Digg is retarded, I can do better at home. NoSQL is stupid." I actually flagged the parent article. It's a troll, and not worth anyone's time. RDBMS is good sometimes. NoSQL is good sometimes. Do we really need _another_ holy war?
- gill_bates 17y agoAnd you think this article started the holy war? I believe I just saw another article on his about how you should do SQL sorting in PHP until you graduate to MySQL, or so claims Digg's former architect.
- ubernostrum 17y agoFrom what I read of the Digg article, it seemed they were hitting situations where doing some work in PHP rather than the DB was the most efficient solution. I don't find anything unreasonable about that; I occasionally run into situations where it's just not possible to get the performance needed while only using the DB, as does probably anyone who's worked enough with databases. The specific case -- IIRC -- Digg mentioned was a query which required MySQL to generate a temporary table too large to sit in memory, so it ended up being done on disk. Moving some of the processing out of the DB query and into PHP avoided that, understandably resulting in a huge performance difference (in-memory versus on-disk has a way of doing that...).
- steveklabnik 17y agoIt certainly didn't start it, but I don't want to see more vapid articles from DBAs about how NoSQL sucks. I want to see actual articles about the real strengths and weaknesses of both technologies. This article just fuels the flames.
- madair 17y agoPerhaps you missed the point of the whole exercise: To respond to a high-profile yet poor representation of RDBMS performance. The OP repeated this reasoning more than once. He showed that the facts cited by Digg do not make sense unless we take into account poor database technology, poor database configuration, or poor database skills, or all three. Perhaps you disagree with that. However, that's not what you said above. The OP also discussed the nature of this micro-benchmark, and it's relevance despite his own poor knowledge of the actual data characteristics. So in other words, he has already directly addressed your concern in advance, more than once on that too as a matter of fact. Considering that fact, you haven't actually responded to his article, you just wrote a "tends to" point about micro-benchmarks, I think it's pretty clear that Dennis Forbes knows a thing or two about benchmarks. Blah blah blah to empty air, this comment page is pretty much a fact-free and nuance-free flame war anyway, so what's the point, sorta embarrassing for the esteemed HN crowd.
- regularfry 17y agoIt would have helped the author's case to try (at least approximately) replicating Digg's performance problem on a local MySQL install before switching technologies - that would have given some indication that he'd made the right assumptions about the problem and wasn't testing something unrelated. No matter how good the author is (and I've got no reason to suspect that he's anything other than a top-rate engineer), it's awfully easy to be led down a blind alley on this sort of problem.
- steveklabnik 17y ago> you just wrote a "tends to" point about micro-benchmarks I am not a database guy. I also don't know enough about Digg's set up to say with authority if these comments make sense. So I specifically wrote "I feel," "tends to," and "imply" because I'm not comfortable making an absolute statement about the issue. However... I don't see how this test is in any way relevant. a 30GB database? Running on totally different hardware? In any case, re-reading the article again, I see that relevance paragraph now. I guess I missed it the first time around between all of the flaming, trollish comments about both NoSQL and MySQL. But I still don't see how we can extrapolate this test in any way to imply anything about Digg's practices at all. Then again, it's 8:30am.