Reparación de MySQL con rendimiento de Keycache

I have a MyISAM table with 125M records. I added 25M more records to it via: ALTER TABLE x DISABLE KEYS; INSERT INTO x SELECT * FROM y; ALTER TABLE x ENABLE KEYS;

Currently ALTER TABLE x ENABLE KEYS is in the "Repair with Keycache" state. How fast is this repair operation? Is it at least as fast as the case if I didn't disable the index and let rows be added with indexes updated on the fly or is it slower?

If I kill the query now, DROP all the indexes and then re-create them again to force repair by sort (my buffer sizes are large enough) would I risk losing any data?

preguntado el 08 de enero de 11 a las 22:01

You only risk losing your data, if you didn't backup it first. You did backup it, didn't you? -

I do not think the data will be lost if you kill this query. But dropping all indexes and re-creating them will take time as well. Right? -

0 Respuestas

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.