Bug 238860 - KMail extremely slow after using search tool
Summary: KMail extremely slow after using search tool
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail
Classification: Applications
Component: search (show other bugs)
Version: 1.12.4
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-26 10:14 UTC by Daniel Bauer
Modified: 2015-04-12 10:21 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Bauer 2010-05-26 10:14:27 UTC
Version:           1.12.4 (using KDE 4.3.5) 
OS:                Linux

After using the search tool for a search in all my my approx. 50 folders with approx. 5000 mails, KMail gets extremely slow, allthough I deleted the folder with the search results.

It seems to me that KMail remembers and performs the search in the background each time I restart it. It uses a lot of CPU-Power, it is almost impossible to change to another folder, after clicking on a mail to see the preview it takes about 30 seconds until the previev appears. Everything is slow.

After using the search tool again, but in a small folder with only 20 mails and searching on one criteria only, KMail behaves normal again.


Reproducible: Always

Steps to Reproduce:
- search for 2 criterias in all folders and subfolders with a lot of emails: KMail gets slow (also after deleting search result folder, user logout/login, reboot.
- perform small search (small folder, only 1 criteria): KMail returns to normal behaviour.
Comment 1 Al Bogner 2010-05-30 16:21:40 UTC
I confirm this bug, at least as long as I used the NVidia-driver from the repo. Since I compiled the Nvidia-driver myself, it didn't appear anymore, although I did extensive searches with 10-thousands of mails.
Comment 2 Stefan Seide 2011-09-14 18:37:23 UTC
This bug makes kmail nearly unusable for me. Every time i start kmail I have to wait something around 10 minutes before i am able to start working. Every action before this time needs a really long time (e.g. displaying! a popup to ask for a password needs 30sec). After the background search is finished i am able to work without problems.

It is related to the automatically saved "Letzte Suche" in kmail. I have lots of different IMAP accounts with thousends of mails - therefor the overall CPU load is not that high and only kmail is unusable. 

Workaround: manually delete .kde/share/apps/kmail/search/Letzte\ Suche or every other file within this directory.

This bug is related to bug 181370. Kmail must not redo the last search on every startup.

Another thing to do should be to use a different worker thread to not influence the GUI by long going searches. A search in the background should not stop the GUI from responding to user interaction.

best regards,
Stefan
Comment 3 Laurent Montel 2015-04-12 10:21:46 UTC
Thank you for taking the time to file a bug report.

KMail2 was released in 2011, and the entire code base went through significant changes. We are currently in the process of porting to Qt5 and KF5. It is unlikely that these bugs are still valid in KMail2.

We welcome you to try out KMail 2 with the KDE 4.14 release and give your feedback.