duplicate-index-column (GN032)#
Automatic fix is available.
What it does#
Checks for duplicate index column.
Why not?#
Having duplicate column in an index is redundant and unnecessary. Indexes are not free, they add an overhead to write operations, and having a column repeated does not add any benefit but rather unnecessary index maintenance and storage.
When should you?#
Never.
Use instead:#
Remove duplicate column from the index.