Help Center > > FAQs> Product Consulting> Does the Optimize Table Operation Lock Tables on an RDS DB Instance?

Does the Optimize Table Operation Lock Tables on an RDS DB Instance?

Updated at: Apr 20, 2020 GMT+08:00

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, the table locking duration will be longer. Therefore, you are advised to perform the OPTIMIZE TABLE operation during off-peak hours.

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?







Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel