Opening a folder (especially in threaded mode) does a very heavy SQL query. This method doesn't use or modify the folder object. Don't cargo-cult the Open here.

(cketti may well tell me I'm wrong about this. Happy to listen & fix)
This commit is contained in:
Jesse Vincent 2013-07-11 16:11:36 -04:00
parent c1ab586ecc
commit 04ad291ba2
1 changed files with 0 additions and 4 deletions

View File

@ -1530,10 +1530,6 @@ public class LocalStore extends Store implements Serializable {
@Override
public int getUnreadMessageCount() throws MessagingException {
if (!isOpen()) {
open(OpenMode.READ_WRITE);
}
try {
return database.execute(false, new DbCallback<Integer>() {
@Override