Limit the number of rows in a room database
Here is a sample solution: Query is : @Query(“SELECT * FROM user LIMIT :limit OFFSET :offset”) User[] loadAllUsersByPage(int limit,int offset); Here, it will list users based on limit and offset. if loadAllUsersByPage(2,0) it will return the first 2 rows from the table. if loadAllUsersByPage(2,1) it will return 2nd and 3rd rows from table. but if … Read more