Skip to content

Commit 6ea3676

Browse files
committed
Merge branch 'perfdocs' of https://github.com/sarat0681/azure-docs-pr into perfdocs
2 parents c1f160d + 97fb15f commit 6ea3676

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

articles/postgresql/flexible-server/how-to-bulkload_data.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The preferred method to load the data into the database is by copy command. If t
3333

3434
#### Drop indexes
3535

36-
Before a initial data load it is advised to drop all the indexes in the tables. It is always more efficient to create the indexes after the data load.
36+
Before an initial data load, it is advised to drop all the indexes in the tables. It is always more efficient to create the indexes after the data load.
3737

3838
#### Drop constraints
3939

@@ -43,7 +43,7 @@ To achieve strong performance, it's advised to drop unique key constraints befor
4343

4444
##### Foreign key constraints
4545

46-
It's is advised to drop foreign key constraints before initial data load and recreate once data load is completed.
46+
It's advised to drop foreign key constraints before initial data load and recreate once data load is completed.
4747

4848
Changing the `session_replication_role` parameter to replica also disables all foreign key checks.However, be aware making the change can leave data in an inconsistent state if not properly used.
4949

@@ -92,7 +92,7 @@ A value of 0.9 is always recommended.
9292

9393
`max_wal_size`
9494

95-
The max_wal_size can be set to maximum allowed value on the Flexible server, which is 64 GB while we do the initial data load.
95+
The max_wal_size can be set to the maximum allowed value on the Flexible server, which is 64 GB while we do the initial data load.
9696

9797
`wal_compression`
9898

articles/postgresql/flexible-server/how-to-high-io-utilization.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ ORDER BY duration DESC;
7575

7676
High IO can also be seen in scenarios where a checkpoint is happening too frequently. One way to identify this is by checking the Postgres log file for the following log text "LOG: checkpoints are occurring too frequently."
7777

78-
You could also investigate using an approach where periodic snapshots of `pg_stat_bgwriter` with a timestamp is saved.Using the snapshots saved the average checkpoint interval, number of checkpoints requested and number of checkpoints timed can be calculated.
78+
You could also investigate using an approach where periodic snapshots of `pg_stat_bgwriter` with a timestamp is saved. Using the snapshots saved the average checkpoint interval, number of checkpoints requested and number of checkpoints timed can be calculated.
7979

8080
#### Disruptive autovacuum daemon process
8181

@@ -147,11 +147,11 @@ select round (pg_wal_lsn_diff ('LSN value when run second time', 'LSN value when
147147

148148
##### `checkpoint_completion_target`
149149

150-
A good practice would be to set it to 0.9.As an example a value of 0.9 for a `checkpoint_timeout` of 5 minutes indicates the target to complete a checkpoint is 270 sec [0.9*300 sec].A value of 0.9 provides fairly consistent I/O load.A aggressive value of `check_point_completion_target` may result in increased IO load on the server.
150+
A good practice would be to set it to 0.9. As an example, a value of 0.9 for a `checkpoint_timeout` of 5 minutes indicates the target to complete a checkpoint is 270 sec [0.9*300 sec]. A value of 0.9 provides fairly consistent I/O load. An aggressive value of `check_point_completion_target` may result in increased IO load on the server.
151151

152152
##### `checkpoint_timeout`
153153

154-
The `checkpoint_timeout` value can be increased from default value set on the server.Please note while increasing the `checkpoint_timeout` take into consideration that increasing the value would also increase the time for crash recovery.
154+
The `checkpoint_timeout` value can be increased from default value set on the server. Please note while increasing the `checkpoint_timeout` take into consideration that increasing the value would also increase the time for crash recovery.
155155

156156
#### Autovacuum tuning to decrease disruptions
157157

articles/postgresql/flexible-server/how-to-pgdump-restore.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Before the starting the pg_dump process, consider if table vacuuming is necessar
4242
select schemaname,relname,n_dead_tup,n_live_tup,round(n_dead_tup::float/n_live_tup::float*100) dead_pct,autovacuum_count,last_vacuum,last_autovacuum,last_autoanalyze,last_analyze from pg_stat_all_tables where n_live_tup >0;
4343
```
4444

45-
The **dead_pct** column in the above query gives percentage of dead tuples when compared to live tuples.A high dead_pct value for a table might point to the table not being properly vacuumed.For tuning autovacuum, review the article [Autovacuum Tuning](./how-to-autovacuum-tuning.md).
45+
The **dead_pct** column in the above query gives percentage of dead tuples when compared to live tuples. A high dead_pct value for a table might point to the table not being properly vacuumed. For tuning autovacuum, review the article [Autovacuum Tuning](./how-to-autovacuum-tuning.md).
4646

4747

4848
As a one of case perform manual vacuum analyze of the tables that are identified.
@@ -109,9 +109,9 @@ Here's an example of how this syntax might appear:
109109

110110
Create a virtual machine in the same region, same availability zone (AZ) preferably where you have both your target and source servers or at least have the virtual machine closer to source server or a target server. Use of Azure Virtual Machines with high-performance local SSD is recommended. For more details about the SKUs review
111111

112-
[Edv4 and Edsv4-series](https://docs.microsoft.com/azure/virtual-machines/edv4-edsv4-series)
112+
[Edv4 and Edsv4-series](/azure/virtual-machines/edv4-edsv4-series)
113113

114-
[Ddv4 and Ddsv4-series](https://docs.microsoft.com/azure/virtual-machines/ddv4-ddsv4-series)
114+
[Ddv4 and Ddsv4-series](/azure/virtual-machines/ddv4-ddsv4-series)
115115

116116
## Next steps
117117

0 commit comments

Comments
 (0)