Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

josebaroni <- postgres tweaks e retest #51

Merged
merged 3 commits into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading