Slides for the presentation at SCaLE 12x Conference (21 Feb 2014)
A quick introduction to popular plug-ins for MySQL/MariaDB and ideas for how to use plug-ins to supercharge MySQL/MariaDB.
2. Plug-ins types for MySQL / MariaDB
Audit
Authentication
Daemon
Full-text Parser
Information Schema
Replication
Storage Engines.
3. Plug-ins allow the server to be extended
in a controlled manner.
(third-party plugin types do exist too)
4. Plug-ins for Storage
InnoDB Storage Engine
Everyone should be using it by default.
Default in recent releases of MariaDB and MySQL
TokuDB Storage Engine
Supports sustained inserts better.
Available in MariaDB.
5. Plug-ins for Storage
OQGraph Engine
Search shortest path on modest graphs.
More than 100k nodes/second search possible.
Sphinx Engine
Connects to distributed full-text search engine.
Connect Engine (MariaDB)
FederatedX Engine (MySQL)
7. Information Schema Plugins:
Easier to write than Storage Engine plugins.
Can be used to bring in static data.
Can be used to bring in simple dynamic data.
15. How to supercharge MySQL/MariaDB?
Reducing the number of round-trips.
Stored Procedures are tricky to debug.
16. How to supercharge MySQL/MariaDB?
Reducing the number of round-trips.
Stored Procedures are tricky to debug.
No external stored procedures in MySQL
but ...
20. Daemon Plugins:
Do:
Lightweight processing.
Data validation.
Serve other protocols.
Do Not:
Create many threads.
“number crunching”.
Database
storage engines, such
as InnoDB *assume* that
they are the only service
on a machine!