In my replica set mongodb cluster
, a read
query could occur:
- either on column1
- or on column2
- or on combination of column1 and column2
- or on combination of column1 and column3
- or on combination of column2 and column3
- or on combination of column1 and column2 and column3
Would it make sense to create 6 indexes for each case above or there is an efficient way to club these under lesser number of indexes?