mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 19:35:10 +01:00
Debug info: fts stats
This commit is contained in:
@@ -290,12 +290,17 @@ public interface DaoMessage {
|
||||
" AND NOT ui_hide")
|
||||
LiveData<List<EntityMessage>> liveUnreadThread(long account, String thread);
|
||||
|
||||
@Query("SELECT SUM(fts) AS fts, COUNT(*) AS total FROM message" +
|
||||
static String FTS_STATS = "SELECT SUM(fts) AS fts, COUNT(*) AS total FROM message" +
|
||||
" JOIN folder_view AS folder ON folder.id = message.folder" +
|
||||
" WHERE content" +
|
||||
" AND folder.type <> '" + EntityFolder.OUTBOX + "'")
|
||||
" AND folder.type <> '" + EntityFolder.OUTBOX + "'";
|
||||
|
||||
@Query(FTS_STATS)
|
||||
LiveData<TupleFtsStats> liveFts();
|
||||
|
||||
@Query(FTS_STATS)
|
||||
TupleFtsStats getFts();
|
||||
|
||||
@Query("SELECT COUNT(*) FROM message" +
|
||||
" WHERE id IN (:ids)" +
|
||||
" AND (raw IS NULL OR NOT raw)")
|
||||
|
||||
Reference in New Issue
Block a user