From: Pete Gamache Date: Fri, 9 Oct 2009 20:32:04 +0000 (+0000) Subject: added troubleshooting case of excessive memory allocation involving TEXT/BLOB/etc X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d50421e7ae5f77fd0c51e74943ca3aea078901eb;p=dbsrgits%2FDBIx-Class-Historic.git added troubleshooting case of excessive memory allocation involving TEXT/BLOB/etc columns and large LongReadLen --- diff --git a/lib/DBIx/Class/Manual/Troubleshooting.pod b/lib/DBIx/Class/Manual/Troubleshooting.pod index e3b1ab3..56bcc01 100644 --- a/lib/DBIx/Class/Manual/Troubleshooting.pod +++ b/lib/DBIx/Class/Manual/Troubleshooting.pod @@ -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