<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
  <title>PostgreSQL 缓存实践笔记 — pg_local_cache</title>
  <subtitle>测量读取路径，理解失效机制，让批量读取结果可预期。提供 SQL、取舍说明与可复现检查。</subtitle>
  <id>https://profundium.github.io/pg_local_cache/zh/blog/</id>
  <link href="https://profundium.github.io/pg_local_cache/zh/feed.xml" rel="self" type="application/atom+xml"/>
  <link href="https://profundium.github.io/pg_local_cache/zh/blog/"/>
  <updated>2026-09-22T00:00:00+00:00</updated>
  <author><name>pg_local_cache 贡献者</name><uri>https://github.com/profundium/pg_local_cache/graphs/contributors</uri></author>
  <entry>
    <title>批量读取 PostgreSQL：保留顺序与缺失键</title>
    <id>https://profundium.github.io/pg_local_cache/zh/blog/ordered-batch-reads/</id>
    <link href="https://profundium.github.io/pg_local_cache/zh/blog/ordered-batch-reads/"/>
    <published>2026-09-22T00:00:00+00:00</published>
    <updated>2026-09-22T00:00:00+00:00</updated>
    <summary>替代 N+1 主键查询，同时保留重复 ID、输入顺序、NULL 位置和缺失行，比较 ANY、WITH ORDINALITY 与 SQL mget。</summary>
  </entry><entry>
    <title>PostgreSQL 行缓存何时有效：测量完整读取路径</title>
    <id>https://profundium.github.io/pg_local_cache/zh/blog/measure-postgresql-row-cache/</id>
    <link href="https://profundium.github.io/pg_local_cache/zh/blog/measure-postgresql-row-cache/"/>
    <published>2026-09-22T00:00:00+00:00</published>
    <updated>2026-09-22T00:00:00+00:00</updated>
    <summary>使用预备 SQL、SQL mget 与 RESP MGET 设计公平的 PostgreSQL 行缓存比较，分别考察热读取、未命中、批次大小、写入和客户端成本。</summary>
  </entry><entry>
    <title>PostgreSQL 缓存失效：延迟填充竞态</title>
    <id>https://profundium.github.io/pg_local_cache/zh/blog/cache-aside-late-fill/</id>
    <link href="https://profundium.github.io/pg_local_cache/zh/blog/cache-aside-late-fill/"/>
    <published>2026-09-22T00:00:00+00:00</published>
    <updated>2026-09-22T00:00:00+00:00</updated>
    <summary>逐步分析旧读取如何在提交后重新填入已删除的缓存键，并理解发布屏障、快照、回滚与请求本地缓存。</summary>
  </entry>
</feed>
