[Dovecot] Sorting by Received vs Sent
Timo Sirainen
tss at iki.fi
Wed May 16 15:38:12 EEST 2007
On Wed, 2007-05-16 at 08:24 -0400, Bill Boebel wrote:
> Looks like in Cyrus, sorting by Received date is faster than sorting by the Sent header date because of the way they use the index and cache files... http://www.emaildiscussions.com/showpost.php?p=419246
>
> Is this the case in Dovecot as well?
In Dovecot v1.0 both of the dates are stored in dovecot.index.cache
file, so they're just as fast (as long as they're both cached already,
if neither is cached then getting the received date is faster because it
requires a single stat() with maildir instead of parsing message
headers).
In Dovecot v1.1 the sort information is stored in dovecot.index file, so
again they're just as fast.
I'm not actually sure how great of an idea it was to put the sort
information into dovecot.index files. Sure it makes SORT faster, but it
increases dovecot.index's size which makes other operations slower. It
might be faster overall, but it might be even better to have a separate
sort file. Except that's how I originally thought about doing it, but
then decided that wasn't good. Maybe some day I'll figure out the
optimal solution. :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20070516/035467a8/attachment.pgp
More information about the dovecot
mailing list