If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > MySQL Dedupe Performance

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-13-06, 02:16
RogerWilco RogerWilco is offline
Registered User
 
Join Date: Oct 2003
Posts: 268
MySQL Dedupe Performance

MySQL 4.1.19 running on shared hosting service (I don't have access to upgrade)

I am doing a simple dedupe query on a table with ~8000 records. Should be very simple. I try a simple query before I do the delete (to double check), and it takes hours before I kill. Very simple:

Code:
SELECT *
FROM MyTable
LEFT OUTER JOIN (SELECT MIN(ID) AS ID FROM MyTable GROUP BY Name) AS GoodIDs ON (MyTable.ID = GoodIDs.ID)
WHERE GoodIDs.ID IS NULL;
I can do EXPLAIN and SHOW STATUS but I don't know what to look for. Any ideas are greatly appreciated.

Thanks!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On