Summary: | Very slow emptying huge trash folder | ||
---|---|---|---|
Product: | [Unmaintained] kmail | Reporter: | Julian Seward <jseward> |
Component: | maildir | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | ||
Priority: | NOR | ||
Version First Reported In: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Julian Seward
2006-08-09 15:43:44 UTC
IIUC then this is a local trash folder, right? Moreover, I assume it's a maildir folder. I suggest using message expiration to control the number of messages in your trash folder. Then messages which are older than a specified amount of days will be deleted automatically. The deletion happens periodically in the background so each time only a small number of messages will be deleted. As for the db engine, in KDE 4 we'll use one in our new backend. > IIUC then this is a local trash folder, right? yes. On a local IDE disk with no obvious performance problems, on a 1.7 GHz P4 with 1G memory. > Moreover, I assume it's a maildir folder. yes > As for the db engine, in KDE 4 we'll use one in our new backend. That would be good. Please make sure it scales well. I tried again to delete the 54000+ trash messages and kmail had still not completed after 569 CPU minutes (== overnight). KMail takes about 1 minute (60 boring seconds, which is still to much) here to delete 17,000 e-mails from my local maildir trash folder. (Gentoo Linux, compiled from source, KDE 3.5.5, KMail 1.9.5.) There's also heavy load (100% CPU time) on the machine, since KMail seems to a) first mark and b) then delete every single e-mail in the folder. Wouldn't it be possible to delete and then re-create the local (trash) folder on a filesystem level, just like when a user starts KMail for the first time? It would take < 1 second in this case - at least, if it's a local folder. |