If you are moving off Oracle to Postgres or MySQL, most of the work goes into schema, data types, and PL/SQL. Oracle's caching features don't migrate over, and they are easy to miss because nothing breaks without them. The difference shows up under production load, when the reads Oracle was absorbing land on your new database.
Oracle's server result cache keeps query results in memory and discards them when the underlying table changes, so a repeated query returns the stored answer instead of running again. In the default MANUAL mode, it caches only the queries someone tagged. True Cache, introduced in 23ai, is a read-only instance in front of the primary that keeps frequently read data blocks in memory and serves the read queries routed to it.
Postgres has neither a built-in result cache nor a feature like True Cache; its closest substitute is a read replica. Postgres doesn't keep finished query results, so a repeated query executes every time it is called. MySQL is in a similar spot: it removed its query cache in 8.0.
AI agents widen the gap. A single agent working through a task issues reads in bursts and often repeats the same read, which is exactly the pattern a result cache was built for. On Postgres or MySQL, nothing in the database natively catches those repeats, so each one runs, on top of the read load your application already sends.
Once you're on Postgres or MySQL:
- The same query shapes climb to the top of your stats by call count and total time, in
pg_stat_statements on Postgres or events_statements_summary_by_digest on MySQL.
- The instinctive fix is a read replica. It spreads the repeated queries across more machines but still runs every one, and it adds cost and replication lag, so reads can come back slightly behind the primary, something the result cache never did.
If you have not cut over yet, pull the list now. On Oracle, V$RESULT_CACHE_OBJECTS shows each cached result and how often it has been read (SCAN_COUNT). It only shows what is cached at that moment, so check during peak traffic. If you run True Cache, add the queries running on that instance. These are the queries to plan for.
If you're moving from Oracle to Postgres, Readyset's VP of Product Tanmay Sinha and Senior Developer Akhil Reddy Banappagari from HexaCluster are teaming up for a webinar on December 2, 10:00 am ET: Oracle to PostgreSQL: Modernize for Agentic Workloads Without Sacrificing Performance. HexaCluster covers the migration itself, and Readyset shows how to fill the gap that the result cache and True Cache leave behind without read replicas, code changes, or invalidation logic. Register here.
PostgreSQL 19 released
Version 19 shipped on November 19 with REPACK, which replaces VACUUM FULL and CLUSTER, and whose CONCURRENTLY option rebuilds a table without blocking reads or writes. The new pg_plan_advice extension lets you stabilize plan choices, and its companion pg_stash_advice reapplies them by query identifier, so a good plan can be pinned without touching the application. Logical replication can now be enabled without a server restart, and it replicates sequence values.
Why MySQL OR is slower than IN
MySQL walks an OR list one term at a time for every row it evaluates, whereas IN binary-searches the same values, so the cost of OR grows with the length of the list. Jinyou Ma found 99% of CPU time in Item_cond_or::val_int() on MySQL 8.4, and names two ways a long list loses range access entirely, including exceeding range_optimizer_max_mem_size, which defaults to 8 MB.
The hidden costs of CREATE TEMP TABLE
On Postgres 18.6 at 32 clients, a CTE doing the same work ran 23 times the TPS of a temp table created per transaction, 86,997 against 3,783. Even a one-column CREATE TEMP TABLE writes 13 catalog rows and sends invalidation messages that every other session has to read, so the cost lands across the server. With 5,000 idle sessions, temp-table DDL reached 127 TPS against a 500 TPS target in one run and 249 in another.
Large Postgres instances love huge pages
Postgres defaults huge_pages to try, and most systems reserve none, so it falls back to 4 kB pages without complaint and the page tables bloat. Kaarel Moppel puts the gain at 10 to 20% on instances with shared_buffers of 32 GB or more under heavy concurrency, with a read-only pgbench run on an m7gd.metal showing close to 20%.
New on our blog:
Readyset Contributes to MySQL and Percona Server: STWCS with GTID in the OK_PACKET: We've opened pull requests against MySQL and Percona Server so that START TRANSACTION WITH CONSISTENT SNAPSHOT returns the exact GTID set of the snapshot it opens, in one round trip, with no global lock and no RELOAD privilege. Every tool that copies data out of MySQL (caches, CDC pipelines, search indexes, backups) needs that synchronization point, and the standard four-statement recipe relies on FLUSH TABLES WITH READ LOCK, which blocks every write on the server. The post walks through the commit-pipeline design and the open pull requests against MySQL and Percona Server.
We're getting more social, catch the latest on Bluesky, X, dev.to, and Medium too.
Know a database aficionado who'd appreciate this? Forward it their way.