概要 原著者の許諾を得て翻訳・公開いたします。 英語記事: Partition and conquer 原文公開日: 2017/11/07 著者: Sergey Dolganov、Denis Lifanov サイト: https://evilmartians.com/ 原文タイトルはおそらくCommand&Conquerのもじりと思われます。 前書き 本記事は実際の出来事をヒントにしたデータベースパーティショニングについて書いたものです。productionアプリ、すなわちRuby on RailsとPostgreSQLの速度を低下させる巨大なテーブルを分割する方法について手順を追って学びます。 これ以上大きくなっては困るとき データベースは肥大化する傾向があります。データベースのサイズはある時点から負債と化しますが、主キー数が上限に達するような極端な状況をなかなか想定できません(そしてこ