Re: Pagers and Iterators

[prev] [thread] [next] [Date index for 2005/02/25]

From: Daniel Wijnands
Subject: Re: Pagers and Iterators
Date: 11:34 on 25 Feb 2005
 if ( keys(%$search) > 0 )
    178   {
    179     @Objs = ($sort) ? $Pager->search_where( $search, { order =>
$sort } ) : $Pager->search_where($search);
    180   }
    181   else
    182   {
    183     @Objs = ($sort) ? $Pager->retrieve_all_sorted_by($sort) :
$Pager->retrieve_all();
    184   }

Let the database order, that's what is should be good in 

Daniel


On Fri, 2005-02-25 at 11:30 +0000, Simon Wistow wrote:
> I have something which is equivalent to
>  
>  use Class::DBI::Pager;
> 
>  my $pager = $self->pager(20,$page_number)
>  sort { $a->foo cmp $b->foo } $pager->retrieve_all
> 
> but, of course, this only orders stuff on each page. 
> 
> Apart from the fact that I should switch to Class::DBI::Plugin::Pager 
> because my tables are large is there anyway round this?
> 
> Simon
> 

(message missing)

Pagers and Iterators
Simon Wistow 11:30 on 25 Feb 2005

Re: Pagers and Iterators
Daniel Wijnands 11:34 on 25 Feb 2005

Re: Pagers and Iterators
Simon Wistow 11:47 on 25 Feb 2005

Re: Pagers and Iterators
Sean Davis 11:55 on 25 Feb 2005

Re: Pagers and Iterators
Simon Wistow 12:14 on 25 Feb 2005

Re: Pagers and Iterators
Carl Johnstone 13:23 on 25 Feb 2005

Re: Pagers and Iterators
Cees Hek 14:18 on 25 Feb 2005

Re: Pagers and Iterators
Matt S Trout 14:35 on 25 Feb 2005

Re: Pagers and Iterators
William Ross 12:15 on 25 Feb 2005

Re: Pagers and Iterators
William Ross 14:04 on 25 Feb 2005

Re: Pagers and Iterators
Simon Wistow 15:37 on 25 Feb 2005

Re: Pagers and Iterators
Simon Wistow 16:34 on 25 Feb 2005

Re: Pagers and Iterators
Ofer Nave 20:52 on 25 Feb 2005

Re: Pagers and Iterators
Cees Hek 16:41 on 25 Feb 2005

Re: Pagers and Iterators
Carl Johnstone 17:09 on 25 Feb 2005

Generated at 17:56 on 01 Mar 2005 by mariachi v0.52