Author Topic: Very slow account gmail with 1000 messages  (Read 6141 times)

Offline mymail

  • Newbie
  • *
  • Posts: 5
Very slow account gmail with 1000 messages
« on: January 03, 2013, 12:17:17 PM »
Hi,
I installed roundcube 0.8.4 on a server that connects to gmail using IMAP to get messages from a gmail account. In the gmail account there are many folders and inbox is very slow, there are about 1000 messages.
I changed the number of rows per screen at 20 but continued slow.
The cache is disabled
// Type of IMAP indexes cache. Supported values: 'db', 'apc' and 'memcache'.
$rcmail_config['imap_cache'] = null;
// Enables messages cache. Only 'db' cache is supported.
$rcmail_config['messages_cache'] = false;


Best regards,

myMail

Offline Yoni

  • Full Member
  • ***
  • Posts: 164
    • MyRoundcube
Re: Very slow account gmail with 1000 messages
« Reply #1 on: January 03, 2013, 01:45:18 PM »
There is no work around. It is slow...

// Type of IMAP indexes cache. Supported values: 'db', 'apc' and 'memcache'.
$rcmail_config['imap_cache'] = 'db';
// Enables messages cache. Only 'db' cache is supported.
$rcmail_config['messages_cache'] = true;

Offline mymail

  • Newbie
  • *
  • Posts: 5
Re: Very slow account gmail with 1000 messages
« Reply #2 on: January 04, 2013, 09:28:26 AM »
Hello,

I've changed the configuration, enabling the caching. Could you recommend me something else to improve the performance?

Best regards

mymail

Offline alec

  • Hero Member
  • *****
  • Posts: 1,365
Re: Very slow account gmail with 1000 messages
« Reply #3 on: January 04, 2013, 09:32:23 AM »
Do you know exactly what is slow? Enable imap_debug and check timing in the log. http://trac.roundcube.net/wiki/Howto_Performance

Offline mymail

  • Newbie
  • *
  • Posts: 5
Re: Very slow account gmail with 1000 messages
« Reply #4 on: January 07, 2013, 06:51:14 AM »
Hello,

Load the inbox takes 0.5 min. There are 10000 messages and shows 20 lines
What is the meaning of this lines?

[07-Jan-2013 11:31:03 +0100]: [9110] S: * 10130 FETCH (UID 16468 RFC822.SIZE 5091)
[07-Jan-2013 11:31:03 +0100]: [9110] S: * 10131 FETCH (UID 16469 RFC822.SIZE 43120)
[07-Jan-2013 11:31:03 +0100]: [9110] S: * 10132 FETCH (UID 16470 RFC822.SIZE 215347)
[07-Jan-2013 11:31:03 +0100]: [9110] S: * 10133 FETCH (UID 16471 RFC822.SIZE 185263)
[07-Jan-2013 11:31:03 +0100]: [9110] S: * 10134 FETCH (UID 16472 RFC822.SIZE 7285)
[07-Jan-2013 11:31:03 +0100]: [9110] S: * 10135 FETCH (UID 16473 RFC822.SIZE 10723)
[07-Jan-2013 11:31:03 +0100]: [9110] S: * 10136 FETCH (UID 16474 RFC822.SIZE 12937)
[07-Jan-2013 11:31:03 +0100]: [9110] S: * 10137 FETCH (UID 16475 RFC822.SIZE 516440)
[07-Jan-2013 11:31:03 +0100]: [9110] S: * 10138 FETCH (UID 16476 RFC822.SIZE 45776)
[07-Jan-2013 11:31:03 +0100]: [9110] S: * 10139 FETCH (UID 16477 RFC822.SIZE 22380)
[07-Jan-2013 11:31:03 +0100]: [9110] S: * 10140 FETCH (UID 16478 RFC822.SIZE 2639)

Best regards,

Offline alec

  • Hero Member
  • *****
  • Posts: 1,365
Re: Very slow account gmail with 1000 messages
« Reply #5 on: January 07, 2013, 08:00:45 AM »
Did you set sorting by message size? It looks like it fetches size of all messages to sort them. Or this is log of the "check folder size" feature.

Offline mymail

  • Newbie
  • *
  • Posts: 5
Re: Very slow account gmail with 1000 messages
« Reply #6 on: January 08, 2013, 05:10:11 AM »
Yes,

It was sorted by size.

Best regards,