Perl 6 - the future is here, just unevenly distributed

IRC log for #askriba, 2017-09-02

| Channels | #askriba index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
01:52 ilbot2 joined #askriba
01:52 Topic for #askriba is now Where random Perl5-related questions get definitive answers. Currently no preset business hours due to low demand: just highlight my name and I'll answer ASAP \o/
04:04 dboehmer_ joined #askriba
04:45 karjala_ joined #askriba
15:36 karjala_ joined #askriba
15:45 ribasushi karjala_: on your #dbic question earlier, oliver had the correct answer:
15:45 karjala_ oh
15:45 ribasushi <oliver> that is the very example in https://metacpan.org/pod/DBIx::Class::Helper::ResultSet::CorrelateRelationship but karjala_ left :(
15:45 karjala_ I'll check right away
15:46 karjala_ I'll bring in my bot, to let me know if I'm being mentioned
15:47 ribasushi karjala_: for this channel I don't mind as long as it stays silent - I rather keep the s/n ration healthy
15:48 ribasushi for the other ( unlogged ) channel: you may want to ask first, folks are sensitive to concealed logging on this network
15:50 karjala_ are you refering to any unlogged channel, or some one in specific?
15:52 ribasushi this channel is already logged - the url is in your join-notes ( http://is.gd/askriba_irclog )
15:53 ribasushi #dbix-class is not publicly logged, and given you asked the original question there I assumed you meant "I will bring a bot" to mean there, so I gave you a fair warning this might become an issue if you don't ask in advance
15:54 ribasushi I need to run, later &
15:55 karjala joined #askriba
19:55 ribasushi karjala_: when you said "I will bring in my bot" I understood an actual event-activated program, this is why I suggested you ask
19:56 ribasushi having a private-presence client is of course fine anywhere
19:56 karjala_ a
21:51 karjala_ I have a one-to-one relationship between A and B (belongs_to <-> might_have). I have an $A_rs resultset. I need to get the B's related to A, with methods on each $b row to return the related $a row, but without running an extra query for each call of the sort $b->a
21:52 karjala_ Do I need to do a search for $A_rs->search_related('bs', undef, {prefetch => 'a'}) ?
21:52 karjala_ Like, do I need to form an SQL query like A->B->A ?
21:53 karjala_ Isn't there a way to just ask for A->B, and automatically get the $b->a information from it?
21:53 karjala_ without extra query each time?

| Channels | #askriba index | Today | | Search | Google Search | Plain-Text | summary