Gossamer Forum
Home : Products : Gossamer Links : Discussions :

mass deletion of duplicate links

Quote Reply
mass deletion of duplicate links
Hi there,

I've got a LinksSQL installation using DMOZ data from a fairly large category (over 300K links). Since I've done more than one import/update, I'm noticing that there are many (i.e. 1000s) cases where the same link (sometimes with a slightly different title) exists more than once in the same category. I have no problem with duplicate urls existing in different categories, but the same link should never appear more than once in the same category.

I tried using the "check duplicates" tool in the admin panel, but it would take hours and hours to go through it all manually.

To cut to the chase... I've been trying to come up with an SQL query that will simply go through and find every time the same url exists more than once in the same category and delete all but one of those links (preferably leaving only the one with the highest link ID). Easier said than done. Has anyone dealt with this before? Is there a way to do it with an SQL query, or do I need to write a script to do it for me?

Thanks for any ideas.

Fractured Atlas :: Liberate the Artist
Services: Healthcare, Fiscal Sponsorship, Marketing, Education, The Emerging Artists Fund
Subject Author Views Date
Thread mass deletion of duplicate links hennagaijin 3039 Mar 18, 2003, 9:24 AM
Thread Re: [hennagaijin] mass deletion of duplicate links
Paul 2967 Mar 18, 2003, 9:39 AM
Post Re: [Paul] mass deletion of duplicate links
webmaster33 2932 Mar 19, 2003, 7:40 PM
Thread Re: [hennagaijin] mass deletion of duplicate links
Paul 2962 Mar 18, 2003, 9:43 AM
Thread Re: [Paul] mass deletion of duplicate links
hennagaijin 2958 Mar 18, 2003, 10:00 AM
Post Re: [hennagaijin] mass deletion of duplicate links
Paul 2952 Mar 18, 2003, 10:02 AM
Thread Re: [hennagaijin] mass deletion of duplicate links
dregs2 2914 Mar 20, 2003, 12:44 PM
Thread Re: [dregs2] mass deletion of duplicate links
Paul 2942 Mar 20, 2003, 1:22 PM
Post Re: [Paul] mass deletion of duplicate links
dregs2 2911 Mar 20, 2003, 1:26 PM
Post Re: [Paul] mass deletion of duplicate links
dregs2 2930 Mar 20, 2003, 1:35 PM