hello everyone! I have a problem with pagination. I can't figure out the proper setup for reading the result in pages.
after reading the first page:
select .where(_.email eqs email) .orderBy(_.timestamp.descending) .paginateRecord(_.setFetchSize(numItems))
when I want to use the returned
pagingState to retrieve the next page
select .where(_.email eqs email) .orderBy(_.timestamp.descending) .paginateRecord(pagingState)
I get all the remaining records instead of the next page (of size
numItems from the first call).
Trying to add
orderBy and before
paginateRecord in the second call results in
PagingStateException: Paging state mismatch, this means that either the paging state contents were altered, or you're trying to apply it to a different statement.
Any ideas what I am doing wrong?
Thanks in advance!
pagingStateon the filtering statement:
select .where(_.email eqs email) .orderBy(_.timestamp.descending) .paginateRecord(_.setPagingState(pagingState).setFetchSize(numItems))
If I try and add a
def save(record: JsonClass): Future[ResultSet] = store(record).future() method to
It won't compile and i get the error
no implicit parameters thl