[Zope-dev] ZMailIn patch (index 'date' as DateTime object)

Steve Alexander steve@cat-box.net
Fri, 09 Nov 2001 10:21:23 +0000


Jean Jordaan wrote:

>
> But it's still a string, and can't be used in comparisons 
> with DateTimes. Why not just use 'datetime', also sortable?


DateTime objects are huge.

There's this trade-off between cacheing up the presentation of dates, 
and their compactness for storage.

In general in Zope, you want rendering speed and you don't care about 
the storage space. However, if you have a lot of dates, but you're only 
looking at a few of them at once, you'll want to optimise it the other 
way around.

--
Steve Alexander
Software Engineer
Cat-Box limited