AquaMail Forum

English - Android => General Discussion => Topic started by: someone on March 03, 2016, 04:29:23 am

Title: Has Aquamail display slowed down?
Post by: someone on March 03, 2016, 04:29:23 am
I'm a long time user of Aquamail which I think is the best mail app for me. I am currently using Aquamail 1.6.0.11 in a nexus 5 running stock 4.4.4.
Recently I've noticed a perceptively slower display in Aquamail.

For instance :
- When I open AM, it can take a couple of seconds for the smart folder to display the message list.
- When I select a read message in the folder and click on the toolbar's "closed envelope icon" to change the message to unread, it happens slower than it used to.
- etc.

This slowing is recent though I cannot tell whether it followed a recent AM update or not. It does not happen in my other apps, just AM, and I have 8GB of free space on my sdcard. I regularly run lagfix which I've done for years, so it is not new.

Any ideas would be appreciated.
Title: Re: Has Aquamail display slowed down?
Post by: paras.desai on March 03, 2016, 04:30:50 am
Try compacting database

Sent from my LG-H818 using Tapatalk
(http://uploads.tapatalk-cdn.com/20160303/bafe79b7604a9594c40678c87037c468.jpg)
Title: Re: Has Aquamail display slowed down?
Post by: someone on March 03, 2016, 08:15:42 am
Thanks for replying.
I had not bothered compacting because the "sdcard" in the nexus 5 is a virtual one in ram. But I just did it. Took a long time so it must have been doing something. Seems quicker. Will see how it goes.
Title: Re: Has Aquamail display slowed down?
Post by: someone on March 03, 2016, 04:32:46 pm
Actually, the compacting does not seem to have made a difference, probably because there is no physical sdcard in the nexus 5 and the "sdcard" is virtual and in memory.
I am wondering if the latest versions may have become a little bloated with features that are slowing things down.
Does anyone know where I can download an older version of Aquamail to see if that is the problem?
Thank you.

Edit
Just noticed that AM seems to have trouble synchronizing (which would explain the delay). Other apps connect fine on my home's fast wifi.
Title: Re: Has Aquamail display slowed down?
Post by: paras.desai on March 03, 2016, 04:50:34 pm
I have the latest version and I am on android 6, the performance of aquamail is as awesone as it has been. 

Sent from my LG-H818 using Tapatalk

Title: Re: Has Aquamail display slowed down?
Post by: someone on March 03, 2016, 05:44:59 pm
I think my email server is having problems. Will see.
Title: Re: Has Aquamail display slowed down?
Post by: Kostya Vasilyev on March 03, 2016, 08:53:52 pm
Re: When I open AM, it can take a couple of seconds for the smart folder to display the message list

I think it's NOT this:

Re: I think my email server is having problems. Will see.

It seems more likely that the slowdown is due to the app's database having gotten too large.

Can you please post a screenshot of the app's "About" window? If not, please let me know the size of Messages.sqldb shown there?

Anything over about 70-100 mb can cause the db to be too slow.

And that in turn is often caused by "messages to sync" / "messages to cache" settings being too high, in other words, by asking the app to keep track of and store too many messages.

PS - I own the original Nexus 5 and it's still awesome after all these years, very very fast (on par or slightly better than the newer 5x).
Title: Re: Has Aquamail display slowed down?
Post by: someone on March 04, 2016, 12:12:58 am
Dear Kostya, thank you for writing.

There was a problem with my email server caused by a feeder problem in Boston. It even went off the air for a few hours. Now it is back. But things are still slower than previously.
Here is the screenshot you requested. Didn't change much after I compacted the db. As you can see it is very large.

Thinking back, I think the slowdown may have begun after I implemented junk/spam folders in my 6 imap accounts. These synced folders quickly filled up with spam.  2591, 1150, and 2130 in 3 junk folders!

Now that the spam filters are working well on the server I plan to no longer "sync" the junk folders in AM. (I never find a legit message in the spam folders).

But, if I stop syncing the spam folders, how do I send spam messages to my spam folder on the ISP server so that the server learns they are spam?
Title: Re: Has Aquamail display slowed down?
Post by: Kostya Vasilyev on March 04, 2016, 12:41:27 am
Re: Here is the screenshot you requested

There isn't one.

Re: As you can see it is very large

I can't see the numbers, but...

Your describing overall sluggishness of the app's UI is consistent with that.

Mail server issues would only slow down mail sync, but won't affect e.g. just the opening of a message list.

And since "Didn't change much after I compacted the db":

Then please check the "messages to sync" / "messages to cache" settings, the defaults are "25 or 50" and "250" respectively.

Re: how do I send spam messages to my spam folder on the ISP server

You can set your spam folders, in AquaMail, to "Spam, don't sync".

This will still keep the "move to spam" buttons / icons, but those folders won't sync all the time.

Title: Re: Has Aquamail display slowed down?
Post by: Kostya Vasilyev on March 04, 2016, 12:43:22 am
Re: These synced folders quickly filled up with spam.  2591, 1150, and 2130 in 3 junk folders

Those are server message counts, not what's stored in the app.

The app only downloads the "messages to sync" worth of most recent messages.

( some of my folders have numbers > 10,000 and used to be at > 30,000 )

On the other hand, maybe those spam messages are very very large, so even 25-50-250 of them takes up a lot of space?

It's either that or else I think you've configured the app to sync / cache too many messages.
Title: Re: Has Aquamail display slowed down?
Post by: someone on March 04, 2016, 01:05:50 am
Is this the correct setting for the junk folders?
Title: Re: Has Aquamail display slowed down?
Post by: StR on March 04, 2016, 02:49:19 am
Someone:
No, Kostya suggested a different setting: "Spam, don't sync".
Title: Re: Has Aquamail display slowed down?
Post by: someone on March 04, 2016, 03:03:06 am
OK thanks.
Title: Re: Has Aquamail display slowed down?
Post by: StR on March 04, 2016, 06:22:08 am
Once you change the configuration of the "Spam" folders, you may want to "compact the database" as you've done earlier, to expunge the messages in that folder from Aquamail's database.
Title: Re: Has Aquamail display slowed down?
Post by: someone on March 04, 2016, 07:11:25 am
Did that too and this time it made a big difference. AM is now back to normal speed.

Thank you ALL for your help, especially Kostya.
Title: Re: Has Aquamail display slowed down?
Post by: Kostya Vasilyev on March 06, 2016, 03:14:34 pm
Ah, so it must have been "very large" spam messages then.
Title: Re: Has Aquamail display slowed down?
Post by: someone on March 06, 2016, 04:58:22 pm
It was. Look at the difference!
Works great now.
Title: Re: Has Aquamail display slowed down?
Post by: Kostya Vasilyev on March 06, 2016, 07:40:02 pm
Yes, 20 megabytes is quite reasonable. In my experience, SQLite starts to slow down around 70-100M.
Title: Re: Has Aquamail display slowed down?
Post by: this_is_nascar on March 07, 2016, 02:54:44 pm
Re: When I open AM, it can take a couple of seconds for the smart folder to display the message list

I think it's NOT this:

Re: I think my email server is having problems. Will see.

It seems more likely that the slowdown is due to the app's database having gotten too large.

Can you please post a screenshot of the app's "About" window? If not, please let me know the size of Messages.sqldb shown there?

Anything over about 70-100 mb can cause the db to be too slow.

And that in turn is often caused by "messages to sync" / "messages to cache" settings being too high, in other words, by asking the app to keep track of and store too many messages.

PS - I own the original Nexus 5 and it's still awesome after all these years, very very fast (on par or slightly better than the newer 5x).
I'm not the one with the issue, but I guess I should scale down the size of my DB .

(http://uploads.tapatalk-cdn.com/20160307/cdfa62dc29f3d591c1830720667bfbe2.jpg)

Sent from my XT1254 using Tapatalk

Title: Re: Has Aquamail display slowed down?
Post by: Kostya Vasilyev on March 08, 2016, 06:33:18 pm
Depends - not every Android device is the same.

For example, I'm (still) blown away by disk I/O performance on my Nexus 5, which went through 4.4 -> 5.0 -> 5.1 -> 6.0, while the 2012 Nexus 7 turned into frozen molasses once it got the 5.0 "upgrade".

But if you're concerned about the space being used, itself -- yeah, I suppose so. Your best friends are the "messages to sync" / "messages to cache" and "menu -> compact the database".

I know there are other discussions on this forum about those settings, so you may want to use search too.
Title: Re: Has Aquamail display slowed down?
Post by: someone on March 08, 2016, 10:46:07 pm
Imap, nexus 5.
What does the Exclamation icon on the right side of the toolbar do? (see image)
I am assuming it sends the selected messages to the junk folder. But, if the junk/spam folder is 'not synced' does that spam designation still get back to the server so it can use it for its spam filter learning?
Title: Re: Has Aquamail display slowed down?
Post by: Kostya Vasilyev on March 09, 2016, 12:54:35 am
Re: sends the selected messages to the junk folder

Yes

Re: But, if the junk/spam folder is 'not synced' does that spam designation still get back to the server

Yes

Re: if the junk/spam folder is 'not synced'

It just won't load changes *from* the server.
Title: Re: Has Aquamail display slowed down?
Post by: someone on March 09, 2016, 05:01:44 am
Thank you.