From the course: Advanced SQL for Query Tuning and Performance Optimization
Unlock the full course today
Join today to access over 24,400 courses taught by industry experts.
Solution: Analyze schema statistics - SQL Tutorial
From the course: Advanced SQL for Query Tuning and Performance Optimization
Solution: Analyze schema statistics
(upbeat music) - [Narrator] We would use the ANALYZE command and specify the name of the table that we want to analyze and update the statistics on. In this case, it would be ANALYZE sensor_metrics;.
Contents
-
-
-
-
-
-
-
-
-
(Locked)
Collect statistics about data in tables3m 21s
-
(Locked)
Analyzing execution statistics with pg_stat_statements1m 54s
-
(Locked)
Reviewing execution plans with the auto_explain module2m 34s
-
(Locked)
Additional analysis with other pg_stats data1m 26s
-
(Locked)
Challenge: Analyze schema statistics23s
-
(Locked)
Solution: Analyze schema statistics16s
-
(Locked)
-
-