27 Feb
2004
27 Feb
'04
6:53 a.m.
Star War wrote:
I have changed it into <dtml-in "Catalog(..., sort_on=..., sort_order=...)" size=1>, it just takes 2 seconds. I'm not sure if it is normal. Does somebody has a better way to get the lastest date?
There is really no need to sort the query. You just need to find the largest date. So how about something like: last_changed = max([ b.bobobase_modification_time for b in context.Catalog(...,) ]) regards Max M