Would deleting old data from my tables improve MySQL query performance?
- When my queries use indexes?
- When my queries don't use indexes?
- When I use InnoDB?
- When I use MyISAM?
After you delete old data, don't forget to optimize tables. (optimize table table_name;)
Maybe. It depends on many things, not all of them related to the factors you've listed above, including how many rows/much data you will be deleting and how much of your total data that represents, how normalized your data is and how many joins your queries perform, how well your queries are written, and probably several other factors.
EDIT: As an aside, it's better to scale to meet the data you have (e.g., by optimizing queries, adding or modifying indexes, upgrading hardware, etc.) than to scale back the data to meet the limitations of your system. There are exceptions, such as if the data you're deleting is itself a potential liability, like personal, financial, or health data that you are certain you have no further legitimate use for.