How do i modify a MySQL table where hundreds of records are being inserted every second without having any downtime / losing data or errors .
Ex: Adding a new field
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Gut feel says that you should avoid modifying the table. An alternative would be to add your column to a new table and link to the original table to maintain referential integrity, so the original table remains untouched.
Another, fairly typical approach would be to create a new table with the added column, swap it out with the old table and then add the data back to the new table. Not a great solution though.
MySQL gurus will likely disagree with me.