The first public release of MySQL 5.1 is available now. The MySQL 5.1.3 alpha release is a developer preview that gives early adopters, fans, and hard-core database geeks a chance to kick the tires of the next big release.

Major new features include:

Partitioned tables. You can have single tables spread across multiple disks based on how you define them at table creation time.

A Plugin API and support for dynamically loading new modules of code into the server. The first example of this is pluggable full-text parsers. That means you'll be able to write a custom parser to index any sort of oddball textual data you might want to store and retrieve. MySQL still handles the details of executing the queries, so you need only worry about the specifics of parsing your data.

The instance manager has been beefed up with additional SHOW commands for getting at information about log files. You can also issue SET commands that change configuration options which get written back to the configuration file.

VARCHAR fields on cluster tables really are VARCHAR fields now.

And there's lots more. The MySQL documentation, as always, has the gory details.

Posted by jzawodn at December 02, 2005 07:16 PM

Reader Comments
# jim winstead said:

the bit about VARCHAR fields is specifically about cluster. earlier versions would always allocate space for the full possible length, now it only allocates as much space as the value actually needs. other storage engines had no such issue.

on December 2, 2005 07:27 PM
# Jeremy Zawodny said:

Ack, I mis-read that twice.


on December 2, 2005 07:34 PM
# Zach said:

hey a lil birdy told me u needed gmail invites and i ahve 99 i'll nvr use.

on December 2, 2005 07:54 PM
# Nick Arnett said:

So... I've been looking forward to partitioning, as it would seem to help a great deal with time-series data, which I'm always dealing with. Am I right that it would make sense to partition by date, putting old data (data that's not part of current analysis) to lower-performance hardware, leaving it available (but slow) when we want to analyze the historical data? And as a lovely side-effect, the speed of analyzing current data would go up, since it would be smaller? I've done nothing (except write this comment) to see how others use partitioning on other DBMSs.

on December 3, 2005 10:25 AM
# Lukas said:

There are different ways of partitioning. Whatyou are talking about is RANGE based partitioning:

on December 4, 2005 03:15 AM
# Gris Tuckker said:

How we can able to write a custom parser to index any sort of oddball textual data..??

on December 5, 2005 07:56 AM
# Dutch Rapley said:


Yes and No. Initially, I would tell you that what you are talking about is archiving your data, which puts it on separate physical hardware. MySQL partitioning won't allow you to partition across multiple servers, just across partitions in your filesystem. But... I would assume that you could fake out MySQL. You could mount and directory from slower hardware to your MySQL server, via NFS. By having this NFS mount as "part" of your local filesystem on your MySQL server, you should be able to include the local path to the mount for partitioning purposes, in essence, allowing you to actually push data to the lower-performance hardware.

I'll mention another possible scenario. Let's say you have a server with 6 hard drives. You could create two Raid 5 devices across 3 drives each. You would then partition the filesystem for your OS accordingly. By having your filesytem, and MySQL data, spread across two separate storage devices, I would imagine that you could accomplish a phenomenal increase in peformance, in the instance that you are actually paritioning based on date.

on December 6, 2005 06:21 AM
# Poker said:

Nice blog.

on December 10, 2005 04:18 AM
Disclaimer: The opinions expressed here are mine and mine alone. My current, past, or previous employers are not responsible for what I write here, the comments left by others, or the photos I may share. If you have questions, please contact me. Also, I am not a journalist or reporter. Don't "pitch" me.


Privacy: I do not share or publish the email addresses or IP addresses of anyone posting a comment here without consent. However, I do reserve the right to remove comments that are spammy, off-topic, or otherwise unsuitable based on my comment policy. In a few cases, I may leave spammy comments but remove any URLs they contain.