<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <title>Practical notes on PostgreSQL caching — pg_local_cache</title>
  <subtitle>Measure the read path, understand invalidation, and make batch reads predictable. Field notes with SQL, trade-offs, and reproducible checks.</subtitle>
  <id>https://profundium.github.io/pg_local_cache/blog/</id>
  <link href="https://profundium.github.io/pg_local_cache/feed.xml" rel="self" type="application/atom+xml"/>
  <link href="https://profundium.github.io/pg_local_cache/blog/"/>
  <updated>2026-09-22T00:00:00+00:00</updated>
  <author><name>pg_local_cache contributors</name><uri>https://github.com/profundium/pg_local_cache/graphs/contributors</uri></author>
  <entry>
    <title>Batch PostgreSQL reads without losing order or missing keys</title>
    <id>https://profundium.github.io/pg_local_cache/blog/ordered-batch-reads/</id>
    <link href="https://profundium.github.io/pg_local_cache/blog/ordered-batch-reads/"/>
    <published>2026-09-22T00:00:00+00:00</published>
    <updated>2026-09-22T00:00:00+00:00</updated>
    <summary>Replace N+1 primary-key queries while preserving duplicate IDs, input order, NULL positions and missing rows. Compare ANY, WITH ORDINALITY and SQL mget.</summary>
  </entry><entry>
    <title>When a PostgreSQL row cache helps: measure the whole read</title>
    <id>https://profundium.github.io/pg_local_cache/blog/measure-postgresql-row-cache/</id>
    <link href="https://profundium.github.io/pg_local_cache/blog/measure-postgresql-row-cache/"/>
    <published>2026-09-22T00:00:00+00:00</published>
    <updated>2026-09-22T00:00:00+00:00</updated>
    <summary>Design a fair PostgreSQL row-cache comparison using prepared SQL, SQL mget and RESP MGET. Separate warm reads, misses, batch sizes, writes and client costs.</summary>
  </entry><entry>
    <title>PostgreSQL cache invalidation: the late-fill race</title>
    <id>https://profundium.github.io/pg_local_cache/blog/cache-aside-late-fill/</id>
    <link href="https://profundium.github.io/pg_local_cache/blog/cache-aside-late-fill/"/>
    <published>2026-09-22T00:00:00+00:00</published>
    <updated>2026-09-22T00:00:00+00:00</updated>
    <summary>Walk through a cache-aside race where an old read refills a deleted key after commit. Understand publication fencing, snapshots, rollback and request-local caches.</summary>
  </entry>
</feed>
