Hello. I have a MySQL database in which some of the tables have 2 indexes on the same column. Here's an example of what I mean:
CREATE TABLE `posts` (
`pid` int(10) unsigned NOT NULL auto_increment,
`message` text NOT NULL,
PRIMARY KEY (`pid`),
KEY `pid` (`pid`)
) TYPE=MyISAM;
In an attempt to make the database more efficient, someone added more indexes, even on columns that were already primary keys.
What effect does this have on the database? If the extra keys aren't helping, can I safely delete them without affecting my data? For example:
ALTER TABLE posts DROP INDEX pid;
Thanks in advance. BTW, nice forums you've got here!