Skip to content

Commit 00e386e

Browse files
authored
Merge pull request #232153 from AwdotiaRomanowna/patch-28
Update how-to-optimize-query-stats-collection.md
2 parents eeb6a32 + 70c7be5 commit 00e386e

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

articles/postgresql/flexible-server/how-to-optimize-query-stats-collection.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,16 @@ This article describes how to optimize query statistics collection on an Azure D
2121

2222
If you have unique queries with long query text or you don't actively monitor **pg_stat_statements**, disable **pg_stat_statements** for best performance. To do so, change the setting to `pg_stat_statements.track = NONE`.
2323

24-
Some customer workloads have seen up to a 50 percent performance improvement when **pg_stat_statements** is disabled. The tradeoff you make when you disable pg_stat_statements is the inability to troubleshoot performance issues.
25-
2624
To set `pg_stat_statements.track = NONE`:
2725

2826
- In the Azure portal, go to the [PostgreSQL resource management page and select the server parameters blade](concepts-server-parameters.md).
2927
- Use the [Azure CLI](connect-azure-cli.md) az postgres server configuration set to `--name pg_stat_statements.track --resource-group myresourcegroup --server mydemoserver --value NONE`.
3028

3129
## Use the Query Store
3230

33-
The [Query Store](concepts-query-store.md) feature in Azure Database for PostgreSQL provides a more effective method to track query statistics. We recommend this feature as an alternative to using *pg_stat_statements*.
31+
Using the [Query Store](concepts-query-store.md) feature in Azure Database for PostgreSQL - Flexible Server offers a different way to monitor query execution statistics. To prevent performance overhead, it is recommended to utilize only one mechanism, either the pg_stat_statements extension or the Query Store.
3432

3533
## Next steps
3634

37-
Consider setting `pg_stat_statements.track = NONE` in the [Azure portal](concepts-server-parameters.md) or by using the [Azure CLI](connect-azure-cli.md).
38-
39-
For more information, see:
40-
4135
- [Query Store usage scenarios](concepts-query-store-scenarios.md)
4236
- [Query Store best practices](concepts-query-store-best-practices.md)

0 commit comments

Comments
 (0)