in reply to Re: DBIx::Class - Count with prefetch creates nested query
in thread DBIx::Class - Count with prefetch creates nested query

Hi, I've updated the code with real example

  • Comment on Re^2: DBIx::Class - Count with prefetch creates nested query

Replies are listed 'Best First'.
Re^3: DBIx::Class - Count with prefetch creates nested query
by 1nickt (Canon) on Jul 06, 2015 at 14:46 UTC

    Hi, I was really suggesting that you should simplify your actual code ... if it makes you say "it's very complicated" when you try to explain it or post some of it to get help, there is probably room to simplify it, likely by breaking it up into smaller chunks. That's what I meant.

    But looking at what you posted, I see an error in your calls to DBIx::Class::ResultSource::add_columns, in the misspelling of the accessor param ... a clue, maybe?

    Remember: Ne dederis in spiritu molere illegitimi!