Mark Martinec wrote:

> ALTER TABLE msgs       ADD partition_tag integer DEFAULT 0;
> ALTER TABLE msgrcpt    ADD partition_tag integer DEFAULT 0;
> ALTER TABLE quarantine ADD partition_tag integer DEFAULT 0;
> ALTER TABLE maddr      ADD partition_tag integer DEFAULT 0;
> ALTER TABLE maddr DROP CONSTRAINT maddr_email_key;
> ALTER TABLE maddr ADD  CONSTRAINT maddr_email_key UNIQUE 
> (partition_tag,email);
[...]
> Yes, this is what I have in mind as a typical setup.
> Have all 53 partitions present, most of them being empty.
> A weekly maintenance operation would drop one (or few) oldest
> weekly partitions, and re-create empty partitions.
> Instant maintenance, not affecting amavisd normal operation.

One word of caution to those that are willing to rush to this new 
supercool-feature: partitioning is supported starting MySQL 5.1, and that 
version is still BETA.

For this reason I cannot go update my production code and I'll have to stick 
to manual partitioning over different tablesets.

Paolo

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to