Skip to main Content

MariaDB Performance & Tuning

  • Course Code MARDBAPT
  • Duration 2 days

Additional Payment Options

  • GTC 22 inc. VAT

    GTC, Global Knowledge Training Credit, please contact Global Knowledge for more details

Public Classroom Price

£1,100.00

excl. VAT

Request Group Training Add to Cart

Course Delivery

This course is available in the following formats:

  • Company Event

    Event at company

  • Public Classroom

    Traditional Classroom Learning

  • Virtual Learning

    Learning that is virtual

Request this course in a different delivery format.

Course Overview

Top

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 Schedule

Top

Target Audience

Top

Who will the Course Benefit?

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

Course Objectives

Top

Course Objectives

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

Course Content

Top

MariaDB Performance & Tuning Training Course

Course Contents - DAY 1

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

Course Contents - DAY 2

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

Course Prerequisites

Top

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.

Follow on Courses

Top

Further Learning

  • Apache Web Server