Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Re-using DBIx ResultSet with different parameters

by ablanke (Vicar)
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
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 drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2020-06-02 00:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (12 votes). Check out past polls.

    Notices?