On July 6, 2021, MariaDB 10.6 became generally available (production ready). This presentation focuses on the most important aspects of it as well as the influence it has. Improvements to InnoDB, SYS Schema Adoption, and deprecated variables and engines are all part of this presentation.
Exploring the Future Potential of AI-Enabled Smartphone Processors
What is new in MariaDB 10.6?
1. What is new in MariaDB 10.6 ?
Karthik P R
CEO, Mydbops
July 17, 2021
Mydbops Database Meetup
2. Interested in Open Source Database technologies
11 Years of Experience with MySQL
Ex-Yahoo!
Tech Speaker/ Blogger
CEO Mydbops
Karthik P R
About Me
3. Services on top open source databases
Founded in 2016
50 Member team
Assisted over 500+ Customers
AWS Partner and a PCI Certified Organisation
About Mydbops
9. Open Source RDBMS
Fork of MySQL
One of the top 10 RDBMS ( DB Engine Ranking )
Products
MariaDB Server
Maxscale ( Load Balancer )
MariaDB Columnstore ( Analytics )
MariaDB Xpand ( Distributed SQL )
MariaDB in Open Source Ecosystem
14. Atomic DDL
SKIP LOCK
SQL OFFSET & FETCH Support
JSON Table
Ignored Indexes
Sys Schema Support
InnoDB Improvements
Replication / Galera Improvements
What is new in MariaDB 10.6 ?
15. Atomic DDL's
Implementation
In MariaDB 10.6 DDL's are crash-safe.
Ensure tables are consistent and no temporary tables on Disk during crash.
Support all Storage Engine
Uses ddl_recovery.log for tracking.
Track the temporary tables and have backup of .frm files
--log-ddl-recovery ( location of log file )
16. Simulating DDL Recovery :
Load the data using sysbench and try creating an Index. Crash the MySQL during DDL.
Index : CREATE INDEX k_4 ON sbtest. sbtest1;
DDL Recovery log File ( While DDL is on Process )
17. During the crash recovery a ddl_recovery-backup.log is generated at startup.
DDL Recovery log File ( While DDL is on Process )
19. SKIP LOCKED & NOWAIT
Example
SELECT * FROM t FOR UPDATE SKIP LOCKED;
SELECT * FROM t FOR UPDATE NOWAIT;
It is similar to MySQL 8.0 ( Skip locked and nowait )
Used with "FOR UPDATE"
Helpful in handling locks on Hot tables
Uses The Key Word ( SKIP LOCKED and NOWAIT ).
20. SKIP LOCKED & NOWAIT
Simulating Skip locked and Nowait:
23. OFFSET
FETCH
Returns the ROWS after a specified offset. ( Skip Rows )
Number of ROWS to be returned.
ONLY & WITH TIES Supported ( with Ordering )
SQL OFFSET & FETCH Support
a
1
2
3
4
5
6
7
8
8
10
11
OFFSET 3 ROWS
FETCH NEXT
4 ROWS
26. Note :
Primary Key can't be made ignored ( invisible ).
Ignored Indexes
An index can be made ignored by the optimizer ( Invisble ).
Keywords "IGNORED" and "NOT IGNORED".
Helpful in dropping the Unused Indexes safely.
The optimizer may depend on the index stats without using them
Re-Creating an index time consuming once dropped.
Ignored Indexes
28. Sys Schema was added in 10.6
More useful in Analysis and Troubleshooting.
Replication Instrumentation ( Performance schema 5.7 )
Assists in Parallel Replication ( Applier )
Sys Schema and Performance Schema
29. Faster Empty table data loading ( Bulk inserts )
Much optimized Single undo log.
COMPRESSED ROW Format is made as Read-only by default.
Temporary tablespace is omitted from buffer pool flush list
Many InnoDB Variables were deprecated ( cleanup )
Innodb_page_cleaners
innodb_buffer_pool_instances and more
InnoDB Improvements
31. TokuDB was deprecated by upstream in favor of Rocks DB.
Cassandra is non-functional and development is stopped.
Engines
TokuDB
CassandraSE
Deprecation