Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×
Software

MySQL 4 Declared Production-Ready 332

Simprini writes "After absolute ages of testing MySQL 4.0.x in various versions of BETA through GAMMA it looks like MySQL AB finally released MySQL 4.0.12 as ready for prime-time production use. I know my company has been waiting for a long time for this because our customers absolutely refused to use beta releases of this product. Query caching here we come."
This discussion has been archived. No new comments can be posted.

MySQL 4 Declared Production-Ready

Comments Filter:
  • Uh oh (Score:5, Funny)

    by grub ( 11606 ) <slashdot@grub.net> on Tuesday March 18, 2003 @03:20PM (#5538492) Homepage Journal

    MySQL 4.0.x in various versions of BETA through GAMMA

    Uh oh.. I flat out refuse to use code that isn't ALPHA... well at least as an OS on my Windows machine.
    • by L. VeGas ( 580015 ) on Tuesday March 18, 2003 @03:50PM (#5538732) Homepage Journal
      If it's good enough for such a reputable fraternity, it's good enough for me.
    • doesn't gamma come right after beta? more like beta and gamma or alpha thru gamma.

      now if it had gone through test releases beta through omikron...
    • Re:Uh oh (Score:4, Interesting)

      by DNS-and-BIND ( 461968 ) on Tuesday March 18, 2003 @05:18PM (#5539500) Homepage
      I thought it was strange that the story submitter said, "I know my company has been waiting for a long time for this because our customers absolutely refused to use beta releases of this product." It's as if he's surprised that customers don't have the same standards as his personal linux box. Sure, they released a new tiny rev today, let's compile it and put it into production!
    • Re:Uh oh (Score:3, Informative)

      When the hell are they going to start alpha or beta testing subselects? I mean come on already.

      select a.cusip, a.description
      from security_master a
      where
      a.cusip in (select b.cusip from new_issues b)
      order by a.cusip;

      When MySQL can do that simple contrived query I'll take it out of the toy box.
  • I can't wait to test it out... with all the hype it might even give my Postgres a run for its money! It's so nice to see competitive databases freely available. Hand someone a PHP/MySQL book (there's tons) and let get cookin.

    Now to start some benchmarking...
    • MySQL is already faster than postgres at the limited amount of things MySQL can do.

      MySQL, even with 4, still lacks numerous features found in Postgres. Looking at MySQL's site, it won't have most of these features until 5.1 comes out.

      Someone brought this up in the last MySQL thread, but there really haven't been any *recent* MySQL vs. Postgres comparisons.

      I'm excited for 4.0, we'll probably make our slave a 4.0 box today.
      • MySQL is already faster than postgres at the limited amount of things MySQL can do.

        Perhaps you believed the benchmark that only the MySQL team has been able to come up with. Every other benchmark I've seen that simulated multiple users always showed Pg to be better even on very simple queries.

        Beware benchmarks that show only one thread or from mysql's developers themselves.

      • by Jack William Bell ( 84469 ) on Tuesday March 18, 2003 @04:32PM (#5539090) Homepage Journal
        I am wondering about caparative processing speed myself. MySQL has always been the speed leader in Open Source databases. Now that they have added some industrial strenght features (like ACID compliant transactions and row level locking) via InnoDB, how well does the speed difference hold up? Is it still way faster, or just a little faster or not faster at all?

        If the difference isn't significant then there is no reason to choose MySQL over PostreSQL for applications requiring high levels of data integrity. Especially when PostreSQL also brings you stored procedures, views and so on.
  • by tweder ( 22759 ) <stwede@gmai l . c om> on Tuesday March 18, 2003 @03:21PM (#5538504) Homepage
    Oh that's reassuring!
  • Uh, postgres? (Score:4, Interesting)

    by Anonymous Coward on Tuesday March 18, 2003 @03:22PM (#5538514)
    Does MySQL still do table-level locks and no foreign keys? If so, I'll stick to using a real database.

  • Just now? (Score:2, Informative)

    by Geekenstein ( 199041 )
    According to the MySQL site (manual) Gamma status was granted in December with version 4.0.6.
  • Excellent. (Score:2, Funny)

    by Anonymous Coward
    My MySQL 4 worm is also ready for your production environments. Get ready, sucka!

  • Now if I could just get MySQL 4.Anything to compile and run correctly on Solaris 2.5.1..
    Most attempts thus far have ended in failure of libraries to link correctly or binaries that segfault...
    • Egads, what's keeping you on that old a version of solaris, I know there are legacy apps out there but the only thing that's holding us back from all modern (2.8) versions is stupid Ciscoworks 2000 and it gets a fat ultra 80 that would make a fine workstation for me, stupid ciscoworks
    • MySQL is developed mainly under Solaris and is known to work best there. Threaded performance under Solaris is said to be way better than under Linux.

      This may of course not apply to your version of Solaris...but I can't make any qualified comments on this, really, as I have never even seen Solaris from up close.
  • Its Stable (Score:5, Informative)

    by krow ( 129804 ) <brian@@@tangent...org> on Tuesday March 18, 2003 @03:25PM (#5538539) Homepage Journal
    We have been using 4.x for Slashdot for some time now. Its quite stable and the new query cache seems to be working for around 13% of our queries, which has been a great boon for us.
    • Allright, now I *know* not to upgrade. (kidding)
  • by Gortbusters.org ( 637314 ) on Tuesday March 18, 2003 @03:25PM (#5538548) Homepage Journal
    Things like embedded MySQL [mysql.com] make MySQL a bag of tricks to use in many environments.

    What other features [mysql.com] might there be?
    • Version 4.0 further increases the speed of MySQL Server in a number of areas, such as bulk INSERTs, searching on packed indexes, creation of FULLTEXT indexes, as well as COUNT(DISTINCT).
    • The InnoDB storage engine is now offered as a feature of the standard MySQL server, including full support for transactions and row-level locking.
    • Our German, Austrian, and Swiss users will note that we have a new character set, latin1_de, which corrects the German sorting order, placing German umlauts in the same order as German telephone books.
    • Features to simplify migration from other database systems to MySQL Server include TRUNCATE TABLE (like in Oracle) and IDENTITY as a synonym for automatically incremented keys (like in Sybase). Many users will also be happy to learn that MySQL Server now supports the UNION statement, a long-awaited standard SQL feature.
    • In the process of building features for new users, we have not forgotten requests by the community of loyal users. We have multi-table DELETE and UPDATE statements. By adding support for symbolic linking to MyISAM on the table level (and not just the database level as before), as well as by enabling symlink handling by default on Windows, we hope to show that we take enhancement requests seriously. Functions like SQL_CALC_FOUND_ROWS and FOUND_ROWS() make it possible to know how many rows a query would have returned without a LIMIT clause.
    • by micromoog ( 206608 ) on Tuesday March 18, 2003 @03:58PM (#5538788)
      In the process of building features for new users, we have not forgotten requests by the community of loyal users.

      What about integrity constraints, foreign keys, interval datatypes, full outer joins, subqueries, set operations, VIEWS for god's sake, and triggers? Too hard?

      For cryin' out loud, half of these missing features put the "relational" in "relational database"!

      • Some previous posts (no, I didn't rtfa) seem to indicate that foreign keys have been added with the addition of InnoDB to the codebase.
      • Good God, mysql doesn't have intervals either? I never even realised how much i take intervals for granted in postgresql until i read this. It's hard to imagine life (for very long) without them.

        But of course it's probably just another thing mysqlers will claim that "90% of people would never use anyhow". Well, 100% of mysqler's, anyhow.

        They don't know what they're missing.

      • by JohnDenver ( 246743 ) on Tuesday March 18, 2003 @04:34PM (#5539111) Homepage
        What about integrity constraints, foreign keys, interval datatypes, full outer joins, subqueries, set operations, VIEWS for god's sake, and triggers? Too hard?

        For cryin' out loud, half of these missing features put the "relational" in "relational database"!


        First of all, kudos to the MySQL team for atleast getting as far as they have. Just because I'm not fond of thier product, doesn't mean they don't deserve credit.

        I've been banging my head a little on this one too trying to figure out why so many people are pushing MySQL and not something stable and complete like PostgreSQL? After all, PostgreSQL has triggers, stored-procedures, functions, referential integrity, and tons of other features to make your life easier. You may not need all of these features now, but can you honestly say your app won't expand and require advanced features?

        Is it the MySQL marketing engine? Does PostgreSQL sound intimidating? Are there actually technical advantages that MySQL have over PostgreSQL? If so, what are they?

        The most common argument I've heard in defense of MySQLs lack of basic features is: "It's good enough for 90% of the problems out there." However, everytime they implement a basic feature that every other RDBMS has had for decades (like UNION), people respond as if MySQL is getting close to be taken seriously.

        Secondly, In my experience, I've found that 90% of the applications I've worked on end up using those advanced features sooner or later. Those features usually save a tremendous amount of time I would have otherwise had to spend writing code to make my database jump through hoops. In addition to saving time, there a lot of features which simply allow me to make my applications more useful or intuitive to the end user, which is the whole point.

        Am I missing something here, or is the Emperor not wearing any clothes?

        • by MisterFancypants ( 615129 ) on Tuesday March 18, 2003 @04:49PM (#5539242)
          MySQL used to be significantly faster than PostgreSQL, mainly because it COULD be faster because it didn't have to worry about pesky features like transactions. Now that PostgreSQL has been better optimized and MySQL actually has some (a couple anyway) of these more advanced features, the speed difference is not a factor anymore. Now I think it is just a matter of inertia -- since MySql had such a long run, getting people to change is hard.

        • Maybe PostgreSQL justs a name change and a new PR department. Many people don't even know how to pronounce PostgreSQL. Consider the name's awkward evolution: Ingres --> Postgres --> PostgreSQL. They've already got a decent logo (the blue elephant [postgresql.org]). Presumably, the elephant never forgets your data?

          Looks like the PostgreSQL team is taking an active role to update their PR: A Call for PostgreSQL Case Study Participants [postgresql.org]
        • If it does the job, why switch. If I ever find MySQL can't handle something that I need to do with an app, then I will certainly start looking at Postgres. Right now, I'm not concerned with a lot of the features that postgres has. I'm using it to do simple table queries in small apps. I first started using it because that's what the hosting company had installed on my web server. So I used it. I've been using it ever since because I haven't had any problems with it. - keith
        • by Trifthen ( 40989 ) on Tuesday March 18, 2003 @07:33PM (#5540481) Homepage

          We run postgres and we're doing our damndest to get rid of it. We have some databases that get 50-100% data turnover rate daily, making hourly vacuums essential to not having the Ever Expanding Database problem. Not to mention that vacuum doesn't clean up indexes, so you'll also have to re-index periodically if you don't want those to grow to thousands of times their optimal size.

          I should probably say that such reindexes require full table locks, so you could get contention issues under heavy load when reindexing your database. Mysql gets by this by making indexes in a temporary space, and switching when the index is done. This means I can select from a table, with full benefit of an existing index, even while I change an index, or even redo the index. Not that I have to... mysql doesn't require vacuum or reindex to avoid continuous linear bloat.

          So... we don't like having to babysit our database to get good performance out of it. We're willing to work around lack of foreign keys to avoid having to do full database import/exports on a weekly basis, and multiple hourly cron jobs to make sure we don't randomly fill our disks. Faster? Slower? Who cares. Postgres is just too annoying to use in production.

          • We run postgres and we're doing our damndest to get rid of it. We have some databases that get 50-100% data turnover rate daily, making hourly vacuums essential to not having the Ever Expanding Database problem. Not to mention that vacuum doesn't clean up indexes, so you'll also have to re-index periodically if you don't want those to grow to thousands of times their optimal size.

            Vacuuming is just a side effect of MVCC -- the expired rows have to be kept around so that other open transactions can see the

        • by pi_rules ( 123171 ) on Tuesday March 18, 2003 @10:04PM (#5541286)
          After all, PostgreSQL has triggers, stored-procedures, functions, referential integrity, and tons of other features to make your life easier. You may not need all of these features now, but can you honestly say your app won't expand and require advanced features?


          Gimmie a break dude. I'm sick of hearing all this stuff about triggers, sub selects, and stored procedures. I can honestly say that no database really needs these things.

          In my 6 months of professional development at a 3 man shop I think I'm perfectly well qualified to say that no RDBMS will ever need these futures. I can't possibly imagine a design so fubar that it would EVER have to rely on the RDBMS to enforce such rules. That's what application level code is for! Sheesh!

          Well, maybe such things would be useful if you had more than one application pointing at the same database... or if you planned to maintain the DB's integrity over any length of time. But that kind of shit never happens in the real world. It's a made up story of Slashdot posts and database classes.

          Given that text doesn't relay voice inflection very well: The above is sarcasim.
        • I have used FreeBSD since the linux 2.0 days. FreeBSD was lightyears ahead at the time. I switched back and forth between the operating systems because Linux was more cool and web documentation all touted linux. The Linux distro's were easier to use and more people used them then FreeBSD so I used Linux for awhile as well.

          FreeBSD back then had a better VM( still does), better tcp/ip stack( still does), better package management( still does except gentoo), better scsi support, raid card support, volume mana
  • Select * from "http://www.mysql.com/downloads/" where "version" = "mysql-4.0.12"
  • by m0i ( 192134 ) on Tuesday March 18, 2003 @03:28PM (#5538572) Homepage
    According to the crash-me [mysql.com] comparison page, there's not much differences with the previous stable release. Some current benchmarks would probably be more significant, performance-wise.
    • I believe it is.

      We're using it in production since gamma. Our site delivers over 2.5 mln pageviews per day. Database size is about 25GB.

      Major differences compared to 3.x:
      - Row level locking - no more glitches on big updates
      - Instant crash recovery thanks to InnoDB
      - Hot backup ($400)
      - Query cache:
      Queries Avg/Sec: 388.45
      Cache Hits Avg/Sec: 108.04 Ratio: 27.81%

  • Slash (Score:3, Interesting)

    by ericdano ( 113424 ) on Tuesday March 18, 2003 @03:28PM (#5538574) Homepage
    The big question is: When Slashdot is going to start using it?

    Having had experience with Oracle, MySQL is still lacking a lot of the plush features that Oracle has. But, having run it for about 3+ years on my own slash type sites, the thing is ROCK solid. The feature set in MySQL increases with every version.

    Now, look at the costs. Oracle - an Arm, leg, and your children. MySQL - Free. Gee, that is a no brainer.....

  • by Anonymous Coward on Tuesday March 18, 2003 @03:38PM (#5538649)
    Error : no rows returned.
  • by jot445 ( 637326 ) <jot@445COFFEEpm.com minus caffeine> on Tuesday March 18, 2003 @03:38PM (#5538653) Journal
    We need views. While much of my work can be done in MySQL, until there are views I cannot switch completely from SQL Server 2K. Too many PHB's that need features like views [mysql.com] to be overcome. Must control fist-of-death! [dilbert.com]
    • by HelbaSluice ( 634789 ) on Tuesday March 18, 2003 @04:12PM (#5538907)
      But, as the MySQL developers say, nobody appears to want views badly enough to finance their development. That's how MySQL got as developed as it is now--enough corporate users needed specific new pieces of functionality that they could pay MySQL AB to build them. It's one of the best open-source business models I've ever seen.

      It's easy to complain. It's easy to preach. I'd rather see you pull out your (or your bosses') wallet.

      As for myself, while I'd love the convenience of views, I'm not constrained by legacy code and I don't mind the mild programming burden their absence puts on me.
      • I wanted views, stored procedures, triggers, etc. I wanted them badly enough to pull out my wallet and finance them. I wrote a check to Microsoft and bought MS SQLServer 2000.
    • by Java Ape ( 528857 ) <<mike.briggs> <at> <360.net>> on Tuesday March 18, 2003 @05:25PM (#5539564) Homepage
      I'll probably get modded troll for this, but why do you need views? I am an oracle DBA who supports a large number of developers, and frankly I'm a bit skittish regarding views. (For the record I also support PostgreSQL and dabble in MySQL . . .).

      They can really only do two things: hide columns for security reasons and simplify queries by hiding part of that query.

      In general, the first applcation is usually better served by planning, data seperation, and implementing a good security policy. There are times when views are a legitimate solution to problems of this type, and a database is definately better for supporting them in such cases.

      The second case, however, is commonly misunderstood by developers, who think a view is some magic incarnation of a snapshot. I frequently see views based on views based upon views, frequently each of which is a poorly-optimized sql statement. The developers seem surprised that performance is abysmal in such cases. A view is a just a convenience, a means to "store" a query, and run that query each time the view is accessed, nothing more.

      Since I spend a fair bit of time trying to fix performance problems reusulting from the many myths and rumors about views and their ubiquitous misapplication, I'm not sure that I would consider their omission a bad thing -- it might teach developers better coding habits. . .

      • I'd be satisfied if mysql supported just the easiest cases of views. i.e. no update/insert/delete, no joins. I'd still gain the abilities to restrict the set of rows/columns which can be seen by certain users, and to group similar tables (using UNION).

  • Waiting for maturity (Score:5, Interesting)

    by acostin ( 229653 ) on Tuesday March 18, 2003 @03:38PM (#5538655) Homepage
    We are also using MySQL for many web projects, but to create a complex CMS the future features in MySQL (that also exist in other current database systems - like postgreSQL and probably others) are needed.

    We have initially created Komplete - http://komplete.interakt.ro/ [interakt.ro] only for PostgreSQL, and our users attitude indicated us that MySQL should have been supported. So we are releasing now the Komplete Lite version (GPL), for MySQL - but it's a real pain to simulate subselects, real unions (emulated with temporary tables now), cascaded deletes and stored procedures.

    The speed is quite similar, but PostgreSQL is still much better for complex web applications.
    • mmMMMMmmm, stored procedures. I like the command line client of postgresql a lot as well. \d is much better than describe .
    • Just because PHP doesn't let you write a proper database access layer doesn't mean that a database NEEDS those features to exist.

      I've written multiple CMS-like applications, and seen several commercial systems which do fine without the features you listed...the key thing is that they are written in Java or even Perl so they can figure things out on their own.

      Look in the mirror before throwing stones.
  • Woho! (Score:5, Interesting)

    by Dri ( 16940 ) <driNO@SPAMphrenetic.to> on Tuesday March 18, 2003 @03:41PM (#5538672) Homepage
    I work at at the tech development dept. of a major car company and this is great news. We are finally able to throw MySQL onto production servers and give Oracle the boot for small RAD webapps.

    What I've heard from MySQL officials in person is that MySQL 5.0 is set to be released late Q4 this year. Then stored procedures, sub selects (4.1) and constraints should be ready for primetime, then we talk real heavy enterprise applications. Hope they keep the schedule! =)

    Well, Monty and the rest, Good Job! Keep it up!
    • Uhm, PostgreSQL (Score:2, Insightful)

      by gabe ( 6734 )
      I know people really dig MySQL and everything, but seriously, PostgreSQL has all of those features, and it's ready for production use NOW.
    • Re:Woho! (Score:3, Insightful)

      by NineNine ( 235196 )
      You've either got more balls, or less real world experience than me. I'm not even *thinking* about using MySQL until all of these new "features" have been tested for at least a year or so. My databases are the kinds of things I play around with.
  • Triggers? (Score:4, Interesting)

    by mshiltonj ( 220311 ) <mshiltonj@NoSPaM.gmail.com> on Tuesday March 18, 2003 @03:53PM (#5538754) Homepage Journal
    Foreign keys -- Pass
    Replication -- Pass
    Triggers -- FAIL

    SO close.....

    • Maybe in the next one... till then it's postgres for you! ;)
      • Re:Triggers? (Score:4, Informative)

        by mshiltonj ( 220311 ) <mshiltonj@NoSPaM.gmail.com> on Tuesday March 18, 2003 @04:26PM (#5539028) Homepage Journal
        Yeah, but postgres doesn't have replication to speak of. We use postgres, but replication is a big missing element that we are looking to fill.

        So whichever happens first -- postgres gets _good_ replication, or mysql gets stored procedures/triggers -- will probably determine which one leaps ahead of the other in terms of wide-spread adoption, especially as companies migrate from costly proprietary systems.
        • To speak of? It has a not that great replication story... you can write your own data access service/layer. Can do a sync engine easily enough with a couple of boxes IP aliasesed together.

          But yeah, not supported, not official, and definitely not out of the box.
    • Re:Triggers? (Score:5, Insightful)

      by nontrivial ( 222436 ) on Tuesday March 18, 2003 @04:28PM (#5539056) Homepage
      Triggers are so overrated. I maintained a huge app that made extensive use of triggers, and after a few years I couldn't go near them without having them explode. Give me MySQL and Perl instead of triggers and stored procedures any day of the week.

      • Re:Triggers? (Score:2, Interesting)

        by The Bungi ( 221687 )
        1. Reply to post making valid point about lack of FeatureX in ProductY
        2. Argument that because I don't need FeatureX or I think FeatureX is overrated, FeatureX is therefore not needed. Ergo, ProductY is teh bomb.
        3. ???
        4. Karma!1!!

        The lack of foreign keys, triggers and stored procedures (among other things) are serious problems with mySQL, regardless of its capabilities as a low to medium-range/load database, and regardless of statements by NewsForge to the tune of "mySQL is ready to overtake SQL Server and Oracle

      • Re:Triggers? (Score:5, Interesting)

        by frostman ( 302143 ) on Tuesday March 18, 2003 @09:36PM (#5541140) Homepage Journal

        The point of triggers is not to handle every possible database interaction, but to maintain your data integrity and business rules, as far as possible, at the database level.

        This is important so that people writing client/web applications don't accidentally weaken the data integrity. Database users (including applications) should never be able to accidentally or maliciously break things. Only the DBA gets to do that. ;-)

        If you find your triggers blowing up, it's usually because the database is poorly designed.

        If you started with something good and the boss is always changing the business rules on you and forcing you to use application code where you should use triggers, that's a tough situation. But if it's your policy, you would do well to learn a bit more about databases.

        BTW, Postgres can do triggers in Perl, for what it's worth.

  • Multi-table deletes (Score:5, Interesting)

    by digitect ( 217483 ) <digitectNO@SPAMdancingpaper.com> on Tuesday March 18, 2003 @03:55PM (#5538765)

    IMO, the very best new feature of MySQL 4 is multi-table deletes. No more having to query/for each in/delete type constructs across many-to-many relationship tables.

    I've been using MySQL 4.0.5/PHP4 on RH8.0 without problems to date. Granted, only on a non-critical intranet for our small (70) office, but still, no problems.

  • by Sanity ( 1431 ) on Tuesday March 18, 2003 @04:02PM (#5538828) Homepage Journal
    Just mirrored the file on Freenet [freenetproject.org], you can grab it here [127.0.0.1].
  • sub selects (Score:5, Interesting)

    by minus_273 ( 174041 ) <aaaaaNO@SPAMSPAM.yahoo.com> on Tuesday March 18, 2003 @04:09PM (#5538881) Journal
    any word on whether we have subselects yet. I couldnt see it in the change log. They are dearly missed..
  • What does 4.0 have that msyql-max 3.23 not have? I switched to mysql-max so I could use InnoDB.

  • Yes! (Score:5, Informative)

    by vandan ( 151516 ) on Tuesday March 18, 2003 @04:36PM (#5539126) Homepage
    As one of the testers of the 4.0.x line, I can say that MySQL AB should be proud of this release.
    I've seen some posts here about instability and data loss, but I assume this is from the Postgres 'but WE have the better database - everybody look over here' crowd. I've done some pretty stupid things to our MySQL box - like running Imagemagick's 'convert' on over 200MB of images and running the box out of virtual memory, which made the kernel start killing processes - starting with MySQL. When it came back up - no data loss at all. InnoDB recovers VERY well from this sort of thing.
    MySQL also handles multiple MS Access clients far better than MS SQL Server. We have over 10 tables now which basically can't be accessed if placed on SQL Server because of the way MS Access grabs record locks willy nilly. If I place the tables in MySQL as MyISAM tables, I get a little bit (3 or 4 months) use out of them. Then record locking issues start up again. So then I put them in MySQL's InnoDB tables with row-level locking, and I've never had any further issues with those tables. Quite impressive.
    And as well as being 100% stable for me, MySQL is so incredibly fast... When we convert standard Acccess queries to pass-through queries we get up to 15x speed increases. We actually use pass-through queries as substitues for views. Works nicely.
    The tech support it great. When I was having type-conversion issues with our pass-through queries I got responses from the developers on the same day - often in the same hour. And we haven't paid for any support - just downloaded the source.
    The lead-up to MySQL-4.0.x being stable has felt like the lead up to Mozilla-1.0; everyone using it felt it was ready, but the developers insisted on thoroughly testing everything to make sure they could stand by their decision to declare it stable.
    Congrats to the MySQL team. I will be compiling 4.0.12 when I get to work...
  • Why not PostgreSQL? (Score:2, Interesting)

    by ikioi ( 198093 )
    I don't mean to start a flame war here, but I have to ask... Why is MySQL so popular when PostgreSQL does more and is also open source and free like beer? Are there any real benefits to MySQL over PostgreSQL?
    • by Eric Savage ( 28245 ) on Tuesday March 18, 2003 @05:18PM (#5539504) Homepage
      Three words: performance performance performance.

      A few projects NEED the advanced features PostgreSQL has. Most projects COULD USE the advanced features PostgreSQL has. If you have rockstar programmers who know the difference between saving keystrokes and saving cpu time, and know that shifting logic load to your DB server is generally a BAD thing, you're going to find that you can almost always do things faster (often much faster) in MySQL. Stability is a tough one as its so subjective its hard to compare. I know we use dozens of MySQL servers collectively running tens of thousands of queries per second 24/7 and we haven't had a major issue or lost any data in years.

      If performance is key and you aren't into using fancy stuff just because its fancy, you'll want MySQL. If you don't really care about performance, you might like the additional features PostgreSQL offers.
      • If you have rockstar programmers who know the difference between saving keystrokes and saving cpu time, and know that shifting logic load to your DB server is generally a BAD thing, you're going to find that you can almost always do things faster (often much faster) in MySQL.

        I hope your "rockstar" programmers are more discriminating in deciding what tasks are best offloaded to clients. If a task requires manipulation of a large amount of data to produce a small result set, it's faster (for the end users

    • by gid ( 5195 ) on Tuesday March 18, 2003 @05:21PM (#5539532) Homepage
      I often wondered this myself, UNTIL I actually tried to sit down and use PostgreSQL. MySQL permissions and everything just made sense, it's all kept in very nice and neat tables and easy to understand by by looking at the tables without having to read any to little documention.

      While on the other hand, permissions for PostgreSQL are scattered everywhere. Half of it is config files for who gets allowed in and what type of authentication to what tables, triggers, etc, some are in special PostgreSQL tables that aren't immediately obvious even how to access if you wanted to edit them directly. It's all very confusing.

      PostgreSQL is nice, they just need to go that extra mile to make sure user permissions are easy to understand, etc. Do other little things here and there to make the learning curve is not quite as steep.

      Intuitive applications are the ones that succeed.
    • by Anonymous Coward
      as much as many may hate to admit not everyone is running linux/unix. MySQL has a native Windows install - you download it and run setup.exe. You can then play with it, develop under windows and deploy elsewhere.

      When I went looking for Postgress for Windows all I could find was instructions that involve cygwin.
    • whoever modded this interesting must live under a rock. nice try, while you're at it you might also want to ask why vi is better than emacs

      this whole story is a groaner for me because I just installed mysql yesyterday. they could have mentioned something...
  • Project Stats (Score:4, Informative)

    by Skevin ( 16048 ) on Tuesday March 18, 2003 @05:12PM (#5539437) Journal
    I've been using MySQL 4.x for a huge stock market analysis program I've been pounding out as my life's work, and unfortunately, I'm finding in some respects, it's slower than MS-SQL Server (same machine, dual boot):

    Number of listed NYSE symbols: ~3200
    Number of listed NASDAQ symbols: ~4000
    Number of total stock quotes from 1980 to today, each including open, close, high, low, and volume: 6.2 Million

    Time to fully index those 6.2M records on SQL Server: 0:42:33
    Time to fully index those 6.2M records on MySQL: 2:12:27

    And using Python...
    SQL Server time to pull all quotes within a given date range (no indices): 1min, 28sec.
    MySQL time to pull all quotes within a given date range (no indices): 7min, 18sec.

    Has SQL Server used implicit indices I am not aware of?
    • Re:Project Stats (Score:2, Interesting)

      by zm ( 257549 )
      I question the relevance of index creation benchmark. In most cases, index creation is done once and then it all just works with that index. Could you provide benchmarks for some big multitable select, update and calculations (averages, sums and that stuff)?
      Same goes for unindexed select: avoid it, and give us indexed benchmarks.

      zm
    • where do you get your data from? Is there a single, free place to download price data for every NYSE and NASDAQ stock since 1980?
  • Many have been looking forward to the additional FULLTEXT features [mysql.com] in MySQL 4,
    including boolean searches. Also, additional FULLTEXT Configure [mysql.com] options.
    See also 4.1 [mysql.com]
  • MySQL 4 is good (Score:5, Interesting)

    by chrysalis ( 50680 ) on Tuesday March 18, 2003 @05:29PM (#5539591) Homepage
    I've been extensively using MySQL 4 for over one year on very loaded production systems.

    It has actually always been faster and more solid than the 3.23.x series.

    I only had some small issues with InnoDB (the same issues were in 3.23.x as well). But the InnoDB maintainer, Heiki Turri, is someone that really cares about bug reports. All reported bugs were immediately fixed.

    The query cache is efficient, and the fulltext indexing was greatly enhanced (if only it worked with InnoDB tables...) .

    I've not installed any 3.23.x version for a while, and I'll never go back.

    Probably a lot of system administrators will wait. They will read that MySQL AB blessed 4.x as production-ready, but they will wait, as if it was an 1.0 version that still needs some maturity.

    It's not. MySQL 4.x has already received a lot of testing, and it is already being used on large production sites. Just read the MySQL mailing-lists.

    Upgrading from MySQL 3.x is also easy. You only need to run a little script to upgrade the grant tables (and even if you don't, everything will work). No need to export/reimport the databases. So upgrading is straight forward.

  • by The Bean ( 23214 ) on Tuesday March 18, 2003 @05:34PM (#5539634) Homepage
    I keep hearing how postgresql has "caught up" to mySQL plus has all kinds of wonderful features, yet my own testing shows postgresql to be a fair bit slower when you have about an equal mix of selects and updates with a few inserts thrown in here and there. For example, 82 seconds for postgresql, 35 for MyISAM and 49 for InnoDB (not MySQL 4 however) Yes, the postgresql had fsync turned off and the table vacuumed (full & analyze.)

    I'd love to use Postgresql, but with mysql adding all these features plus being so much faster, it's hard to move that way, as the fancy features are things I'd use but don't really need. (Previously foreign keys were a reason for me to switch)

    Or is there a way to make postgresql keep up to mysql so I can justify using it and right away get access to those cool things like views, triggers, functions, etc ?
  • read: especially as it concerns web sites, its hard to get users to upgrade from a good or engrained product...
  • by esconsult1 ( 203878 ) on Tuesday March 18, 2003 @08:31PM (#5540803) Homepage Journal
    The thing that makes Postgresql completely different from MySQL is that it is an *active* RDBMS. By active, I mean that you can set it up so if it gets certain kinds of data, it can operate on that data to create new records, delete records, update other tables etc.

    Postgresql has the *intellegence* built in. You can write all sorts of georgous functions to do stuff, especially if, like us, your shop uses several languages... PHP, Perl, Java, Python, C++, etc. Why replicate your data related logic in every client language?

    Transaction support and file/record locking are the least of your problems. If you do serious database stuff, at some point, you are *going* to want VIEWS, TRIGGERS, RULES, and STORED PROCEDURES (functions). Having this functionality in the database engine, instead of in your code makes a heck of a lot of difference when the time comes to scale.

    Coming from a MySQL backgroud in a multi-language shop, we clearly saw the limitations, and decided to switch the entire database platform over to Postgresql a year ago. We haven't looked back since.

    Also, I dont think the developers will be able to make MySQL into an *ACTIVE* database anytime soon, simply because of the current architecture of the system as it is now. They are going to need a heck of a lot of system tables and new code, to accomplish even the simplest stored procedure functionality.

    I can see VIEWS being a quick hack, but going beyond that with MySQL as it is, will be quite a stretch, and I don't believe they will finish those features until perhaps the end of next year, as it will require almost a complete rewrite of the base engine IMHO.

    • I would agree that even in the open-source world, many apps are popular because (a) they were the first on the market, or (b) have the better marketing department.

      However, having coded in C both for MySQL and PostgreSQL, I have to say that the MySQL docs are clearly better, and that their client library is more feature-rich than PostgrSQL. The MySQL database may lack features, but on the client side it is much easier to get simple things running.

  • by puppetman ( 131489 ) on Tuesday March 18, 2003 @10:12PM (#5541327) Homepage
    to possibly replace some Oracle databases.

    Any gurus (or detractors) want to list the downsides?

    - no subqueries yet. Ok. Not the end of the world
    - are multi-column primary keys still a performance dog?
    - how is stability? That's probably what you hear most about w/regards to MySQL
    - triggers and stored procs; back-end-logic==bad IMHO

    I just ordered Mastering MySQL 4 to speed the jump between Oracle and MySQL. Anyone used that book?

    I'd be really interested in hearing some frank and honest appraisals.
    • We've been using MySQL in a production operation for three years, and it's been bulletproof. We've been serving up financial data (50 tables, ~20million rows) in a heavy multi-user environment. We're running it on about 10 boxes right now. Compound indexes work well; everything is fine. My one caveat is that our app is mainly a read-only application which suits MyISAM's weak table locking scheme. However, MySQL 4.0 includes InnoDB which supports transactions and a robust locking scheme that has worked well

Beware of Programmers who carry screwdrivers. -- Leonard Brandwein

Working...