mirror of
https://github.com/M66B/FairEmail.git
synced 2026-05-18 04:57:53 +02:00
Batch delete log entries
This commit is contained in:
@@ -42,6 +42,7 @@ public interface DaoLog {
|
||||
long insertLog(EntityLog log);
|
||||
|
||||
@Query("DELETE FROM log" +
|
||||
" WHERE time < :before")
|
||||
int deleteLogs(long before);
|
||||
" WHERE id IN (SELECT id FROM log" +
|
||||
" WHERE time < :before ORDER BY time LIMIT :limit)")
|
||||
int deleteLogs(long before, int limit);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user