Changeset 329


Ignore:
Timestamp:
01/21/11 13:42:28 (13 years ago)
Author:
nanardon
Message:
  • trying to optimize in some way
Location:
server/trunk/web/lib/Sophie/Controller
Files:
2 edited

Legend:

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

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

    r284 r329  
    130130    my ( $self, $c, $searchspec, $file) = @_; 
    131131    $searchspec ||= {}; 
    132     my $distrs = $c->forward('/search/distrib_search', [ $searchspec, 1 ]); 
    133132 
    134133    my $filers = $c->forward('/search/file_rs', [ $searchspec, $file ]) 
     
    178177                }, 
    179178                $distrs 
    180                     ? { pkgid => { IN => $distrs->get_column('pkgid')->as_query, }, } 
     179                    ? { pkgid => { IN => [ $distrs->get_column('pkgid')->all ], }, } 
    181180                    : (), 
    182181            ]      
Note: See TracChangeset for help on using the changeset viewer.