Over a million developers have joined DZone.

MariaDB 5.1 Open For Testing

· Database Zone

Build fast, scale big with MongoDB Atlas, a hosted service for the leading NoSQL database. Try it now! Brought to you in partnership with MongoDB.

Monty Widenius' MariaDB fork of MySQL took another step in development today.  MariaDB 5.1, which is based on MySQL 5.1.41 is now available in release candidate form for download and testing.  Widenius, a founder of MySQL, said the release had a four month beta cycle and the development team is confident that the RC is very stable.  The 5.1 release adds more databases and it includes 'pool of threads' and 'table elimination' features.

According to the project wiki, the goal of Maria is to make a crash-safe alternative to MyISAM so that when mysqld restarts after a crash, Maria recovers all tables to the last state at the start of a statement or at the start of a LOCK TABLES.  Maria isn't transactional yet, but it's long-term goal is to add that support and become the default transactional and non-transactional storage engine for MySQL.

In MariaDB 5.1.41, XtraDB now replaces InnoDB.  This will give users most of the performance gains coming in MySQL 5.4 today.  Some benchmarks from the MySQL Performance Blog show XtraDB outperforming InnoDB by a significant margin.  XtraDB also has Google and Percona enhancements built-in so there's no need to load it as a plugin.

The PrimeBase XT transactional engine is another new storage engine included in MariaDB 5.1.  It has a unique "write-once" update strategy and MVCC (multi-version concurrency control) to provide optimal performance over a wide range of tasks.  Finally, replacing the old, unmaintained Federated engine from Sun is the FederatedX storage engine.

The pool of threads feature, based on code from the canceled MySQL 6.0 release, has been added to MariaDB.  Pool of threads lets users designate a limited set of threads to handle all queries and allows more than the usual 'one-thread-per-connection'.  It's very helpful if there are a lot of database connections being used or there are a lot of short-lived queries.  Table elimination is a new feature that optimizes certain types of joins.  The basic idea behind table elimination is that sometimes it is possible to resolve a query without even accessing some of the tables that the query refers to.

MariaDB 5.1.41 has several patches from the MySQL community including Microslow and Microsec from Percona.  MariaDB 5.1 also added the following extensions:

  • MariaDB can handle up to 32 key segments per key (up from 16)
  • Added a new handler function: prepare_index_scan() that is called before a key scan is done.
  • Added --abort-source-on-error to the mysql client.

Finally, speed improvements and bug fixes were added to MariaDB, and now the development team is looking for feedback before the final release.

Now it's easier than ever to get started with MongoDB, the database that allows startups and enterprises alike to rapidly build planet-scale apps. Introducing MongoDB Atlas, the official hosted service for the database on AWS. Try it now! Brought to you in partnership with MongoDB.


The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}