/plushcap/analysis/timescale/timescale-using-pg-stat-statements-to-optimize-queries

Using pg_stat_statements to Optimize Queries

What's this blog post about?

The text discusses the use of pg_stat_statements, a popular PostgreSQL extension that records information about running queries, to optimize queries in Timescale services. It explains how this tool can help identify problematic or slow Postgres queries and provides insight into database performance. The text also covers how to query pg_stat_statements in Timescale and highlights the importance of filtering data by userid for security purposes. Additionally, it offers tips on identifying long-running PostgreSQL queries, improving Hit Cache Ratio, and finding queries with high standard deviation.

Company
Timescale

Date published
June 24, 2024

Author(s)
Ryan Booz

Word count
2222

Language
English

Hacker News points
None found.


By Matt Makai. 2021-2024.