Michael,
> (test yourself) Mark Martinec: see below, I mentioned the db
> optimization stuff with one of the queries before: maybe we can get this
> into next rev?
> [...]
> and, check to see if this was fixed: (noop, its not:
> Mark: this works a LOT FASTER then the default: (and, partition_tag is
> NEVER null, by default it will be 0 unless you change it)
>
> $sql_clause{sel_quar}=
> "SELECT mail_text FROM quarantine".
> " WHERE partition_tag =? AND mail_id=?".
> " ORDER BY chunk_ind";
> this screws up the optimizer:
> 'SELECT mail_text FROM quarantine'.
> ' WHERE coalesce(partition_tag,0)=coalesce(?,0) AND mail_id=?'.
> ' ORDER BY chunk_ind',
Already removed the 'coalesce' in 2.7.0 pre-releases starting
with 2.7.0-pre5, thanks for pointing it up.
> we use an isoyearweek (due to archiving)
The current 2.7.0 pre-releases offer the function iso8601_yearweek,
which returns a number: $year * 100 + $weeknumber
Mark
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
Please visit http://www.ijs.si/software/amavisd/ regularly
For administrativa requests please send email to rainer at openantivirus dot
org