Subscribe to the
Percona Newsletter

Subscribe Now!
  Thursday, December 8, 2016    Federico Razzoli

Please join Federico Razzoli, Consultant as he presents "Virtual Columns in MySQL and MariaDB".

MariaDB 5.2 and MySQL 5.7 introduced virtual columns, with different implementations.

Their features and limitations are similar, but not identical. The main difference is that only MySQL allows you to build an index on a non-persistent column.

In this talk we'll present some use cases for virtual columns, such as query simplification and UNIQUE constraints based on an SQL expression. In particular, we will see how to use virtual columns to index JSON data in MySQL, or dynamic columns in MariaDB.

Performance and limitations will also be discussed.

About the Author

Federico Razzoli

Relational databases lover and open source supporter. I wrote "Mastering MariaDB" in 2014, and I was a MariaDB Community Ambassador. Currently I work at PayProp.