In databases, how do you determine whether making an index on one particular column is good, useless, or bad?

544 views

In databases, how do you determine whether making an index on one particular column is good, useless, or bad?

In: Technology

4 Answers

Anonymous 0 Comments

Are you sorting or looking up data by said column very often? If so it may be a good candidate for an index.

Indexes help the database search for values in the specified column. If the column needs to be searched often it makes sense to index it to speed that search up. If you only use it every once in a while or if the values don’t help with lookup that much (for instance columns that only have a few distinct values) then it may not be worth the time spent keeping the index correct.

You are viewing 1 out of 4 answers, click here to view all answers.