Updated on 2024-10-14 GMT+08:00

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 UPDATE and DELETE operations generate huge disk page fragments, which reduces query efficiency. VACUUM FULL can restore disk page fragments and return them to the OS.

  1. Run the VACUUM FULL statement.

    Do VACUUM FULL to the product_info table.
    1
    openGauss=# VACUUM FULL product_info
    
    VACUUM