How to Avoid Full Table Scans


The output from EXPLAIN shows ALL in the type column when MariaDB uses a full table scan to resolve a query. This usually happens under the following conditions:

For small tables, a table scan often is appropriate and the performance impact is negligible. For large tables, try the following techniques to avoid having the optimizer incorrectly choose a table scan:

Retornar