Get the count of all messages and the count of all recent messages is very slow
-------------------------------------------------------------------------------

                 Key: IMAP-156
                 URL: https://issues.apache.org/jira/browse/IMAP-156
             Project: JAMES Imap
          Issue Type: Improvement
          Components: Mailbox
            Reporter: Norman Maurer
            Assignee: Norman Maurer
             Fix For: 0.1


1) When selecting a Mailbox (a select INBOX) the count of all messages and the 
count of all recent messages get calculated on the fly. That
works well on small mailboxes, but as more messages you have as slower it get.

I would like to store the messageCount and recentMessageCount in the Mailbox 
and just update these on append/setFlags/expunge operations.
To be sure we don't get corrupted data somehow, we should create some kind of 
backgroundprocess which recalculate these counts every X
hours.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to