For example there is a table with columns: ColumnA, ColumnB, ColumnC, ColumnD
And there are several selects with where clause on:
ColumnA, ColumnB, ColumnC
ColumnA, ColumnC, ColumnD
ColumnA, ColumnB, ColumnD
The goal is to speed up these queries. But I don't want to create multi columns indexes for all columns combinations, because it will take a lot of place and may slow down the system.
Is there a sense to create an index just for ColumnA? Will it improve the queries performance?
Thanks
select
but if they are part of a condition in thewhere
clause. – a_horse_with_no_name