Removed auttachment type index

This commit is contained in:
M66B
2020-06-20 09:54:43 +02:00
parent 35b983d5f1
commit 847a889515
4 changed files with 2264 additions and 5 deletions

View File

@@ -310,8 +310,8 @@ public interface DaoMessage {
" OR (:recipients AND `bcc` LIKE :find COLLATE NOCASE)" + // no index
" OR (:subject AND `subject` LIKE :find COLLATE NOCASE)" + // unsuitable index
" OR (:keywords AND `keywords` LIKE :find COLLATE NOCASE)" + // no index
" OR (:message AND `preview` LIKE :find COLLATE NOCASE)" +
" OR (:attachments AND attachment.name LIKE :find COLLATE NOCASE)" +
" OR (:message AND `preview` LIKE :find COLLATE NOCASE)" + // no index
" OR (:attachments AND attachment.name LIKE :find COLLATE NOCASE)" + // no index
" OR (:attachments AND attachment.type LIKE :find COLLATE NOCASE)) AS matched" + // no index
" FROM message" +
" LEFT JOIN attachment ON attachment.message = message.id" +