I have noticed that there are many duplicate ZIP Code entries in the Dolphin database. in fact there are 354,478 duplicates in th UK zipcodes alone, this takes up space in the database and can slow search by distance.
Here is how I have removed the duplicate entries if anyone is interested.
You will need to run 3 queries on your database but always backup your database before making changes. go to your databse in PHPMyAdmin.
Step 1:
Move the non duplicates (uniques) into a temporary table with this query:
CREATE TABLE ZIPCodes2 AS
SELECT * FROM ZIPCodes WHERE 1 GROUP BY ZIPCode;
Step 2.
We no longer need the table with all the duplicate entries, so drop it! with this query:
DROP TABLE ZIPCodes;
Step 3.
Rename the new_table to the name of the old_table with this query:
RENAME TABLE ZIPCodes2 TO ZIPCodes;
now all duplicate entries are gone. check the amount of lines before and after in the ZIPCodes table, there is a huge difference. also, if you have many country zipcodes installed, you will need to be patient as it can take some time to move the entries from the old table to the new one.