<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Something like this?<br>
<br>
<a class="moz-txt-link-freetext" href="http://search.cpan.org/~ash/DBIx-Class-0.08013/lib/DBIx/Class/ResultClass/HashRefInflator.pm">http://search.cpan.org/~ash/DBIx-Class-0.08013/lib/DBIx/Class/ResultClass/HashRefInflator.pm</a><br>
<br>
But i don't think it will allow you to call the accessor methods
though, but i could be wrong ;)<br>
<br>
Ben<br>
<br>
<br>
John Ramsden wrote:
<blockquote cite="mid:809063.39035.qm@web26604.mail.ukl.yahoo.com"
 type="cite">
  <table border="0" cellpadding="0" cellspacing="0">
    <tbody>
      <tr>
        <td
 style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;"
 valign="top">A Catalyst / DBIx::Class app I am maintaining is running
very<br>
slowly for certain pages where I have needed to copy several<br>
DBIx::Class resultsets into the Catalyst hash.<br>
        <br>
It looks like memory is the problem, as a dump of just a single<br>
resultset reveals a vast heap of gobbledegook for each result,<br>
which may be useful for DBIx::Class itself but is none to<br>
Catalyst.<br>
        <br>
So I wondered if there was a simple way to convert a resultset,<br>
with all its accessor methods and the above-mentioned rubbish,<br>
into a lean-and-mean vanilla read-only structure comprising just<br>
the returned columns.<br>
        <br>
In principle I could of course do it manually. But this would be<br>
tedious as there are a dozen or more tables involved, and in any<br>
case there is no point reinventing the wheel if this is a common<br>
requirement already fulfilled by a standard method.<br>
        <br>
Thanks in anticipation.<br>
        <br>
        <br>
Regards<br>
        <br>
John Ramsden<br>
        <br>
        <br>
        <br>
        </td>
      </tr>
    </tbody>
  </table>
  <br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
List: <a class="moz-txt-link-freetext" href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class</a>
IRC: irc.perl.org#dbix-class
SVN: <a class="moz-txt-link-freetext" href="http://dev.catalyst.perl.org/repos/bast/DBIx-Class/">http://dev.catalyst.perl.org/repos/bast/DBIx-Class/</a>
Searchable Archive: <a class="moz-txt-link-freetext" href="http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk">http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk</a></pre>
</blockquote>
</body>
</html>