<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>end0tknr</author_name>
  <author_url>https://blog.hatena.ne.jp/end0tknr/</author_url>
  <blog_title>end0tknr's kipple - web写経開発</blog_title>
  <blog_url>https://end0tknr.hateblo.jp/</blog_url>
  <categories>
    <anon>postgres</anon>
  </categories>
  <description>販売管理システムの受注明細のようなデータを1つのtableに対してレコードを追加し続け、巨大になったtableがあるとします。 このようなtableでは、indexを設定していたとしても、indexファイルまで巨大になり、selec等のCRUD処理だけでなく、vacuumの処理速度まで遅くなってしまいます。 postgresでは、そのようなケースに備えて、パーティショニングという機能があります。次のsqlは、order_rawテーブルをorder_raw_200901とorder_raw_200902に分割する手順を示しています。 -- もとtable CREATE TABLE order_r…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fend0tknr.hateblo.jp%2Fentry%2F20090113%2F1231840075&quot; title=&quot;postgresで巨大レコード数のtableを扱うなら、パーティショニング - end0tknr&amp;#39;s kipple - web写経開発&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-01-13 18:47:55</published>
  <title>postgresで巨大レコード数のtableを扱うなら、パーティショニング</title>
  <type>rich</type>
  <url>https://end0tknr.hateblo.jp/entry/20090113/1231840075</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
