mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-25 17:52:38 +00:00
Update cheatsheets
This commit is contained in:
17
pgbench
Normal file
17
pgbench
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pgbench
|
||||
|
||||
> Run a benchmark test on PostgreSQL.
|
||||
> More information: <https://www.postgresql.org/docs/10/pgbench.html>.
|
||||
|
||||
- Initialize a database with a scale factor of 50 times the default size:
|
||||
|
||||
`pgbench --initialize --scale={{50}} {{database_name}}`
|
||||
|
||||
- Benchmark a database with 10 clients, 2 worker threads, and 10,000 transactions per client:
|
||||
|
||||
`pgbench --client={{10}} --jobs={{2}} --transactions={{10000}} {{database_name}}`
|
||||
Reference in New Issue
Block a user