I can’t say I’ve used the ARCHIVE storage engine before, but at the NY MySQL Meetup last night there was discussion of the improvements to ARCHIVE in 5.1 and the fact that you could not DELETE from archive. A simple test confirmed this indeed throws an error.
DROP TABLE IF EXISTS url_log; CREATE TABLE url_log( log_id INT UNSIGNED NOT NULL AUTO_INCREMENT, log_date TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, user_id INT UNSIGNED NULL, url VARCHAR(100) NOT NULL, PRIMARY KEY (log_id)) ENGINE=ARCHIVE; DELETE FROM url_log; ERROR 1031 (HY000): Table storage engine for 'url_log' doesn't have this option
However, part of MySQL 5.1 which is RC status, there is partitioning. Thinking that one …
[Read more]