diff --git a/source/src/main/java/one/nem/lacerta/source/database/dao/DocumentDao.java b/source/src/main/java/one/nem/lacerta/source/database/dao/DocumentDao.java index 12dc0606..265b20bc 100644 --- a/source/src/main/java/one/nem/lacerta/source/database/dao/DocumentDao.java +++ b/source/src/main/java/one/nem/lacerta/source/database/dao/DocumentDao.java @@ -22,6 +22,9 @@ public interface DocumentDao { @Query("SELECT * FROM Document") List findAll(); + @Query("SELECT * FROM Document LIMIT :limit") + List getAllWithLimit(int limit); + @Query("SELECT * FROM Document WHERE id IN (:ids)") List findByIds(List ids);