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

Oleg Pronin syber.rus at gmail.com
Sun Jul 20 15:11:00 BST 2008


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

2008/7/20 Matt S Trout <dbix-class at trout.me.uk>:

> On Thu, Jul 17, 2008 at 07:18:08PM +0400, Oleg Pronin wrote:
> > 2008/7/16 Hartmaier Alexander <Alexander.Hartmaier at t-systems.at>:
> >
> > >  This looks promising to me (but I'm sure mst will find an argument
> > > against it ;-).
> > >
> >
> > The main argument is perfomance for this thing (it does matter in huge
> > projects).
> >
> >
> > > If not it would be a great  addition to dbic or a nice standalone
> module!
> > >
> >
> > maybe, (if i will understand how to make it more convenient for
> configuring)
>
> Any reason why you can't do it via resultset attributes like Cursor::Cach=
ed
> does?
>
> --
>      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 platfor=
m?
> http://chainsawblues.vox.com/
> http://www.shadowcat.co.uk/servers/
>
> _______________________________________________
> 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.rawmode.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20080720/951=
1f1f3/attachment.htm


More information about the DBIx-Class mailing list