Latest in branch 5.2
5.2.14
Released 28 Jan 2013
(13 years ago)
SoftwareMariaDB
Version5.2
Status
End of life
Initial release5.2.3
09 Nov 2010
(15 years ago)
Latest release5.2.14
28 Jan 2013
(13 years ago)
Community EOL10 Nov 2015
(Ended 10 years, 7 months ago)
Enterprise EOL10 Nov 2015
(Ended 10 years, 7 months ago)
Extended EOL10 Nov 2015
(Ended 10 years, 7 months ago)
Release noteshttps://mariadb.com/kb/en/mariadb-5214-release-notes/
Source codehttps://github.com/mariadb/server/tree/mariadb-5.2.14
Documentationhttps://mariadb.com/kb/en/documentation/
MariaDB 5.2 ReleasesView full list

What Is New in MariaDB 5.2

MariaDB 5.2 introduces a set of focused enhancements, primarily improving performance and expanding functionality for specific use cases. The key additions include new storage engines, optimizer improvements, and better replication features.

Category Key Changes
New Features OQGRAPH Engine, Segmented MyISAM Key Cache, Pluggable Authentication
Performance & Improvements Subquery Optimizations, Extended User Statistics
Replication Multi-threaded Slave Support

What are the major storage engine changes?

The OQGRAPH computation engine is the standout addition. This lets you handle complex graph computations, like finding the shortest path between nodes, directly in the database with SQL queries. In practice, this is useful for building features like friend recommendations or network analysis tools without moving data to an external system.

Another significant change is the Segmented Key Cache for MyISAM. This splits the key cache into multiple segments, reducing contention from concurrent threads. This matters because it can lead to a noticeable performance boost on multi-core systems with heavy MyISAM read workloads.

How was the query optimizer enhanced?

Subquery optimizations are a major focus. The engine now executes certain types of subqueries more efficiently, which can drastically speed up complex queries that were previously slow. If you've ever had a report query hang because of a poorly optimized subquery, this upgrade will help.

Extended User Statistics is another key feature. It provides much more detailed metrics about user activity, like table and index usage per user. This is invaluable for DBAs who need to diagnose performance issues and understand exactly which queries are consuming the most resources.

What about replication improvements?

MariaDB 5.2 lays the groundwork for multi-threaded slaves. This is a crucial step towards improving replication performance on servers with multiple cores, allowing slaves to apply transactions from different databases in parallel. While the full implementation came later, this version starts the process of reducing replication lag.

Were there any security updates?

Yes, the Pluggable Authentication interface was added. This allows for much more flexibility in how users are authenticated to the database. You can now integrate with external authentication systems beyond the built-in methods, which is essential for fitting into custom enterprise security setups.

FAQ

What is the OQGRAPH engine used for?
The OQGRAPH engine is designed for performing graph computations. You can use it to execute queries that find the shortest path between two points or discover all connections within a network, all using standard SQL syntax.

Does the segmented key cache help with InnoDB?
No, the segmented key cache feature is specifically for optimizing MyISAM storage engine performance by reducing lock contention on the key buffer.

Can I use multi-threaded replication in this version?
MariaDB 5.2 includes the initial support for the feature, but the full, more robust implementation of multi-threaded replication (based on domains) was completed in later versions like 10.0.

How do the subquery optimizations work?
The optimizer transforms certain inefficient subqueries into more efficient joins or semi-joins during execution, which can lead to significant performance improvements for complex queries.

Is Pluggable Authentication backward compatible?
Yes, the pluggable authentication system is an extension that maintains full compatibility with existing authentication methods while allowing new ones to be added.

Releases In Branch 5.2

VersionRelease date
5.2.1428 Jan 2013
(13 years ago)
5.2.1322 Nov 2012
(13 years ago)
5.2.1205 Apr 2012
(14 years ago)
5.2.1130 Mar 2012
(14 years ago)
5.2.1003 Dec 2011
(14 years ago)
5.2.916 Sep 2011
(14 years ago)
5.2.816 Aug 2011
(14 years ago)
5.2.713 Jun 2011
(14 years ago)
5.2.610 May 2011
(15 years ago)
5.2.501 Mar 2011
(15 years ago)
5.2.405 Dec 2010
(15 years ago)
5.2.309 Nov 2010
(15 years ago)
5.2.2-gamma27 Sep 2010
(15 years ago)
5.2.1-beta17 Jun 2010
(15 years ago)
5.2.0-beta08 Apr 2010
(16 years ago)