Yes, it can have an effect.
Of course, two indexes take up additional disk space, as well as memory, if used.
But they also make the query optimizer do more work to calculate the benefits of each index during each SELECT. The more indexes you have, the more cases you have to compare. Thus, he expects to eliminate truly redundant indexes.
As others noted, indexes are updated during INSERT / UPDATE / DELETE operations, so the more indexes you have, the more overhead. Indexes that get a lot of benefits justify their own overhead, but duplicate indexes require more overhead without bringing additional benefits to match.
If you're interested, the Percona Toolkit has the pt-duplicate-key-checker tool that searches all your tables for such cases.
Bill karwin
source share