Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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 browsing the Monastery: (4)
As of 2022-05-25 12:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (90 votes). Check out past polls.

    Notices?