Optimizations for derived tables

You are viewing an old version of this article. View the current version here.

Derived tables are subqueries in the FROM clause. Prior to MariaDB 5.3/MySQL 5.6, they were too slow to be usable. In MariaDB 5.3/MySQL 5.6, there are two optimizations

  • Derived table merge
  • Automatic derived table indexing

which provide adequate performance.

Derived merge optimization

The idea

See also

Optimizing Subqueries in the FROM Clause in MySQL 5.6 manual

Comments

Comments loading...
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.