Doing VACUUM to a Table
If a large number of rows were updated or deleted during import, run VACUUM FULL before ANALYZE. A large number of updates and delete operations generate huge disk page fragments, which reduces the query efficiency. VACUUM FULL can restore disk page fragments and return them to the OS.
- Run the VACUUM FULL statement. Do VACUUM FULL to the product_info table:
1
VACUUM FULL product_info
VACUUM
Last Article: Analyzing a Table
Next Article: Managing Concurrent Write Operations
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.