Changeset 330


Ignore:
Timestamp:
01/21/11 13:59:02 (13 years ago)
Author:
nanardon
Message:
  • revert optimisation (not so powerfull)
Location:
server/trunk/web/lib/Sophie/Controller
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • server/trunk/web/lib/Sophie/Controller/Search.pm

    r329 r330  
    252252                ($searchspec->{content} ? { has_content => 1 } : ()), 
    253253                ($distrs  
    254                     ? (pkgid => { IN => [ $distrs->get_column('pkgid')->all ], },) 
     254                    ? (pkgid => { IN => $distrs->get_column('pkgid')->as_query, },) 
    255255                    : ()), 
    256256                ($searchspec->{pkgid} 
  • server/trunk/web/lib/Sophie/Controller/Search/Rpm.pm

    r329 r330  
    130130    my ( $self, $c, $searchspec, $file) = @_; 
    131131    $searchspec ||= {}; 
     132    my $distrs = $c->forward('/search/distrib_search', [ $searchspec, 1 ]); 
    132133 
    133134    my $filers = $c->forward('/search/file_rs', [ $searchspec, $file ]) 
     
    177178                }, 
    178179                $distrs 
    179                     ? { pkgid => { IN => [ $distrs->get_column('pkgid')->all ], }, } 
     180                    ? { pkgid => { IN => $distrs->get_column('pkgid')->as_query, }, } 
    180181                    : (), 
    181182            ]      
Note: See TracChangeset for help on using the changeset viewer.