diff --git a/participantes/josebaroni/README.md b/participantes/josebaroni/README.md index d06b48713..66d4bcd11 100644 --- a/participantes/josebaroni/README.md +++ b/participantes/josebaroni/README.md @@ -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) \ No newline at end of file +- [Repositório](https://github.com/zebaroni/rinha-backend-2024-q1) \ No newline at end of file diff --git a/participantes/josebaroni/config/database/postgresql.conf b/participantes/josebaroni/config/database/postgresql.conf index a7d25df9f..64b3afa49 100644 --- a/participantes/josebaroni/config/database/postgresql.conf +++ b/participantes/josebaroni/config/database/postgresql.conf @@ -1,15 +1,15 @@ 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 @@ -17,4 +17,10 @@ log_lock_waits = off log_error_verbosity = terse log_min_messages = panic log_min_error_statement = panic -synchronous_commit=off \ No newline at end of file +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 diff --git a/participantes/josebaroni/testada b/participantes/josebaroni/testada deleted file mode 100644 index 0473e5c44..000000000 --- a/participantes/josebaroni/testada +++ /dev/null @@ -1,2 +0,0 @@ -testada em qua 07 fev 2024 19:30:04 -03 -abra um PR removendo esse arquivo caso queira que sua API seja testada novamente