[Catalyst] Where has Maypole's pager gone?

Sebastian Riedel sri at oook.de
Thu Apr 28 17:07:20 CEST 2005


Am 28.04.2005 um 16:49 schrieb Perrin Harkins:

> Andy Grundman said:
>> You could look at my ServerDB example, I implemented a pager with 
>> column
>> sorting using CDBI::Pager in about 10 lines of code.
>
> CDBI::Pager, doesn't use limiting -- it grabs the IDs for the entire
> result set and throws away the ones it doesn't need.  
> CDBI::Plugin::Pager
> uses LIMIT (or equivalent), but it forces you to use SQL::Abstract for 
> the
> query you want to page, rather than the normal searching.  I'm not sure
> what the Maypole one did.

Maypole does it in memory...
I personally like how chansen's new C::M::CDBI::Sweet handles it.

--
sebastian




More information about the Catalyst mailing list