Tag: postgresql
All the articles with the tag "postgresql".
PostgreSQL 19 vs 18: testing the foreign key claim, NOT IN, REPACK and parallel autovacuum
Postgres 18.7 and 19.0 on the same dedicated server: bulk loads into a table with a foreign key, single-row inserts, NOT IN on a million-row subquery, VACUUM FULL against REPACK and REPACK CONCURRENTLY under load, parallel autovacuum and the new lz4 TOAST default. Scripts and raw results included.
Postgres vs MySQL under load: reads, writes, updates and one open transaction
PostgreSQL 18 and MySQL 9.7 LTS behind the same Go shop on identical 2 vCPU machines, loaded with k6 until each one fails. Every run's result, the settings, why secondary index lookups cost InnoDB more, HOT updates, and the long transaction that turned the result around.
Postgres vs SQLite under load: where each one stops on one machine
PostgreSQL 18 and SQLite 3.53 behind the same Go shop on identical 2 vCPU machines, loaded with k6 until they pass their limits. All result tables, the syscall and lock measurements, the single writer pool, and the setup where SQLite stops being an option.
Postgres JSONB vs MongoDB under load: the numbers, the plans and the one GIN setting
PostgreSQL 18 JSONB and MongoDB 8.2 behind the same Go service, on two identical stacks run side by side with k6. Reads, inserts, updates, a mixed shop workload and 40-item documents, plus the EXPLAIN output that shows why the default GIN index makes Postgres fall over.
One index, 467x faster: reading a PostgreSQL B-tree from the inside
Five million rows, one customer, 54 ms with a sequential scan and 0.116 ms with a B-tree index. The EXPLAIN output line by line, the tree's real depth from pageinspect, what the index costs, and every command to repeat it.
Postgres vs MariaDB on two dedicated CPUs: the setup, the settings and every run
PostgreSQL 18 and MariaDB 12.3 behind the same Go service, loaded with k6 up to 3,200 users. Reads, writes, 20 million orders and a spike, with the machine sizes, the config files, the per-level tables and what a single run cannot tell you.
Ten Spring Boot speedups on one small app, with the commands and the numbers
An index found through pg_stat_statements, join fetch, JDBC batching that stays off with IDENTITY ids, a Caffeine cache, projections, open-in-view, keyset paging, parallel calls, gzip and a JDK AOT cache. Each one with the code, the command that measures it and the output from one laptop.