1
In this tutorial we will see an example of using the Primefaces dataTable that allows loading on demand the data to be displayed in the table. This way of extracting the information is the most recommended since for large volumes of data the memory would be overloaded in excess and thus we would degrade the scalability of our application. The solution to this problem is to paginate the list in database showing more data as the user
requests them. This approach has the disadvantage that more database-based queries are needed but we are able to bring only the data that is required and as I said before releasing much more memory to the server.