Author Topic: Compacting the database  (Read 7798 times)

someone

  • Sr. Member
  • ****
  • Posts: 415
Compacting the database
« on: August 11, 2014, 12:58:49 am »
Is there a suggested guide as to how often it is advisable to compact the database? I realize it is very individual and depends on how many messages get downloaded and deleted, but I am looking for a feel for what might be reasonable.
Thanks.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Compacting the database
« Reply #1 on: August 11, 2014, 01:26:31 am »
It depends on the number of messages, as well as the specifics of a particular device.

The basic rule is: if you notice the app's UI getting sluggish (e.g. a message list taking a long time to open, that sort of thing), then compacting the database might help.

I see the need for this on my (one and only) phone with Android 2.3, about once a month... I don't use it much, but it still receives and trims messages in 3 or 4 accounts. On all the other phones and tablets, running 4.1 - 4.4, I haven't needed this, but of course that's just my experience.

Now, I'm quite puzzled about why this would be needed -- with flash storage, which should have near zero access time, maybe it's the IO controllers / data busses / file system... in other words, again, the specifics of a particular hardware platform and its Android version. Back to square one :)
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

someone

  • Sr. Member
  • ****
  • Posts: 415
Re: Compacting the database
« Reply #2 on: August 11, 2014, 02:45:26 am »
Thanks.
Just wondering.