Does the OPTIMIZE TABLE Operation Lock Tables on an RDS DB Instance?
When the OPTIMIZE TABLE operation is performed on an RDS DB instance, the tables are locked only for a short period of time. During the table locking period, DML operations can be performed but DDL operations cannot. DML will recreate tables, which consumes CPU and disk resources. If there are a large number of concurrent DML operations, the table will be locked for longer. To avoid impacting services, perform the OPTIMIZE TABLE operation during off-peak hours.
Database Usage FAQs
- Does MySQL 8.0 Support Full-Text Search?
- How Do I Use DAS to Query SQL Statements?
- How Do I Use the mysqlbinlog Tool?
- How Do I View Session IDs and Login and Logout Time of a Database?
- How Do I Create a Scheduled Task?
- What Should I Do If Garbled Characters Are Displayed After SQL Query Results Are Exported to an Excel File?
- Does the OPTIMIZE TABLE Operation Lock Tables on an RDS DB Instance?
- Why Is an Error Reported When I Attempt to Delete a Database from RDS for SQL Server Primary/Standby DB Instances?
- What Should I Do If My root Account Was Deleted by Mistake?
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbotmore