[Dovecot] No speed improvement with FTS for iOS 7?
Hi,
I recompiled Dovecot with Lucene FTS to try to improve iOS 7 IMAP search speed.
Unfortunately this does not seem to help.
I have 60 mailboxes, totaling 300 MB; lucene-indexes is 30 MB in size.
% doveadm mailbox status -t all '*' messages=16335 recent=0 unseen=1736 vsize=280049586
Searching for a single word which is present in two messages of one mailbox takes 40 seconds to return. This is true whether or not fts is enabled.
doveadm search takes much less than 1 second to do the same search.
% time doveadm search BODY cython d8f09230c97af952b60c0000c1443b93 1 d8f09230c97af952b60c0000c1443b93 2 doveadm search BODY cython 0.18s user 0.05s system 99% cpu 0.230 total
With fts disabled, it takes about 6.5 seconds. This is still a long way from 40 seconds.
Is there any way I can make dovecot perform better here?
Thanks,
Nicholas Riley njriley@illinois.edu
Am 2014-03-02 04:37, schrieb Nicholas Riley:
Hi,
I recompiled Dovecot with Lucene FTS to try to improve iOS 7 IMAP search speed.
Unfortunately this does not seem to help.
I have 60 mailboxes, totaling 300 MB; lucene-indexes is 30 MB in size.
% doveadm mailbox status -t all '*' messages=16335 recent=0 unseen=1736 vsize=280049586
Searching for a single word which is present in two messages of one mailbox takes 40 seconds to return. This is true whether or not fts is enabled.
you mean, from the IOS device?
doveadm search takes much less than 1 second to do the same search.
% time doveadm search BODY cython d8f09230c97af952b60c0000c1443b93 1 d8f09230c97af952b60c0000c1443b93 2 doveadm search BODY cython 0.18s user 0.05s system 99% cpu 0.230 total
With fts disabled, it takes about 6.5 seconds. This is still a long way from 40 seconds.
Is there any way I can make dovecot perform better here?
if its fast on the server, can you tell, whether the IOS device actually uses the server for searching?
-- peter
Am 02.03.2014 13:16, schrieb Peter Chiochetti:
Am 2014-03-02 04:37, schrieb Nicholas Riley:
Hi,
I recompiled Dovecot with Lucene FTS to try to improve iOS 7 IMAP search speed.
Unfortunately this does not seem to help.
I have 60 mailboxes, totaling 300 MB; lucene-indexes is 30 MB in size.
% doveadm mailbox status -t all '*' messages=16335 recent=0 unseen=1736 vsize=280049586
Searching for a single word which is present in two messages of one mailbox takes 40 seconds to return. This is true whether or not fts is enabled
https://discussions.apple.com/message/9504230#9504230
not the newest thread but "I don't think it is. I've never heard of any mail client being able to search IMAP messages stored remotely" shows the typical apple customer and so what apple needs to implement for sell
In article 53132112.7080602@myzel.net, Peter Chiochetti pch@myzel.net wrote:
you mean, from the IOS device?
Yes, sorry, from Mail on an iPhone 5S.
if its fast on the server, can you tell, whether the IOS device actually uses the server for searching?
Watching the logs, it makes many connections to the IMAP server (one per mailbox?), so yes, it is definitely using the server. Eventually it runs into the connection limit, closes all the connections then tries to open them all again. You can see the entire process takes about a minute.
https://gist.github.com/nriley/8a0c2ea4a9d7773e340d
I guess the next step is to figure out IMAP logging, but I was wondering if anyone else had had success with getting Dovecot to perform well in this scenario. From the response thus far it seems like the answer may be no.
Thanks,
Nicholas Riley njriley@illinois.edu
participants (3)
-
Nicholas Riley
-
Peter Chiochetti
-
Reindl Harald