Mysql optimization

From wikinotes
Revision as of 16:50, 6 March 2021 by Will (talk | contribs) (→‎Test adding Index)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Timing Queries

Test adding Index

Rather than a JOIN or IN/NOT IN,
substitute values for the primary-key values and time it.

Limit Records

The more records included, the slower the query. If you can limit by a date-range that helps a lot.