I want to create a custom Rest web service,
it would execute some logic and return max 5000 records.
What is the best practice for:
1. Setup data chunks.
2. Notice client side to query more chunks.
3. Result preparation. Could I execute and prepare results only once and store at somewhere, or I must execute each time for the subset of results?
Furthermore, if result size is changed (deleted by another user) during the communication, how to handle with that?
Any help would be appreciated.