I have a table with several indexes, some of which duplicate the same columns:
Index 1 columns: X, B, C, D Index 2 columns: Y, B, C, D Index 3 columns: Z, B, C, D
I am not very good at indexing in practice, so I wonder if anyone can explain why X, Y, and Z were paired with the same columns. B is the date of entry into force. C is the semi-indicative key identifier for this table for a specific effective date of B. D is a sequence that identifies the priority of this entry for identifier C.
Why not just create 6 indexes, one for each X, Y, Z, B, C, D?
I want to add an index to another T column, but in some contexts I will only query T, while in others I will also specify columns B, C and D ... so I only have to create one index as above Or should I create one for T and one for (T, B, C, D)?
I didnβt have as much luck as expected when googling for comprehensive coverage of indexing. Any resources where I can get an end-to-end explanation and lots of examples of indexing a B-tree?
sql oracle indexing
aw crud
source share