1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 04:35:57 +00:00

Optimized send pending query

This commit is contained in:
M66B 2021-03-31 20:48:19 +02:00
parent 1fade06231
commit 8916d64b96

View file

@ -247,9 +247,8 @@ public interface DaoMessage {
@Query("SELECT COUNT(*) FROM message" +
" JOIN folder_view AS folder ON folder.id = message.folder" +
" LEFT JOIN operation ON operation.message = message.id" +
" WHERE " + is_outbox +
" AND operation.id IS NULL")
" AND NOT ui_snoozed IS NULL")
LiveData<Integer> liveOutboxPending();
@Query("SELECT account.name AS accountName" +