Answer the question
In order to leave comments, you need to log in
Does it make sense to do an INDEX on a foreign key if the parent table has only 10-1000 records?
The parent table has a primary key of type TINYINT UNSIGNED or SMALLINT UNSIGNED.
Answer the question
In order to leave comments, you need to log in
Of course you do. And in general, you need to accustom yourself to search only for those fields on which the index is built. This is a good practice rule. Of course, either action or inaction will not affect performance or disk space, but in order to discipline yourself, this is necessary. This is my opinion based on life experience.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question