REPOST: [Dbix-class] DBIx::Class and caching

Matt S Trout dbix-class at trout.me.uk
Mon Jul 21 22:34:15 BST 2008


On Sun, Jul 20, 2008 at 06:11:00PM +0400, Oleg Pronin wrote:
> First that comes in my mind is that 'single' does not accept attributes. But
> caching in 'single' is often needed.
> Doing $rs->search(...)->single() is not pretty

Right, but single doesn't accept attributes specifically to avoid burning
CPU constructing an extra rs. I guess we could make single() support it
and have it do the search() under the hood? No objections here to a patch
for that.

-- 
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director                    http://www.shadowcat.co.uk/catalyst/
 Shadowcat Systems Ltd.  Want a managed development or deployment platform?
http://chainsawblues.vox.com/            http://www.shadowcat.co.uk/servers/



More information about the DBIx-Class mailing list