Finding the Best Practices for long alter table queries

0

Hi,
With Aurora what is the best practices to perform long alter table operations without downtime?
Is there equivalent of pt-online-schema-change which can run alter table without locking ?

vhan
preguntada hace 3 años658 visualizaciones
1 Respuesta
0

Sure, you could use percona tool for alter table.

you could find reference as below link.
https://medium.com/@soomiq/altering-large-mysql-table-using-percona-toolkit-on-aws-aurora-acb6e57a33d4

But I recommend that you could use gh-ost for that. it is trigger-less which I think much better than percona online schema change tool. I have tested and it works fine with aurora 5.6 & 5.7

https://github.com/github/gh-ost

Hope this could solve your problem.

respondido hace 3 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas