I was playing with Dovecot 1.1 full text indexing through Squat in late October, which was working pretty well. I wanted to ask about this behavior I had:
When an email arrives in INBOX using procmail (which delivers to my Maildirs), and I see it in Dovecot, when I next do a search (IMAP SEARCH TEXT) of that folder, the search takes a long time. Successive searches are lickety-split.
My question is: Can there be an option to "index greedily"? As soon as Dovecot sees the message, I'd like it to update the Squat index. That way, searches are always fast.
I guess this implies a small performance hit - namely, that my IMAP server spends CPU and disk time indexing every message at the first time it is seen rather than being able to do batch indexing each time SEARCH TEXT is issued. But when I think about that, that sounds like the server can waste its time so I don't waste mine - which is exactly why I like these computing machines!
(That, and because I can waste my time programming them.)
-- Asheesh.
-- Use extra care when cleaning on stairs.
On Mon, 2008-01-07 at 23:51 -0800, Asheesh Laroia wrote:
My question is: Can there be an option to "index greedily"? As soon as Dovecot sees the message, I'd like it to update the Squat index. That way, searches are always fast.
It's in my TODO that Squat should be updated while messages are being saved, but I don't know if it makes into v1.1.
For now the only way to do this would be to cause a SEARCH TEXT to be run once in a while. Like cron, or a post-login script doing it at login:
printf "1 select inbox\n2 search text jsidjsidsij\n"|imap > /dev/null exec imap
participants (2)
-
Asheesh Laroia
-
Timo Sirainen