How to Optimize Your Elasticsearch Queries Using Pagination
Consider for a moment that you are building a webpage that displays data stored in Elasticsearch. You have so much information in your index that your API Gateway cannot handle it all at once. What you’ll need to do is paginate your results so that the client can have a predictable amount of data returned each time. Before paginating your results with your client, you will need to know how to paginate data in your backend storage.