an index is only useful if you're looking for a specific record/types of records. a good rule of t

an index is only useful if you're looking for a specific record/types of records.

a good rule of thumb is, if you're using a WHERE clause on anything other than the PRIMARY KEY on a query that runs often, it might be worth indexing it

if you had a column like
user_id
on
ProductData
, you could add an index for that column, and reduce your rows read when querying
ProductData
via
SELECT * FROM ProductData WHERE user_id = ?
Was this page helpful?