Merge pull request #4722 from basilgello/remove-fulltext-remnants
Compact messages_fulltext table after messages destroyed
This commit is contained in:
commit
c26037c534
1 changed files with 6 additions and 0 deletions
|
@ -1636,6 +1636,8 @@ public class LocalFolder {
|
|||
}
|
||||
}
|
||||
|
||||
compactFulltextEntries(db);
|
||||
|
||||
return null;
|
||||
});
|
||||
}
|
||||
|
@ -1824,6 +1826,10 @@ public class LocalFolder {
|
|||
db.delete("messages_fulltext", "docid = ?", idArg);
|
||||
}
|
||||
|
||||
void compactFulltextEntries(SQLiteDatabase db) {
|
||||
db.execSQL("INSERT INTO messages_fulltext(messages_fulltext) VALUES('optimize')");
|
||||
}
|
||||
|
||||
void deleteMessagePartsAndDataFromDisk(final long rootMessagePartId) throws MessagingException {
|
||||
deleteMessageDataFromDisk(rootMessagePartId);
|
||||
deleteMessageParts(rootMessagePartId);
|
||||
|
|
Loading…
Reference in a new issue