<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Database on Kaisekukun</title><link>https://netguide.jp/zh/tags/database/</link><description>Recent content in Database on Kaisekukun</description><generator>Hugo -- gohugo.io</generator><language>zh</language><copyright>Kaisekukun</copyright><atom:link href="https://netguide.jp/zh/tags/database/index.xml" rel="self" type="application/rss+xml"/><item><title>PostgreSQL Maintenance 基础 for Stable Production</title><link>https://netguide.jp/zh/software/postgres-database-maintenance/</link><pubDate>Mon, 22 Jun 2026 15:00:00 +0900</pubDate><guid>https://netguide.jp/zh/software/postgres-database-maintenance/</guid><description>&lt;img src="https://netguide.jp/img/thumbnail/postgres-database-maintenance-zh.png" alt="Featured image of post PostgreSQL Maintenance 基础 for Stable Production" /&gt;&lt;p&gt;When running PostgreSQL in production, performance can degrade and transactions can bloat without you noticing. This article covers the maintenance fundamentals you need to keep PostgreSQL running smoothly.&lt;/p&gt;
&lt;h2 id="1-vacuum-cleaning-up-dead-tuples"&gt;1. VACUUM: Cleaning Up Dead Tuples
&lt;/h2&gt;&lt;p&gt;PostgreSQL uses MVCC (Multi-Version Concurrency Control), which means old row versions (dead tuples) linger in tables after updates and deletes. Left unchecked, tables bloat and performance suffers.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sql" data-lang="sql"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;-- Run a standard VACUUM (does not block other operations)
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;VACUUM&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;-- Reclaim space to the OS (acquires table lock)
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;VACUUM&lt;/span&gt; &lt;span style="color:#66d9ef"&gt;FULL&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Production environments have &lt;code&gt;autovacuum&lt;/code&gt; enabled by default, but busy tables may need tuned settings:&lt;/p&gt;</description></item><item><title>PostgreSQL Performance Tuning for 网络 Developers</title><link>https://netguide.jp/zh/software/postgres-performance-tuning/</link><pubDate>Mon, 20 Apr 2026 12:00:00 +0900</pubDate><guid>https://netguide.jp/zh/software/postgres-performance-tuning/</guid><description>&lt;img src="https://netguide.jp/img/thumbnail/postgres-performance-tuning-zh.png" alt="Featured image of post PostgreSQL Performance Tuning for 网络 Developers" /&gt;&lt;p&gt;Optimize slow-performing applications by profiling database queries in PostgreSQL with EXPLAIN. Slow queries are the single largest bottleneck in most web applications. This guide walks you through essential index optimization guidelines, how to read execution plans, and key configuration parameter adjustments for self-hosted or managed databases.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="1-designing-effective-indexes"&gt;1. Designing Effective Indexes
&lt;/h2&gt;&lt;p&gt;The primary bottleneck in modern databases is Disk I/O (reading block files from storage). Adding indexes allows PostgreSQL to query data records directly instead of scanning the entire table.&lt;/p&gt;</description></item></channel></rss>