[Catalyst] Paging support in Catalyst::Controller::DBIC::API
Rajesh Kumar Mallah
mallah at redgrape.tech
Sun Mar 19 08:28:37 GMT 2017
We know that Catalyst::Controller::DBIC::API supports paging
via list_count , list_page and list_offset options and
its possible to fetch a page of a large result set.
However what it does not seems to support is to tell
the View(caller) of how many records in total exists , ie
the total_entries of the Data::Page object.
This compels us to make two queries one to get the total count
and another to get the paged result.
Does this feature really does not exists or am I missing something?
(The reason I love and thoroughly use Catalyst::Controller::DBIC::API is
that it allows me to be lazy :p )
Rajesh Kumar Mallah.
More information about the Catalyst