6dc74c9da5
When deleting many (eg 2000) mails using the SQLITE backend, this takes a long time durig which OfflineImap can not be aborted via CTRL-C. Thinking it had frozen permanently, I killed it hard, leaving a corrupted db journal (which leads to awkwards complaints by OLI on subsequent starts!). That shows that delete performance is critical and needs improvement. We were iterating through the list of messages to delete and deleted them one-by-one execute()'ing a new SQL Query for each message. This patch improves the situation by allowing us to use executemany(), which is -despite still being one SQL query per message- much faster. This is because rather than performing a commit() after each mail, we now do only one commit() after all mails have been deleted. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de> |
||
---|---|---|
.. | ||
folder | ||
repository | ||
ui | ||
__init__.py | ||
accounts.py | ||
CustomConfig.py | ||
error.py | ||
imaplib2.py | ||
imaplibutil.py | ||
imapserver.py | ||
imaputil.py | ||
init.py | ||
localeval.py | ||
mbnames.py | ||
syncmaster.py | ||
threadutil.py |