Let's consider that I have a table with 60 columns, I need to execute all kinds of queries in this table, and I need to also join this table with other tables. And I almost use all the rows to find the data in this table, including other tables. This table is similar to the main table (for example, the primary key) in the database. Thus, the entire table refers to this table. After reviewing the above scenario, I can create an index for each column of the table (60 columns), is this good practice?
In one sentence:
Is it best practice to create index on each column in a table ? What might happens if I create index on each column in a table?
If the index can be “Primary Key,” “Unique Key,” or “Index”
Please comment if this question is not clear to you, I will try to improve this issue.
source share