I caught a nice and simple bug in my "next data" request with sqlite.
I'm requesting rows with limit 15 and before x date.
The problem/bug is if row 16 (order by date) is the same date as row 15 (the last row in the "request"), the next time I will call my "next request" with limit 15 and before date X (the last row date from the previous request) it will skip row 16.
Now I know I can request before and equal to date and check if I got this row already,
But I wonder if there is magic word in sqlite and maybe it's my lucky day, so I can say to sqlite : "Hey I need the next 15 rows order by date, but don't stop if row 16 (and after him) have the same date" ?
What other are doing in this situation ? I prefer using the date as "cursor" and not rowID incase I will delete and insert rows during app usage.
UPDATE: this is my sql for next request :
""SELECT * from feedItems WHERE object_date < 1600954500 order by object_date DESC limit 15""
What I want : like @forpas said in the comments, I don't want strictly 15 rows if row 16 (and after him) have the same date(tie).