Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Re-using DBIx ResultSet with different parameters

by ablanke (Prior)
on Oct 15, 2016 at 10:34 UTC ( #1174066=note: print w/replies, xml ) Need Help??


in reply to Re-using DBIx ResultSet with different parameters

Hi MattLG,

have you thought about using

IN

in your select?

In the doc DBIx::ResultSet::Cookbook under subselects.

Adapted from the doc you could do this (untested):

$items->search({ 'joined_table.column' => {-in => \@values } });

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1174066]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (1)
As of 2023-06-03 00:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (6 votes). Check out past polls.

    Notices?