[kdepim-users] rant

Ingo Klöcker kloecker at kde.org
Tue Feb 10 20:20:41 GMT 2015


On Monday 09 February 2015 19:04:15 E. Hakan Duran wrote:
> I switched from online IMAP to offline mode last night, because even after
> upgrading the akonadi server I didn't observe a great improvement in the
> performance. Before making that switch in Kmail settings, I checked the
> ~/.local/share/akonadi/file_db_data folder properties. It was around 900 MB.
> Then I turned on the offline mode for 3 IMAP accounts. Two of them are
> gmail accounts; gmail reports 0.67 GB usage for one of them (this account
> actually) and 7.14 GB for the other one. The third IMAP account is my
> work/corporate account, which is limited by a 1GB quota, and I believe I
> must be using about half of it at the moment. After several hours of
> network activity by akonadi, the current and stable size of the
> ~/.local/share/akonadi/file_db_data folder now is 50.6 GB!
> 
> 0.67 GB + 0.5 GB + 7.14 GB = 50.6 GB
> 
> How can this make any sense?

GMail stores exactly one copy of each message regardless of how many folders 
(which are more or less all just filtered views on all messages) contain a 
message. For KMail (and I guess for any other IMAP mail client) multiple 
copies of the same message in different folders are different messages. This 
means KMail will download (and store locally) the same messages multiple 
times.

This could at least partially explain the difference in storage size. To test 
this hypothesis you could count the number of unique Message-id's in 
~/.local/share/akonadi/file_db_data.

I got this (for my 4 online IMAP accounts):
# ls ~/.local/share/akonadi/file_db_data | wc -l
30254
# grep -hi -m1 "^message-id:" ~/.local/share/akonadi/file_db_data/* >message-
ids.txt
# cat message-ids.txt | wc -l
30221
# cat message-ids.txt | sort | uniq | wc -l
21081

So, there are 30254 messages and other Akonadi objects (larger than the 
threshold). Those contain 30221 Message-ID headers (some of the files contain 
address book entries) of which 21081 are unique (so about every 3rd message 
seems to be a duplicate).


Regards,
Ingo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdepim-users/attachments/20150210/05c085da/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM users mailing list
Subscription management: https://mail.kde.org/mailman/listinfo/kdepim-users


More information about the kdepim-users mailing list