Closed
Description
Not sure what the point of this demo is since your controller is getting the full 1000 records each time and you are then just cutting the page number out of the pack to return back to the view.
Surely you should be formulating the resultant query to only be selecting the page number of records each time otherwise there is not much point.
Additionally, your controller is counting all the records a second time each call rather than just getting the count from the query before it is filtered.