Hi all, We have been using SQL quarantine at our site for about two weeks. The version of MySQL we are using is 4.1.7 with InnoDB. As of today we have about 370,000 records in msgrcpt table.
Now we are trying to purge messages that are more than a week old using the queries that Mark suggested in his README.sql file: 1. DELETE FROM msgs WHERE UNIX_TIMESTAMP()-time_num > 7*24*60*60; 2. DELETE quarantine FROM quarantine LEFT JOIN msgs USING(mail_id) WHERE msgs.mail_id IS NULL; 3. DELETE msgrcpt FROM msgrcpt LEFT JOIN msgs USING(mail_id) WHERE msgs.mail_id IS NULL; 4. DELETE FROM maddr WHERE NOT EXISTS (SELECT sid FROM msgs WHERE sid=id) AND NOT EXISTS (SELECT rid FROM msgrcpt WHERE rid=id); The 3rd query took about 12 min. to complete. The last query took so long that the shell session timed out. Has anyone experienced the same type of performance issue? I would appreciate any input. Thanks in advance. Sam ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r _______________________________________________ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/