Reputation: 10961
There is a database table for logging purpose only so old records are useless. Is there an easy way to automatically delete old records and keep most recent records only (say, records created in last 7 days, or, the latest 1 million records). The table uses MyISAM engine and have a timestamp column but do not have primary key (for fast insertion).
Upvotes: 0
Views: 2613
Reputation: 1165
U can put your Logic in Insert Trigger to delete your old records
Upvotes: 0