I made pull request with quick fix on github
https://github.com/dbsrgits/dbix-class/pull/29

Quote:
It is a recursive attributes hash chain when call search on the same
resultset many times. It looks like pseudo-leak with long-lived resultsets.

In our application (that long-lived daemon) we use something like this:

sub periodic_refresh {
  state $rs = 
$schema->resultset('ServerBackend')->search({status=>'active'},{order_by=>'me.id',prefetch=>'Server'});
  my @fresh_backends = $rs->all; # now we use this workaround:
$rs->search; but it is slower because new resultset created on every
iteration
  # other refresh logic
}

Please review, and apply if possible! ;-)

--
Vladimir Timofeev <vovk...@gmail.com>

_______________________________________________
List: http://lists.scsys.co.uk/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.scsys.co.uk

Reply via email to