RE: Make delete requests without impact on a database

2010-04-15 Thread David Florella
? Regards, David. -Message d'origine- De : phark...@gmail.com [mailto:phark...@gmail.com] De la part de Perrin Harkins Envoyé : jeudi 15 avril 2010 02:36 À : Dan Nelson Cc : David Florella; mysql@lists.mysql.com Objet : Re: Make delete requests without impact on a database On Wed, Apr

Make delete requests without impact on a database

2010-04-14 Thread David Florella
Hi, I am using MySQL version 4.1.12-log. All the databases on it are using MyISAM database engine. Every day, I delete almost 9 rows on a table of 3 153 916 rows. To delete the rows, I use a request like this : DELETE QUICK FROM [table] WHERE [column] '2010-04-13 00:00:00'

Re: Make delete requests without impact on a database

2010-04-14 Thread Dan Nelson
In the last episode (Apr 14), David Florella said: I am using MySQL version 4.1.12-log. All the databases on it are using MyISAM database engine. Every day, I delete almost 9 rows on a table of 3 153 916 rows. To delete the rows, I use a request like this : DELETE QUICK FROM [table]

Re: Make delete requests without impact on a database

2010-04-14 Thread mos
It looks like you only want to keep the current data, perhaps the current day's worth, and delete the old data. I would store the data in separate MySIAM tables, each table would represent a date, like D20100413 and D20100414. Your program will decide which table to insert the data into by

Re: Make delete requests without impact on a database

2010-04-14 Thread Carsten Pedersen
Been there, done that. It's a maintenance nightmare. Another idea: Have a separate deleted table with the IDs of the rows that you consider deleted. Re-write your queries to do a left-join-not-in-the-other-table agains the delete table. Then, either wait for a maintenance window to delete the

Re: Make delete requests without impact on a database

2010-04-14 Thread mos
At 01:20 PM 4/14/2010, Carsten Pedersen wrote: Been there, done that. It's a maintenance nightmare. Why is it a maintenance nightmare? I've been using this technique for a couple of years to store large amounts of data and it has been working just fine. I have each table representing one

Re: Make delete requests without impact on a database

2010-04-14 Thread Carsten Pedersen
mos skrev: At 01:20 PM 4/14/2010, Carsten Pedersen wrote: Been there, done that. It's a maintenance nightmare. Why is it a maintenance nightmare? I've been using this technique for a couple of years to store large amounts of data and it has been working just fine. In a previous reply,

RE: Make delete requests without impact on a database

2010-04-14 Thread Daevid Vincent
-Original Message- From: Dan Nelson [mailto:dnel...@allantgroup.com] Sent: Wednesday, April 14, 2010 7:23 AM To: David Florella Cc: mysql@lists.mysql.com Subject: Re: Make delete requests without impact on a database In the last episode (Apr 14), David Florella said: I am using

Re: Make delete requests without impact on a database

2010-04-14 Thread Perrin Harkins
On Wed, Apr 14, 2010 at 10:22 AM, Dan Nelson dnel...@allantgroup.com wrote: Switch to InnoDB :) Seconded. No need to complicate your life with MyISAM workarounds when InnoDB solves this problem already. - Perrin -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To