MariaDB Performance & Tuning

Course Code: MARDBAPT

Duration: 2 days

 
 
 
 

MariaDB Performance & Tuning Course Overview

This MariaDB Performance & Tuning course is designed for Database Administrators, Application Developers and Technical Consultants who need to monitor and tune the performance of MariaDB servers and databases.

The course provides practical experience in monitoring and tuning MariaDB servers and databases.

Exercises and examples are used throughout the course to give practical hands-on experience with the techniques covered.

Versions supported 10 and 11.

Like most database software, MariaDB can benefit from performance tuning. By adjusting certain settings and configurations, the speed and responsiveness of your databases can be improved. This can lead to improved overall performance of your applications and a better user experience. Optimized database performance also can help reduce hosting costs by getting the most out of the hardware that is available within the existing infrastructure.

In this course, we will cover some of the most important aspects of tuning MariaDB for high performance.

Course Objectives

To provide the skills necessary to monitor and tune MariaDB database performance.

Who will the Course Benefit?

Anyone who needs to monitor and tune the performance of MariaDB databases.

Course Notes

This MariaDB Performance & Tuning course does not cover clustering (other than at an overview level) or replication.

Skills Gained

The delegate will learn and acquire skills as follows:

  • Hardware optimization
  • Operating system optimization
  • Using monitoring and diagnostic tools
  • Using the Information Schema and Show commands to collect data for tuning
  • Understanding the Performance tuning tools that are available/li>
  • Using load generation, stress testing and benchmarking tools
  • Using server configuration and status variables
  • Understanding the output from the Explain command
  • Optimizing queries
  • Making efficient use of indexes
  • Monitoring and sizing memory caches
  • Tuning the InnoDB storage engine
  • Comparing and tuning dump and load performance
  • Evaluating the use of partitioning to improve performance

MariaDB Performance & Tuning Training Course

Course Introduction

  • Administration and Course Materials
  • Course Structure and Agenda
  • Delegate and Trainer Introductions

Session 1: INTRODUCTION TO PERFORMANCE TUNING

  • Tuning Overview
  • Hardware optimization
  • Increase RAM and use faster RAM
  • Use more CPU cores
  • Use a clustered database
  • Optimize the operating system
  • Use indexes to improve performance
  • Optimize queries
  • Optimize tables
  • Assign suitable memory allocations
  • Set values for system variables that affect performance
  • Use benchmarking tool

Session 2: MARIADB PERFORMANCE TUNING TOOLS

  • Tools that can assist with performance tuning
  • The Information Schema
  • Performance-related SHOW Commands to collect data for tuning
  • Tools that can be used to benchmark databases
  • Common benchmarks to use
  • The BENCHMARK() function
  • The mariadb-slap client load emulator
  • Use session status variables to determine statement usage
  • Use SHOW PROFILE to profile queries
  • Obtaining performance information through the Performance Schema
  • Obtaining performance information through the SYS Schema

Session 3: STATEMENT TUNING

  • Overview of Statement Tuning
  • Identifying and improve problem queries
  • The Optimizer
  • Understand the output from the Explain command
  • Monitor queries using the Information Schema Processlist table
  • Optimization strategies
  • Optimizations for derived tables
  • Filesort with small LIMIT optimization
  • Limit rows examined
  • Query limits and timeouts
  • Abort statements that exceed a specific time to execute

Session 4: INDEXES

  • An overview of MariaDB indexes
  • Types of MariaDB indexes
  • Make efficient usage of indexes
  • Assess the size of an Index
  • Resolve queries without accessing some tables referred to in the query
  • Force query plans using index hints
  • Find rows in a table using named indexes
  • Ignore indexes using an index hint
  • How indexes impact table joins
  • InnoDB Cached Indexes Information

MariaDB Performance & Tuning Training Course

Session 5: SERVER CONFIGURATION AND MONITORING

  • Set suitable values for server configuration variables
  • Use server status variables to monitor performance
  • Use table caching
  • Store key distributions for a table with the ANALYZE TABLE command
  • Reclaim unused space and defragment data with the OPTIMIZE TABLE command
  • Use multi-threading
  • Solve connection issues
  • Query Cache

Session 6: THE INNODB ENGINE

  • Transactions
  • Monitoring InnoDB locks in MariaDB
  • MariaDB disable deadlock detection
  • Monitor the performance of the InnoDB engine
  • Set and monitor caches and buffers
  • Configuring data files for performance
  • Configuring the log files for performance

Session 7: OVERVIEW OF CLUSTERING AND PERFORMANCE

  • Advantages Performance Advantages of Clustering
  • Performance Issues and Clustering
  • The Galera Cluster
  • The Percona XtraDB Cluster
  • The FederatedX Engine

Session 8: DUMPING AND LOADING DATA

  • SQL statements versus delimited data
  • Parameters affecting dump performance
  • Parameters affecting load performance
  • Exercises: Dump and load performance

Session 9: PARTITIONING TABLES FOR PERFORMANCE

  • The concept of partitioned tables
  • How partitioning can improve performance
  • Hash partitioning
  • Key partitioning
  • List partitioning
  • Composite partitioning or subpartitioning
  • Partition Pruning
  • Adding, dropping and coalescing partitions
  • Convert a non-partitioned table to a partitioned table
Notes:
  • Course technical content is subject to change without notice.
  • Course content is structured as sessions, this does not strictly map to course timings. Concepts, content and practicals often span sessions.

Requirements

Delegates must have a working knowledge of MariaDB Database Administration.

This course is run on a Linux operating system, a basic knowledge of Linux/UNIX is recommended but is not essential.

Pre-Requisite Courses

Further Learning

Public Scheduled Events

Classroom & Live Virtual Instructor-Led Training

Duration: 2 days

Price: £1,100.00 exc. VAT 


Start Date Options Spaces  
05 Dec 2024
StayAhead Virtual Courses available 
Spaces Book Now 
10 Feb 2025
StayAhead Virtual Courses available 
Spaces Book Now 
22 Apr 2025
StayAhead Virtual Courses available 
Spaces Book Now 
23 Jun 2025
StayAhead Virtual Courses available 
Spaces Book Now 
22 Sep 2025
StayAhead Virtual Courses available 
Spaces Book Now 
 

Live Virtual Classroom

 
Join live instructor-led classroom training from the comfort of your home or office.
All the convenience and benefits of the classroom experience without the hassle and costs of travel and accommodation.
 
 



Our Customers Include

 
EDF
Amazon
American Express
Aviva
QA
BAE
University of Cambridge
Barnardo's
Scottish Government
Bauer
Bloomberg
BP
HSBC
DVLA
GlaxoSmithKline
Government Campus
Capita
Tui
NHS
Ordnance Survey
Ministry of Defence
Zurich Insurance Group
trainline
Vodafone
 
 



Our Course Curriculum

 
 
 
+44 (0)20 7600 6116
Enquiries@StayAhead.com
Copyright © 2024 StayAhead Training Ltd
Cookies   /   Privacy Policy