Updated on 2024-05-20 GMT+08:00

Collecting Statistics

Clearing invalid tuples in Ustore tables depends on the accuracy of statistics. Disabling track_counts and track_activities will cause tablespace bloat. By default, they are enabled. You are advised to enable them, except in performance-sensitive scenarios.

To enable them, run the following commands:

gs_guc reload -Z datanode -N all -I all -c "track_counts=on;"
gs_guc reload -Z datanode -N all -I all -c "track_activities=on;"

To disable them, run the following commands:

gs_guc reload -Z datanode -N all -I all -c "track_counts=off;"
gs_guc reload -Z datanode -N all -I all -c "track_activities=off;"