[Dbix-class] ResultSetManager makes DBIC to hang in debugger?

Oleg Pronin syber.rus at gmail.com
Thu Aug 9 11:29:16 GMT 2007


Everything was ok not so long time ago.
I suppose something was broken recently.


2007/8/9, Ash Berlin <ash_cpan at firemirror.com>:
>
> Oleg Pronin wrote:
> > Hi.
> > I've just updated to 0.8005 and discovered a problem: ResultSetManager
> > makes DBIC to hang with 100% cpu usage in debugger with latest version
> > of DBIC.
> >
> > Example:
> >
> > package package MyApp::Schema::BlackList;
> > ...
> > __PACKAGE__->load_components(qw/ResultSetManager Core/);
> > ...
> > sub bad_nicknames : ResultSet { shift->search({type =3D>
> > BLACK_LIST_TYPE_NICKNAME}) }
> >
> > my $rs =3D $schema->resultset('BlackList');
> > my $bnick_rs =3D $rs->bad_nicknames; # The process hangs at this line in
> > debugger.
> >
> > This hangs too:
> > MyApp::Schema::BlackList::_resultset::bad_nicknames()
> >
> > The command "s MyApp::Schema::BlackList::_resultset::bad_nicknames()"
> > doesn't even enter in the function - it immedeately hangs!
> >
> > DB<6> x
> Class::Inspector->functions('MyApp::Schema::BlackList::_resultset')
> > 0  ARRAY(0x4609138)
> >    0  'bad_matches'
> >    1  'bad_nicknames'
> >    2  'bad_words'
> >
> >
> > ------------------------------------------------------------------------
> >
>
> ResultSetManager has always been marked as experimental. I'd suggest you
> just create your own resultset class and use
> __PACKAGE__->resultset_class(....)
>
> -ash
>
> _______________________________________________
> List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
> IRC: irc.perl.org#dbix-class
> SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
> Searchable Archive:
> http://www.grokbase.com/group/dbix-class@lists.rawmode.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20070809/323=
d88fd/attachment.htm


More information about the DBIx-Class mailing list