Slashdot Mirror


MariaDB vs. MySQL: A Performance Comparison

Nerval's Lobster writes "MariaDB is a fork of the MySQL source code, split off in the wake of concerns over what Oracle would do with MySQL licensing. In addition to its role as a 'drop-in replacement' for MySQL, MariaDB also includes some new features that (some claim) make it better than MySQL. Jeff Cogswell compares MySQL and MariaDB and suggests (in his opinion) that there's 'more than enough reason to ditch MySQL and switch over to MariaDB and stay there.' Why? While he breaks down MariaDB's new features and thinks many of them aren't that fantastic, and while MariaDB's performance isn't that much better than that of MySQL ('MariaDB's performance appears a bit better on multi-core machines, but I strongly suspect that one could tweak MySQL to match'), the questions over Oracle and MySQL licensing give him pause. 'MariaDB shows every indication that it will be around for quite awhile, while you can't really say the same of Oracle's MySQL,' he writes. 'Free-and-open MySQL competes with Oracle's proprietary and extremely competitive tools. That alone is grounds for concern — will Oracle do something to impede MySQL's development?'"

26 of 112 comments (clear)

  1. Great summary! by Anonymous Coward · · Score: 3, Informative

    The only link goes to another Slashdot page! Well done!

    1. Re:Great summary! by icebike · · Score: 4, Informative

      It links to a Slashdot Channel article, which never appeared in the regular part of Slashdot.

      Slashdot is not one-dimensional any more. It has grown a first-print arm for new articles.
      By your comment, I wager it was your first visit to a Slashdot Channel.

      --
      Sig Battery depleted. Reverting to safe mode.
    2. Re:Great summary! by Anrego · · Score: 3, Insightful

      Interlinking like this still seems in poor taste.

    3. Re:Great summary! by icebike · · Score: 3, Informative

      I wish I could collect a paycheck from all the companies some twinkie AC on /. has accused me of working for.

      --
      Sig Battery depleted. Reverting to safe mode.
    4. Re:Great summary! by hairyfeet · · Score: 5, Interesting

      Not to mention the whole thing ignores the elephant rotting in the corner, that old Monty makes anybody working on MariaDB sign over their code so he could pull the same trick twice and sell it out from under them just as he sold MySQL.

      Now don't get me wrong, I think Monty has big brass balls to be able to pull what he did last time and get away with it, he made them think they were actually buying a product in MySQL and in reality all they got was the name and the website, he ended up walking away with the code AND the customers, how he got them to buy without a do not compete I don't know but it took some big brass ones to pull it off.

      But like the old saying goes "fool me once.." what is to stop Monty from pulling the same game with MariaDB? Nothing that I can see, he still has it set up so no matter who works on it HE owns the code, which means he can do whatever he wants with it. Now maybe he scammed enough off the last sale that this won't be appealing, maybe not, would you really want to take that chance?

      --
      ACs don't waste your time replying, your posts are never seen by me.
  2. When the incompatabilities ? by Alain+Williams · · Score: 4, Insightful

    Today the list of incompatabilities is small and unimportant. I wonder if one will make a really useful difference that would encourage developers choose one or the other; then users would really need to choose. At the moment which you use doesn't really matter.

    1. Re:When the incompatabilities ? by jgrahn · · Score: 3, Insightful

      Today the list of incompatabilities is small and unimportant. I wonder if one will make a really useful difference that would encourage developers choose one or the other; then users would really need to choose. At the moment which you use doesn't really matter.

      If that's true, now is the best time to switch. Not when/if the vendor starts squeezing your balls.

    2. Re:When the incompatabilities ? by unrtst · · Score: 3, Interesting

      But there is no good reason to switch besides hypothetical future situations. If one is already on either product, just stay there until something happens... so long as they are both still compatible.

      The performance issues noted in the article doesn't make any sense to me. From the article:

      One common result of not coding these correctly is you’ll start out seeing an improvement in the first 8 or 16 threads, and after that you won’t get nearly the hoped-for improvement. When you see that problem, it means there’s likely trouble with the algorithms. (And this will be the case with either hyperthreads or hardware threads.) That’s what we’re seeing here with the MySQL benchmarks. To me, that’s an indication of trouble with MySQL scaling, and should be a cause for concern. MariaDB also has a slight problem in the same benchmark as the performance goes down slightly, but only barely; I would surmise that this isn’t a problem with the parallel algorithms.

      ...but the graph at the top of the article does NOT show that! What benchmark is he referring to? The one at the top of the article shows MySQL 5.5.29 performing almost exactly the same as both versions of MariaDB that were tested. MySQL 5.6.10 performed a little different, which is because... well, we don't know due to lack of information there (he even says it may not have been compiled correctly, and a few other possible reasons).

      If MariaDB does perform noticably better on many core machines (> 32), I'd be interested to know that, and that could be a justifiable reason to consider it.Even so, why go through that effort? And if you're running >32 cores on your DB, chances are it's a large DB and would take a fair bit of time to smoothly cut over... not really worth it IMO.

  3. Re:Never thought I'd see FUD from Open Source by gstoddart · · Score: 5, Insightful

    I think concerns about Oracle's long-term plans for MySQL are valid to ask.

    If it isn't making Larry money, what did he buy it for and what is he planning to do with it?

    Oracle isn't exactly a customer friendly company (just ask anyone who had an older Solaris machine when Oracle bought Sun and got told they needed to buy a support contract to even access docs), so I've always wondered why they would buy a free database and continue to develop it and give it away.

    If I was choosing based purely on open-ness, something which doesn't have the chance of Oracle coming along and closing it otherwise strong-arming people would be a plus.

    I guess it legitimately is FUD, but sometimes, there's valid reasons to mistrust such entities. And having dealt with Oracle over the years, they themselves are a very strong reason to be suspicious.

    --
    Lost at C:>. Found at C.
  4. "will Oracle do something to impede MySQL's dev?" by ciantic · · Score: 5, Interesting

    They did. In short they stopped providing test cases for new features. Do not use MySQL. Period. Read more about in here.

  5. Switch by Anonymous Coward · · Score: 4, Insightful

    Switch to Postgres. It'll be there for a long time.

  6. Re:Never thought I'd see FUD from Open Source by Anonymous Coward · · Score: 3, Insightful

    We're only seeing this because the guy who sold MySQL to Oracle wants a second bite and is trying to discredit what he just sold them as hard as he possibly can so that people move back to his stuff.

  7. Re:Never thought I'd see FUD from Open Source by AdmV0rl0n · · Score: 5, Insightful

    I think concerns about Oracle's long-term plans for MySQL are valid to ask.

    If it isn't making Larry money, what did he buy it for and what is he planning to do with it?

    Oracle isn't exactly a customer friendly company (just ask anyone who had an older Solaris machine when Oracle bought Sun and got told they needed to buy a support contract to even access docs), so I've always wondered why they would buy a free database and continue to develop it and give it away.

    If I was choosing based purely on open-ness, something which doesn't have the chance of Oracle coming along and closing it otherwise strong-arming people would be a plus.

    I guess it legitimately is FUD, but sometimes, there's valid reasons to mistrust such entities. And having dealt with Oracle over the years, they themselves are a very strong reason to be suspicious.

    Oracle maintain multiple open source initiatives. *I'm * not making any claim about wether these are maintained 'correctly or not, because the truth is that I am not in a position to state factually what the true state is.

    But - people still use Virtual box. People still use Java. People are still using MySQL.
    I'll pitch - even though I struggle to think its true - that if Oracle maintained them well, and if a true state exaists where the smaller MySQL may lead to an upgrade when things get large to Oracle DB - I can see why a vendor might say to itself that damaging our own product isn't productive. If they trust us implicitly doing a good job on MySQL they will believe the same basic premise on the day they need heavier iron and DB.

    It is understandable commecially to look at things and remove or kill things that are done and have a fork in them. Its another to just vandalise in an unthinking stupid way a well grounded, popular and well regarded product.

    The core question got asked at the end of the first post:
    That alone is grounds for concern — will Oracle do something to impede MySQL's development? Citation and real evidence required.
    The real world, true answer to that question is the real guide, other stuff and argument is fluffy..

    --
    We`re all equal .. Just some of us are less equal than others.
  8. Re:Competes? by knarfling · · Score: 4, Funny

    ... while Oracle more complex and large - it might actually come with a kitchen sink.

    Orcle does come with a kitchen sink. However, it costs extra if more than one person is in the kitchen at the same time.

    --
    Great civilizations have lived and died on false theories. Don't mess up mine with a few facts.
  9. Re:Never thought I'd see FUD from Open Source by PolygamousRanchKid+ · · Score: 3, Funny

    what is he planning to do with it?

    It's difficult to describe in words what "do with" means in this context.

    But if you google on "Hentai", you'll find some pictures.

    --
    Schroedinger's Brexit: The UK is both in and out of the EU at the same time!
  10. Re:Useless FUD by 0123456 · · Score: 5, Informative

    The longer you wait, the less chance there is of it still being a 'drop-in replacement'. Both sides are likely to make incompatible changes to the database format, and while that's OK when you're running a 1GB database that you can just dump out and restore, it's a problem when you're dealing with 60TB of data.

  11. Jeff Cogswell is a three-year-old by red_dragon · · Score: 4, Insightful

    My son used to play a silly little match game that he picked up from pre-school when he was three years old. In it, he would take two toys -- cars, action figures, Lego blocks, staple removers, whatever -- hold them in his hands, and ask "Which one are you, X or Y?" After the other person (usually me) answered, he'd act out some sort of epic battle between the two toys in his hands, and then declare one or the other the victor. I always pointed out to him the pointlessness of the game. He didn't care.

    Jeff Cogswell's reviews remind me of that game. They're pointless. He doesn't care. And my son grew out of it.

    --
    In Soviet Russia, Jesus asks: "What Would You Do?"
  12. Re:Never thought I'd see FUD from Open Source by samkass · · Score: 5, Interesting

    My favorite part is that the article is titled "MariaDB vs. MySQL: A Performance Comparison", but since the performance is almost identical they spend most of the summary talking about ideological differences. I guess "MariaDB vs. MySQL: An Ideological Comparison" didn't have the same ring to it.

    --
    E pluribus unum
  13. Re:Never thought I'd see FUD from Open Source by rudy_wayne · · Score: 4, Insightful

    We're only seeing this because the guy who sold MySQL to Oracle wants a second bite and is trying to discredit what he just sold them as hard as he possibly can so that people move back to his stuff.

    I think you may be right.

    The creator of MySQL sold out to Sun and now he's trying to claim that his new DB is better, probably hoping he can sell out again and collect another big paycheck.

  14. Re:Never thought I'd see FUD from Open Source by rudy_wayne · · Score: 4, Insightful

    Oracle wants to use MySQL as a stepping stone for people to migrate them over to full Oracle DB. That's one of the reasons they bought the thing.

    That's not really true. Prior to buying Sun, Oracle probably didn't give two shits about MySQL. Oracle wanted Sun, and Sun just happened to own MySQL, so it was part of the deal. Once Oracle had MySQL then they had to figure out what to do with it. The same thing with Java.

  15. Re:Competes? by Walking+The+Walk · · Score: 4, Informative

    I would think the appropriate usage areas for MySQL and Oracle DBs overlap marginally

    I am a DBA, and FYI there are multiple editions of Oracle. I'm not sure what use cases you were thinking of, but if you're looking for a free edition there's always Oracle Express Edition. Free to download, use and distribute, and allows databases up to 11GB. I've worked at companies that run bigger MySQL installations, but I would venture that they are less than 1% of the MySQL user base. The majority of MySQL installations are small ones to back websites, such as Wordpress installations. You could easily replace them with Oracle Express. For other use cases, there's Oracle's NoSQL database, or Oracle's In Memory database (called TimesTen for some obscure reason), and they used to market Oracle Database Lite for mobile apps.

    So in summary, Oracle has a bunch of products that would compete with MySQL, and we can't understand why they don't just give MySQL away to Apache or some other foundation. Maybe they have support contracts that actually bring in some money.

    --
    A recursive sig
    Can impart wisdom and truth
    Call proc signature()
  16. Re:Never thought I'd see FUD from Open Source by greg1104 · · Score: 3, Insightful

    Concerns about MariaDB's long-term plans are appropriate too. Monty has setup his new company with contributor copyright assignment such that he can sell it off again, the same way he did with MySQL. If you actually taste the FUD here, you should be migrating away from both of these uncertain projects, not deciding which of them to use.

  17. Re:Never thought I'd see FUD from Open Source by greg1104 · · Score: 5, Interesting

    MariaDB is taking the MySQL code via the GPL and then building on top of it with new code. Those changes are all having their copyright assigned to MariaDB, and in some cases the GPL will also require a public release. Eventually MariaDB is expected to have a non-trivial set of improvements, and the copyright ownership of all the new code will be to MariaDB. That allows selling the combination of GPL core plus some explicitly owned private code, the exact same way MySQL was sold to Sun.

    This is the same scam that let Monty cash out once already, using the work of open source contributors who assigned their copyright to his original company. No reason he can't do it again, if people are gullible enough to fall for it twice.

  18. MariaDB is more quickly that MySQL: it's true!!! by josepsanzcamp · · Score: 5, Interesting

    I have done some tests some months ago, and I checked that MariaDB solves some problems that MySQL has. The performance is similar using simple queries, but when you write complex queries with subqueries, lots of joins and more, then MariaDB demonstrates the power of their code. I posted an entry in my wiki of the SaltOS project explaining how MariaDB helped to my project:
    - http://www.saltos.net/portal/en/wiki/75/why-use-mariadb-instead-of-mysql.htm

    Josep Sanz.
    The SaltOS project.

  19. Re:Never thought I'd see FUD from Open Source by ShanghaiBill · · Score: 5, Insightful

    How is Oracle crippling MySQL?

    By just sitting on it, and not improving it.

    Years ago, MySQL lacked many features that kept it from being a "real" database. Over the years, it has added transactions, stored procedures, triggers, etc. If that trend continued, why would anyone use Oracle? If Oracle just shut down MySQL, the momentum would shift to PostgreSQL or MariaDB. So by keeping MySQL alive, but stopping the improvement, Oracle is holding back free alternatives from competing with them.

  20. Re:Never thought I'd see FUD from Open Source by HornWumpus · · Score: 3, Insightful

    MySQL can't improve without breaking all the code that depends on it's fucked behavior.

    --
    John McAfee 'It was like that time I hired that Bangkok prostitute; to do my taxes, while I fucked my accountant'