Limit main log display

This commit is contained in:
M66B 2021-03-16 08:09:58 +01:00
parent 90e231dc22
commit 01d8c048e3
1 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,8 @@ import java.util.List;
public interface DaoLog {
@Query("SELECT * FROM log" +
" WHERE time > :from" +
" ORDER BY time DESC")
" ORDER BY time DESC" +
" LIMIT 2000")
LiveData<List<EntityLog>> liveLogs(long from);
@Query("SELECT * FROM log" +