Re: Reducing .local/share/akonadi

Daniel Vrátil <[email protected]>
Newsgroups gmane.comp.kde.users.pim
Organization KDE
Message-ID <1924592.8oXY5rNk3S@mjollnir>
On Sunday, 23 July 2017 15:31:03 CEST solitone wrote:
> On Sunday, 23 July 2017 11:29:03 CEST you wrote:
> > This is called on-demand retrieval and you can configure how long
> > the email body should be cached in Akonadi in Folder properties ->
> > Retrieval.
> 
> Thank you!
> 
> I've checked on some folders, and they have the default, which is inherit
> from parent folder or account. So all my folders inherit from the account
> setting. I haven't found that setting at account level, though.
> 
> In any case, the default value seems just 60 minutes. So I shouldn't have
> much data on my disc, apart from headers, since bodies are deleted after
> just 60 minutes. More than 1 GB of headers seems so much, but maybe I'm
> mistaken.

On my system the average size of email headers is around 3.2 kB [0], so 
depending on how many emails you have, 1 GB does not sound as an entirely 
unreasonable number. Plus there's additional metadata for each email stored in 
Akonadi (the so called envelope, avg size 620 bytes on my system), and of 
course  there's an overhead from the database itself - mostly indexes.

Dan

[0] You can measure it yourself by running the following SQL query in the 
Akonadi Console's "DB Console":

SELECT AVG(datasize) FROM parttable WHERE parttypeid = (SELECT id FROM 
parttypetable WHERE ns = 'PLD' AND name = 'HEAD')

The result is an average size of all "header" parts, in bytes.

-- 
Daniel Vrátil
www.dvratil.cz | [email protected]
IRC: dvratil on Freenode (#kde, #kontact, #akonadi, #fedora-kde)

GPG Key: 0x4D69557AECB13683
Fingerprint: 0ABD FA55 A4E6 BEA9 9A83 EA97 4D69 557A ECB1 3683
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEECr36VaTmvqmag+qXTWlVeuyxNoMFAll0qIcACgkQTWlVeuyx
NoOV3g//RfAg5V7BPBD686PavDjXtPRESpiGT+GyF0hnKeG5hfs2WW/uAyuo3+Zq
5tiTjOy9hIPX8gtCrCrnnK2WTCa+4ELYPLLoOp8qCJUxkITUfCTPvj6j/POrlYxC
rd51zI6/q6FrDnca/c626JNLiXf/EojWFsN3aUNyBd8slk9OMAaOBzY6zX5jM1jZ
l/1u1WJEIORfvCis15FEJ3UFaCqSIa/qsMIj9NYTik8dZcSXs09B86pOqOtbOUGe
VSMfVA2EJqpvHkUZi4xQCY+8B9Xz52Sql6I1TbEbGf+1ewHQR7xAh5vOcgKrmiwt
L+IurWISEjEUhRLg/6+6rbISzwNdeZ6IRBaIc03/QTY7kfxvAXa+VRWy4oAjJkqx
uxpIiEkNxk43Q2VmjfAB1eZBE3JlqyG0A9zrvWE9KD7iTG/9Cqg+G1UYNlddYmhF
3Un/lvMv7VFw7uQOd4E64DCmwUzkhnXwNZ8oW4ZddwH7LDpFC9+uSCQj1D4jatHz
ptcJVWNn4qQ4HNWLIZKF1B9lkmC5OmpmxxkPm8NymIPyHraWuYiOKEheh4monn/I
JsLTXwL8VIPI/QKJr2VOwtumD+JsAibuHtUvLr7eygHhMXYhU0t+KskfuxrMwaef
C1lGX89wIal9ol739HUl2SeWPQKe3JvUeGEe4kFfNiI2ruxtggw=
=PHNV
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.