Guidewire Interview Question

How would you paginate an extremely large dataset in the app-server?