X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FManual%2FTroubleshooting.pod;h=56bcc0156e7c82b2eff8636fd7ec46f92927cadc;hb=d50421e7ae5f77fd0c51e74943ca3aea078901eb;hp=b870b3b1fd5aa835e0f95e3f9514b7b1a4d415a8;hpb=c13fabce230792388c8c57fb9cd481be65fe3125;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Manual/Troubleshooting.pod b/lib/DBIx/Class/Manual/Troubleshooting.pod index b870b3b..56bcc01 100644 --- a/lib/DBIx/Class/Manual/Troubleshooting.pod +++ b/lib/DBIx/Class/Manual/Troubleshooting.pod @@ -17,11 +17,11 @@ SQL tracing, so to see what is happening try Alternatively use the C<< storage->debug >> class method:- - $class->storage->debug(1); + $schema->storage->debug(1); To send the output somewhere else set debugfh:- - $class->storage->debugfh(IO::File->new('/tmp/trace.out', 'w'); + $schema->storage->debugfh(IO::File->new('/tmp/trace.out', 'w'); Alternatively you can do this with the environment variable too:- @@ -47,7 +47,7 @@ correctly. L version 1.50 and L 1.43 are known to work. -=head2 ... Can't locate object method "source_name" via package ... +=head2 Can't locate object method "source_name" via package There's likely a syntax error in the table class referred to elsewhere in this error message. In particular make sure that the package @@ -156,5 +156,16 @@ L, L and L +=head2 Excessive Memory Allocation with TEXT/BLOB/etc. Columns and Large LongReadLen + +It has been observed, using L, that a creating a L +object which includes a column of data type TEXT/BLOB/etc. will allocate +LongReadLen bytes. This allocation does not leak, but if LongReadLen +is large in size, and many such row objects are created, e.g. as the +output of a ResultSet query, the memory footprint of the Perl interpreter +can grow very large. + +The solution is to use the smallest practical value for LongReadLen. + =cut