Added remarks

pull/178/head
M66B 5 years ago
parent 02caac605e
commit 4bf84aef4b

@ -289,13 +289,13 @@ public interface DaoMessage {
Cursor getMessageFts(); Cursor getMessageFts();
@Query("SELECT id, account, thread, (:find IS NULL" + @Query("SELECT id, account, thread, (:find IS NULL" +
" OR `from` LIKE :find COLLATE NOCASE" + " OR `from` LIKE :find COLLATE NOCASE" + // no index
" OR `to` LIKE :find COLLATE NOCASE" + " OR `to` LIKE :find COLLATE NOCASE" + // no index
" OR `cc` LIKE :find COLLATE NOCASE" + " OR `cc` LIKE :find COLLATE NOCASE" + // no index
" OR `bcc` LIKE :find COLLATE NOCASE" + " OR `bcc` LIKE :find COLLATE NOCASE" + // no index
" OR `subject` LIKE :find COLLATE NOCASE" + " OR `subject` LIKE :find COLLATE NOCASE" + // unsuitable index
" OR `keywords` LIKE :find COLLATE NOCASE" + " OR `keywords` LIKE :find COLLATE NOCASE" + // no index
" OR `preview` LIKE :find COLLATE NOCASE) AS matched" + " OR `preview` LIKE :find COLLATE NOCASE) AS matched" + // no index
" FROM message" + " FROM message" +
" WHERE NOT ui_hide" + " WHERE NOT ui_hide" +
" AND (:account IS NULL OR account = :account)" + " AND (:account IS NULL OR account = :account)" +

Loading…
Cancel
Save