Bug 254406 - akonadi 4.5 beta: imap processes very slow (compared to evolution)
Summary: akonadi 4.5 beta: imap processes very slow (compared to evolution)
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: IMAP resource (show other bugs)
Version: 4.5
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Kevin Ottens
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-16 20:59 UTC by Martin Tlustos
Modified: 2011-09-17 13:25 UTC (History)
4 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 Martin Tlustos 2010-10-16 20:59:17 UTC
Version:           4.5 (using KDE 4.5.2) 
OS:                Linux

It takes very long for akonadi to sync imap folders, and it crashes often. I have four IMAP accounts set up in akonadi (without disconnected mode as this will just freeze everything), and it takes minutes (!) for a message to load (sometimes).

Reproducible: Sometimes

Steps to Reproduce:
Open kontact
select kmail
click on folders to look on the emails. 

Actual Results:  
In the beginning, normally all goes well and reasonably quickly (although it's still slower than evolution, which is slower at startup, but then much quicker).
But after a while, it starts to take ages to sync folders and view messages. I 

Expected Results:  
Folders should sync much quicker, and viewing a message should be possible within seconds (not minutes as it can take now)

I have several dav-resources set up as well, and some other stuff as well - 13 resources in total...
Often after startup kde will tell me that akonadi resources have crashed (normally it's the dav resources)
Comment 1 Jaime Torres 2010-12-14 21:08:08 UTC
[Comment from a bug triager]
akonadi and kmail in 4.6 will be much, much better than in 4.5.
I used to have the same problems as you, and now with the 4.6 beta 2 kmail keeps the same speed (and memory) as the first day.
There is only a slowdown the first time you use kmail to open a folder, but once it is locally cached, it flies.
Comment 2 Kiril Vladimiroff 2010-12-27 23:58:07 UTC
(In reply to comment #1)
> [Comment from a bug triager]
> akonadi and kmail in 4.6 will be much, much better than in 4.5.
> I used to have the same problems as you, and now with the 4.6 beta 2 kmail
> keeps the same speed (and memory) as the first day.
> There is only a slowdown the first time you use kmail to open a folder, but
> once it is locally cached, it flies.

Yeah, but sometimes(with offline enabled) when try to open some folder it does not show old messages until the sync is done. So I have to wait minutes before I can check one single message from more than a week in one simple folder.

For much less time I could simply open gmail.com and check it...
Comment 3 Christophe Marin 2010-12-29 12:21:24 UTC
> So I have to wait minutes before I can check one single message from more than a week in one simple folder.

This is also fixed afaics (opening a dimap folder with 11k messages takes ~3 seconds here)
Comment 4 Alejandro Nova 2011-01-26 12:38:14 UTC
I would close this as RESOLVED - FIXED, but I need additional confirmation.

With KMail/Akonadi 4.5, IMAP (really, everything) was abysmal.
With KMail/Akonadi 4.6 beta 1, it improved.
With KMail/Akonadi 4.6 beta 4 (what I'm currently using) it improved... by a factor of 20.

Retrieving a GMail IMAP folder from the database, with KMail/Akonadi 4.5, took hours; with beta 1, minutes; with beta 4, a few seconds. Now it's a lot faster than Evolution or KMail 4.4.
Comment 5 Kevin Ottens 2011-09-17 09:18:32 UTC
Marking as FIXED since my tests yesterday on a very large GMail account were actually working nicely. The amount of data was large, and the network not that fast, but I could open the folder, see the mails flowing in, etc.

Once the sync was done, it was a matter of a few seconds to reload the full list in kmail. We're talking about 40k+ emails in a single folder here not that easy to make it very fast, but at least on the imap support side it seems all is clear.
Comment 6 Alejandro Nova 2011-09-17 13:25:50 UTC
To end this: if you compare KDE PIM 4.7.1 to KDE PIM 4.6 beta 4, it's like comparing heaven and hell, and that's with all the improvements in beta 4. In KDE 4.7.1, mails flow into my GMail account as they arrive, since the IDLE extension is working.

Kudos to everyone involved ─ this is FIXED.