in reply to Re: data bulk query, sorting and paging
in thread data bulk query, sorting and paging
The problem I have with delegating sorting and querying to providers is that paging gets really tricky.
my @rows; for my $provider( qw/Provider1 Provider2 Provider3/ ) { push @rows, $provider->search( query=>..., sort=>..., page=>1, rows=>10 ); } # now I may end up with 30 rows for page 1 # but the client grid expects 10, so let's cut it down... @rows = @rows [ 0..9 ];
So, ideally, the "collection manager object" should work with this algorithm:
--Miguel
Code tags added by GrandFather
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: data bulk query, sorting and paging
by AnomalousMonk (Archbishop) on Nov 30, 2009 at 18:32 UTC | |
by planetscape (Chancellor) on Dec 01, 2009 at 05:49 UTC | |
by AnomalousMonk (Archbishop) on Dec 01, 2009 at 15:35 UTC |