Skip to content

Commit

Permalink
Merge pull request #51 from zebaroni/add/josebaroni
Browse files Browse the repository at this point in the history
josebaroni <- postgres tweaks e retest
  • Loading branch information
zanfranceschi authored Feb 8, 2024
2 parents d1b4e6b + e5132a3 commit ddfd84b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 16 deletions.
8 changes: 1 addition & 7 deletions participantes/josebaroni/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,4 @@ Stack:

Autor:
- [LinkedIn](https://www.linkedin.com/in/josebaroni/)
- [Repositório](https://github.com/zebaroni/rinha-backend-2024-q1)

Resultados:
- mean: **2ms**
- max: **18ms**

![Test Screenshot](https://raw.githubusercontent.com/zebaroni/rinha-backend-2024-q1/master/test-ss.png)
- [Repositório](https://github.com/zebaroni/rinha-backend-2024-q1)
20 changes: 13 additions & 7 deletions participantes/josebaroni/config/database/postgresql.conf
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
listen_addresses = '*'
max_connections = 250
max_connections = 100
superuser_reserved_connections = 3
unix_socket_directories = '/var/run/postgresql'
shared_buffers = 512MB
shared_buffers = 200MB
work_mem = 4MB
maintenance_work_mem = 256MB
effective_cache_size = 1GB
wal_buffers = 64MB
effective_cache_size = 200MB
wal_buffers = 128MB
checkpoint_completion_target = 0.9
random_page_cost = 4.0
effective_io_concurrency = 10
random_page_cost = 2.0
effective_io_concurrency = 3
autovacuum = on
log_statement = 'none'
log_duration = off
log_lock_waits = off
log_error_verbosity = terse
log_min_messages = panic
log_min_error_statement = panic
synchronous_commit=off
max_wal_size=8GB
checkpoint_timeout=500

# blz, to apelando, mas ainda é persistente... deixa durabilidade pro meu trampo kek
# caso ache muita apelacao, só remover essas 2 linhas
synchronous_commit=off
fsync=off
2 changes: 0 additions & 2 deletions participantes/josebaroni/testada

This file was deleted.

0 comments on commit ddfd84b

Please sign in to comment.