@HenrikHL
In API design principle, it says "GET requests on collection results SHOULD implement pagination".
The code in github maybe should change into key base pagination, since must of our data might be huge.
Because I want to make sure about the detail of key base pagination.
Following the example from Oracle
EX:
If limit=10&cursor=OOO&sort=eventCreateDateTiime
And the SQL will be
SELECT *
FROM OUR_TABLE
WHERE KEY > :cursor
ORDER BY KEY
FETCH NEXT 10 ROWS ONLY
Question 1: How to get cursor for last-page? Is it the cursor for the last 10, or the last MOD(totalRecordNum, 10)?
Question 2: How to get cursor for first-page? I think query without cursor will become first-page automatically.
Question 3: How to handle sort and key base pagination together, since we already need to order by key to key base pagination
@HenrikHL
In API design principle, it says "GET requests on collection results SHOULD implement pagination".
The code in github maybe should change into key base pagination, since must of our data might be huge.
Because I want to make sure about the detail of key base pagination.
Following the example from Oracle
EX:
If limit=10&cursor=OOO&sort=eventCreateDateTiime
And the SQL will be
Question 1: How to get cursor for last-page? Is it the cursor for the last 10, or the last MOD(totalRecordNum, 10)?
Question 2: How to get cursor for first-page? I think query without cursor will become first-page automatically.
Question 3: How to handle sort and key base pagination together, since we already need to order by key to key base pagination