Category: Databases

  • Shaking things up

    It’s been a hectic week, and it’s only Tuesday.

    My wife and I recently made a decision to move on from MySQL. My passion is software development, and my experience doesn’t lend itself well to database development. Therefore, I’m returning to Amazon on Monday, if my intel is correct.

    Through a strange series of coincidences, my resume was submitted to the same group which I left 14 short months ago. I will be returning to HTML, JavaScript, Perl, shell script and a tad bit of Java development.

    It has been a pleasure working for and with MySQL AB. They make a wonderful database, and their support folks are top notch. I’ll miss them all. But heck, I can stay in touch just as easily as ever. That’s one nice thing about working in a virtual company: you learn to keep in touch by any means necessary.

    The roses are blooming. The lawn is mowed. Summer vacation starts Real Soon Now™, and I’ll be taking a train to work starting shortly.

    I’m going to be spending a lot less time with Scarlet and Hannah than either they or I are used to. It will be nice to separate work and home life, but it will also be difficult. Such are the problems with modern life, I guess…

  • New release of DBD::mysql (v3.0004)

    Patrick released a new version of the perl MySQL connector. This .pm was my introduction to the mysql world, way back in the day. If you can program your way out of a perl brown paper bag and you haven’t used this tool yet, I recommend you write a hello world program to get familiar with it. Good stuff.

    Dear DBD::mysql users,
    
    This announcement comes a few days late, but DBD::mysql version 3.0004
    (stable, production) and 3.0004_1 (dev) have been released!
    
    Version 3.0004 is the production version with server-side prepare
    statements turned off by default, and 3.0004_1 is the development
    version with server-side prepare statements turned on by default.
    
    The changes in 3.0004, as listed in the changelog:
      * Fix dbd_st_finish which closed the handle prematurely (Martin Evans)
      * Compile issues (Martin Evans)
      * Fix to dbd_bind_ph to deal with numbers (ints, floats) correctly
        (Alexey Stroganov)
      * Test changes - bind_param 41 and 42
    
    The changes to 3.0004_1 as listed in the changelog:
    
    * Fix dbd_st_finish which closed the handle prematurely (Martin Evans)
      * Compile issues (Martin Evans)
      * Small change to get utf8 data returned. One still has to:
          $dbh->do("set character set utf8");
          $dbh->do("set names utf8");
    
        to get utf8 back and even then you only get it back if the
        column is defined as utf8 in mysql.
      * Fix to dbd_bind_ph to deal with numbers (ints, floats) correctly
        (Alexey Stroganov)
      * Test changes - bind_param 41 and 42
      * Turned off 70takeimp test
    
    Note: to turn on server-side prepared statements, simply append
    ";mysql_server_prepare=1" to the connect string or via the driver
    handle. Please refer to documentation for further details.
    
    Notes:
    
    * The development (3.0004_1) version supports multiple result sets from
    stored procedures. Documentation and sample code (in the ./eg dir) is
    included on how to use multiple result sets. Also, the perldoc has
    information on multiple result sets.
    
    * To turn off server-side prepare statements to have emulated prepared
    statements, append ";mysql_emulated_prepare=0" in the connect string or
    via the driver handle.
    
    *As listed in the second changelog, this code is now much better at
    handling SQL statements that aren't supported in the prepared statement
    C API, and silently deals with determining whether or not to use the
    prepared statement calls.
    
    I really appreciate the help of Martin Evans, Alexey Stroganov, Henri
    Asseily, as well as the rest of the community in helping by giving
    patches and feedback about various issues with the driver. Thank you!
    
    NOTICE: Very soon, perhaps in a release or so, I intend to stabilise the
    dev release and make that the production release. This means that server
    side prepared statements will be turned on by default. I intend to test
    this thoroughly prior to making the switch, so that users don't have any
    problems when upgrading, when the time comes. This prepared statement
    API is only available with MySQL server versions 4.1 and above, so if
    you're using an older version, you won't notice anything. Though, be
    assured that even for the driver emulated handling of prepared
    statements, I will continue to make sure the code is improved.
    
    As the community, one think you can do if you are interested in helping
    is to turn on server side prepare statements in 3.0004, or try the
    development driver, 3.0004_1 to see if there are any problems. I've
    tested the code as much as I can, but I know nothing tests code like
    1000s of developers thinking of unique ways of using the driver that I
    never could have imagined. If you find a bug, please report it to me, or
    at http://bugs.mysql.com. I'll fix that bug and add test coverage for it.
    
    Coveati: Please make sure you don't use a threaded Perl with this driver
    on Solaris.
    
    Again, if anyone has any problems or questions with the driver, please
    feel free to email me, or especially post to dbi-users@perl.org , and if
    you find bugs, please report them to http://bugs.mysql.com
    
    These versions for this module can be found at CPAN:
    
    http://search.cpan.org/dist/DBD-mysql/
    
    The files:
    
    file: $CPAN/authors/id/C/CA/CAPTTOFU/DBD-mysql-3.0004.tar.gz
    size: 113043 bytes
    md5: 5d328b9fdaf899eba6d72258242ad0a0
    
    file: $CPAN/authors/id/C/CA/CAPTTOFU/DBD-mysql-3.0004_1.tar.gz
    size: 110175 bytes
    md5: 4dfbd956417f5b036ab55defb8fdfac7
    
    Kind regards,
    
    Patrick Galbraith
    
  • MaxDB Synchronization Manager User Report

    United Drugs had occasion to use the Synchronization Manager in production at this year’s convention. Mark Thomas (of United Drugs) and the MaxDB team at MySQL have been getting a use case document together to present the experiences. We had a great deal of help from the SyncMan dev team at SAP Berlin and Chris Hall of Just 4 Dental (who, by the way, also uses the Synchronization Manager in production).

    I think the document has come together well and does a good job of describing what the industry can expect out of the Syncronization Manager in its current form. It should also be noted that this document has been presented to SAP Berlin and that many of the issues that have been brought to light have been addressed in the most recent release of MaxDB, 7.6.00.27.

    So, with no further ado, let me present to you MaxDB Synchronization at United Drugs’ Annual Convention, A report on the usage of the MaxDB Synchronization Manager by Mark Thomas (United Drugs) and C.J. Collier (MySQL).

  • Interaction

    Hey all. Please comment on this entry. I’m trying to get an idea of who’s listening to what I say.

    Why do you read this blog? Are you interested in community wireless networks? OpenGL development on Linux? Family? Business Intelligence? Synchronizaton Manager news? Freecycle™ development? Random Perl bits? Something else I’ve forgotten about?

    I’m finding myself over-extended and I need to cut back on some of the things I focus on. Please let me know what is important to you so I know how best to re-organize my time, energy and other resources.

  • Goodbye, Peter Z!

    Today, we had a going-away lunch for one of the local MySQL guys, Peter Z.

    I had a picture taken.

    Goodbye photo

    From right to left: Peter, Karen, Kelly, Joe, Larry and yours truly.

  • New release of MaxDB: 7.6.00.27

    I’m happy to announce new releases of MaxDB 7.6. The Devs have put a lot of time and energy into this release and it addresses many issues. Take a look through the Change Log for some details.

    Grab a copy of the new release here:
    http://dev.mysql.com/downloads/maxdb/7.6.00.html

  • Contributed to PeterZ’s talk at MySQL UC 2006

    Hey, look! Peter mentioned me in his presentation at the UC this year.

    UC2006-MySQL-Performance-Landscape.pdf

    I let him use the Sunfire T2000 I borrowed from Sun (which I should return today) to generate some statistics for the talk.

  • Moved blog, took long weekend

    For those of you who want to hear me read this instead of having to do so yourself (no hyperlinks), click here for .ogg and here for .mp3.

    I migrated the blogs’ database and code from moonunit to avenger, both of which run Debian Sarge. Y’all should now notice a vast improvement in throughput. The ISP that Moonunit sits on should also see a large decrease in traffic.

    Today, I added a campaign to raise funds for hosting. If you have any extra funds, please help me with colocation costs. It’s expensive and y’all use up a bunch of bandwidth. If you find this site useful please support it financially.

    Today I’m looking into the syncmangui java code and getting my ducks in a row in order to make it *easy* to add bi-directional support for MySQL to the Synchronization Manager.

    I took a four-day weekend on Friday-Monday. I spent a bit of time playing with the computer, but most of the time was spent organizing the house and getting some spring cleaning accomplished. Sadly, Hannah got sick and we weren’t quite as productive as we would have liked.

    The thing from this weekend I consider most worth mentioning is DBMail. I hopped on the Courier IMAP server mailing list and announced my intention of building a database backend for the server and calling it MailDB. It seems someone already had that idea. It also seems that they have been doing a great job with it. It’s licensed under the GPL, and it’s being run in production. Next weekend, I plan on putting up an instance and migrating away from Maildir. I’ll let you all know how it turns out.

    Yesterday, I wandered up Everett Ave to do a site survey at the building on which I’m considering putting an antenna. It’s a pretty nice setup, and provided I can re-sell some of the bandwidth, it’s even affordable. That’s a big if, though :) This will be node 1 (indexed from 0) on the Everett Wireless Network, provided I end up getting the antenna mounted. I’ve got some paperwork to get back to the real estate guy before things are ready to go, though.

    I’m returning that T2000 server to Sun. It was nice and performed well. I strongly recommend it to businesses able to lay down the cash. It seems like it will scale well: low power consumption, large amounts of memory, and an adequate set of processors. Peter Z. ran some benchmarks on it and presented them (along with many others) in his talk at the MySQL Users’ Conference this year.

    Alright… that’s all I have for now :)

  • Trip to Microsoft on 2006/05/02

    I went to Microsoft with Arjen the other day. We talked with Eric Lippert about some new features of C# 3.0 and how MySQL might integrate itself more deeply into the Microsoft Development Environment.

    More details if anyone makes noise about being interested.

  • MySQL Meetup 2006/05/01

    Hannah, Scarlet and I attended the Seattle Meetup, since we heard Arjen was planning on being in town. We went to the normal location, but the owner told me they were closed due to their entire staff being involved in the civil rights march.

    We arrived to a table full of the regulars. Breadsticks, pizza, calzones, salad, lasagna and the screams of a well-missbehaved young girl ensued. I spoke for a while with Rob Lanphier, formerly of Real. I met Rob via email a while ago, but every time I’ve met him face-to-face since (including last weekend’s LinuxFest) I’ve forgotten who he was. Again, I apologize Rob :)

    Wez was wearing a “tag” shirt, which I didn’t understand until he mentioned metadata. Ah. I have recently added a tag category to my blog. All I need to do now is start podcasting about podcasting, and I’ll be set!

    I didn’t get a chance to talk much with Joe, sadly.

    Hannah and Arjen got a chance to talk about the t-shirt she recently helped MySQL AB bring back from the grave. Today, Arjen showed me a photo of someone wearing it, and it looks very good.

    I only caught snippets of Brian and Arjen’s discussion at the other end of the table. Scarlet was not having any of the sitting quietly and allowing the grown-ups to have all the fun bit.

    I brought up my recent (and ongoing) work on/with the MaxDB Synchronization Manager. There were sniggers and grunts about “real databases” that I think I’ve heard jocularly thrown about by the postgres community. We discussed the internals of the maxdb kernel (pascal) and how the codebase has coped with the decades.

    Scarlet and I sat in the large window in the back room of Piecora’s and giggled for a while. She stood on her head and giggled some more. She was very happy, in part because Hannah and I gave her some of the ginger ale we ordered. She also seemed happy with the company.