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.

    openGauss=# VACUUM FULL product_info
编组 3备份
    openGauss 2024-04-12 00:46:38