Re: AW: quick retrieval help

[prev] [thread] [next] [Date index for 2005/01/14]

From: Peter Speltz
Subject: Re: AW: quick retrieval help
Date: 08:13 on 14 Jan 2005
thanks. great. it seems easy now i understand it. do you expect to use this a
lot and that it will give you app a nice performance boost?  

--- Hartmaier Alexander <Alexander.Hartmaier@xxxxxxxxx.xx> wrote:

> Yes that's the point ;-)
> Works as expected, thanks Aleksandr!
> 
> -Alex
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: Peter Speltz [mailto:peterspeltz@xxxxx.xxx] 
> Gesendet: Freitag, 14. Januar 2005 09:07
> An: class dbi list
> Betreff: Re: quick retrieval help
> 
> 
> > >  
> > >
> > Most probably you're talking about:
> > 
> > my @interfaces = map NAC::Interface->construct($_), 
> > $sth_int_down->fetchall_hash;
> > foreach (@interfaces) {
> >     print $_->id
> > }
> > 
> 
> I have never understood this construct method and have been wanting too for a
> while. Can someone tell me if this is a accurate undertanding?
> 
> construct takes a hash and turns it into an object. You execute a sql
> statement
> to retrieve the data efficiently-- joins and all that -- so that several
> queries are not executed to create the objects as happens typically when an
> object has_a and has_many things. So something like the above example can be
> much faster than a simple retrieve_all. 
> 
> Is that on target?
> 
> thanks.
> 
> =====
> pjs
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
> Hinweis: Dieses E-mail kann vertrauliche und geschützte Informationen
> enthalten.
> Sollten Sie nicht der beabsichtigte Empfänger sein, verständigen Sie bitte
> den Absender und löschen Sie dieses E-mail dann sofort.
> 
> Notice: This e-mail contains information that is confidential and may be
> privileged.
> If you are not the intended recipient, please notify the sender and then
> delete this e-mail immediately.
> *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
> 


=====
pjs


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - 250MB free storage. Do more. Manage less. 
http://info.mail.yahoo.com/mail_250

AW: quick retrieval help
Hartmaier Alexander 08:09 on 14 Jan 2005

Re: AW: quick retrieval help
Peter Speltz 08:13 on 14 Jan 2005

Generated at 17:42 on 27 Jan 2005 by mariachi v0.52