Skip Menu |

This queue is for tickets about the DBIx-Class-Schema-Loader CPAN distribution.

Report information
The Basics
Id: 63558
Status: resolved
Priority: 0/
Queue: DBIx-Class-Schema-Loader

People
Owner: Nobody in particular
Requestors: TJC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.07002
Fixed in: (no value)



Subject: Many DBIx::Class warnings during unit tests
During the DBIx::Class::Schema::Loader unit tests, when tested against current (0.08124) DBIx::Class, there are many cases where this warning appears: Deferred version of method DBIx::Class::Row::_source_handle invoked more than once (originally invoked at /usr/local/share/perl/5.10.1/DBIx/Class/Row.pm line 1289). This is a strong indication your code has cached the original ->can derived method coderef, and is using it instead of the proper method re-lookup, causing performance regressions at /usr/local/share/perl/5.10.1/DBIx/Class/Relationship/Base.pm line 262 Deferred version of method DBIx::Class::Row::_source_handle invoked more than once (originally invoked at /usr/local/share/perl/5.10.1/DBIx/Class/Row.pm line 1289). This is a strong indication your code has cached the original ->can derived method coderef, and is using it instead of the proper method re-lookup, causing performance regressions at /usr/local/share/perl/5.10.1/DBIx/Class/Relationship/Accessor.pm line 34
Subject: Re: [rt.cpan.org #63558] Many DBIx::Class warnings during unit tests
Date: Thu, 2 Dec 2010 21:01:40 -0500
To: Toby C via RT <bug-DBIx-Class-Schema-Loader [...] rt.cpan.org>
From: Rafael Kitover <rkitover [...] cpan.org>
Yup, I saw that, ribasushi promised to look into it tonight :) On Thu, Dec 02, 2010 at 08:57:26PM -0500, Toby C via RT wrote: ... Show quoted text
> During the DBIx::Class::Schema::Loader unit tests, when tested against > current (0.08124) DBIx::Class, there are many cases where this warning > appears: > > Deferred version of method DBIx::Class::Row::_source_handle invoked more > than once (originally invoked at > /usr/local/share/perl/5.10.1/DBIx/Class/Row.pm line 1289). This is a > strong indication your code has cached the original ->can derived method > coderef, and is using it instead of the proper method re-lookup, causing > performance regressions at > /usr/local/share/perl/5.10.1/DBIx/Class/Relationship/Base.pm line 262 > > Deferred version of method DBIx::Class::Row::_source_handle invoked more > than once (originally invoked at > /usr/local/share/perl/5.10.1/DBIx/Class/Row.pm line 1289). This is a > strong indication your code has cached the original ->can derived method > coderef, and is using it instead of the proper method re-lookup, causing > performance regressions at > /usr/local/share/perl/5.10.1/DBIx/Class/Relationship/Accessor.pm line 34 > > >
These have all been fixed in the new version of Class::Accessor::Grouped. Thanks for the report!