Is there a way to get all the data first and paginate after? I need all the categories' names and ids to show in a select box, but in the same page I have a table that contains the same categories and I don't want that table to be too crowded -- therefore, paginate.
So in a nutshell : select option should have all the data but table needs to be paginated. I don't want to use 2 different queries to get the same data because well, it's the same data. Only one of them needs to be paginated.
is there a way to do this without building the pagination myself from scratch?