Reducing .local/share/akonadi

Martin Steigerwald martin at lichtvoll.de
Thu Jul 20 19:55:22 BST 2017


solitone - 20.07.17, 14:48:
> > > $ du -h -d 1 .local/share/akonadi
> > > 401M    .local/share/akonadi/db_data
> > > 497M    .local/share/akonadi/search_db
> > > 377M    .local/share/akonadi/file_db_data
> > > 4.0K    .local/share/akonadi/db_misc
> > > 1.3G    .local/share/akonadi
> > 
> > 1.3 GiB is not very much. Actually its really rather small. 
> 
> Really? 
> 
> Apart from few IMAP accounts, where data is stored on the server, I have a 
> POP3 and a local account, whose data are saved in two local maildirs. POP3 
> emails need 3.9MB of storage, while local emails need just 988KB. However
> the  akonadi directory amounts to 1.3GB of data:
> 
> $ du -h -d 0 .local/share/akonadi*|sort -r -h
> 1.3G    .local/share/akonadi
> 3.9M    .local/share/akonadi_maildir_resource_1
> 988K    .local/share/akonadi_maildir_resource_0
> 12K     .local/share/akonadi_migration_agent

Akonadi also indexes your IMAP accounts, at least partly (see below).

It would be nice to be able to configure which accounts and which folders it 
indexes, but as far as I am aware it is not yet possible.

> The question now is: how do I configure cache behaviour in akonadi?

Expect for deciding whether to use disconnected IMAP or not, I am not aware of 
any option to do so. This setting is in IMAP account settings, general tab. I 
had it on and I found with robust network Akonadi for IMAP account uses much 
less resources when I switch it off. Partly, because I find that when it 
downloads mail for caching… it stuffes all mail below 4 KiB into the database, 
all above into file_db and also indexes *every* mail. But when I switch it off 
I find that it only indexes folders I access, instead of indexing all of it. 
And it also stores mails just temporarily for caching and expunges them again. 
When "download all mail for offline use is checked" it downloads and keeps them.

Thanks,
-- 
Martin



More information about the kdepim-users mailing list