[dev] Re: MAX datatree attribute
Chuck Hagenbuch
chuck at horde.org
Mon Feb 14 06:13:01 PST 2005
Quoting Vilius?umskas <vilius at lnk.lt>:
> I'm on the way by implementing getLastMessage() method in Agora. Before
> I will brake something I wanted to ask you (experienced Horde
> developers) about my implementation logistics.
>
> I'm going to adapt current buildAttributeQuery() in DataTree::sql class
> for the MAX() SQL statement, write getByMaxAttribute() method and use
> it in getLastMessage() for fetching last message data.
>
> Is this optimal way? Or there is something that I overlooked.
I'd just store the last message in the forum's attributes. Alternately
you could see if you could add max() support to
Horde_SQL::buildClause().
-chuck
--
"But she goes not abroad in search of monsters to destroy." - John
Quincy Adams
More information about the dev
mailing list