Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
SelectedMailboxImpl builds the UID <=> MSN mapping for later uses.
Today, to do so, we read messages, and keep their UID.
Needless to say, for some back-ends reading messages is an expensive operation requiring "soft joins" (Cassandra). We should offer a way to directly get an Iterator of UIDs in the mailbox.
That would allow further optimizations, mostly on Cassandra implementations, avoid thousands of queries upon IMAP SELECT commands on large mailboxes.