···176176 [%rapper
177177 get_many
178178 {sql| SELECT @string{path}, @CID{cid}, @Blob{data}, @string{since} FROM records
179179- WHERE path LIKE %string{collection}/%
180180- AND since < %string{cursor}
179179+ WHERE path LIKE concat(%string{collection}, '/', '%')
180180+ AND (since < %string{cursor} OR %string{cursor} = '')
181181 ORDER BY since DESC LIMIT %int{limit}
182182 |sql}]
183183···185185 [%rapper
186186 get_many
187187 {sql| SELECT @string{path}, @CID{cid}, @Blob{data}, @string{since} FROM records
188188- WHERE path LIKE %string{collection}/%
189189- AND since > %string{cursor}
188188+ WHERE path LIKE concat(%string{collection}, '/', '%')
189189+ AND (since > %string{cursor} OR %string{cursor} = '')
190190 ORDER BY since ASC LIMIT %int{limit}
191191 |sql}]
192192