[Solved] MySQL - Can using reserved words as table names decrease performance?

EverSQL Database Performance Knowledge Base

MySQL - Can using reserved words as table names decrease performance?

Database type:

I know that doing something like this would be considered bad practice but if one were to create a table with fields like from, to, desc and did:

SELECT *

or

SELECT `from`, `to`, `desc`

With a massive data / result set would this have any kind of performance difference as opposed to using names like sent_from, sent_to, description?

How to optimize this SQL query?

The following recommendations will help you in your SQL tuning process.
You'll find 3 sections below:

  1. Description of the steps you can take to speed up the query.
  2. The optimal indexes for this query, which you can copy and create in your database.
  3. An automatically re-written query you can copy and execute in your database.
The optimization process and recommendations:
  1. Avoid Selecting Unnecessary Columns (query line: 2): Avoid selecting all columns with the '*' wildcard, unless you intend to use them all. Selecting redundant columns may result in unnecessary performance degradation.
The optimized query:
SELECT
        *

Related Articles



* original question posted on StackOverflow here.