On Wed, 2009-02-11 at 17:35 -0500, Timo Sirainen wrote: > On Wed, 2009-02-11 at 14:32 -0800, Seth Mattinen wrote: > > Timo Sirainen wrote: > > > This is about how to implement multiple msgs/file dbox format. The > > > current v1.1's one msg/file design would stay pretty much the same and > > > it would be compatible with this new design. > > > > > > > Out of curiosity, what's the advantage to going to multiple messages per > > file? Wouldn't this have the same problems as mbox? > > Multiple per file, not everything in one file. As long as the file size > is set "right", it's probably faster than one per file. We'll see :)
Also there are no locking issues since reading doesn't require locking and write locks are very short lived. Corruption isn't possible because data is never copied within a file. A crash can happen at any point and Dovecot will be able to recover from it 100%. The worst that can happen is that some extra garbage is left lying around for some time wasting disk space.
signature.asc
Description: This is a digitally signed message part