<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>pocketsign</author_name>
  <author_url>https://blog.hatena.ne.jp/pocketsign/</author_url>
  <blog_title>POCKETSIGN TECH BLOG</blog_title>
  <blog_url>https://tech.pocketsign.co.jp/</blog_url>
  <categories>
    <anon>技術解説</anon>
  </categories>
  <description>こんにちは。ポケットサインでエンジニアとして働いている畑佐です。普段はミニアプリの開発に携わっています。 ある機能開発で、既存データを埋め直す backfill migration を本番稼働中に実行したところ、同じテーブルを更新する通常リクエストにタイムアウトやエラーが発生しました。 migration 自体は更新を進めていましたが、実際には長時間の transaction が対象テーブルの更新ロックを保持し続け、通常の更新処理と競合していました。 この記事では、どんな実装が問題を起こしたのか、なぜ通常処理に影響したのか、どの設計案を比較したのか、そして最終的に何を優先して判断したのかを整理…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.pocketsign.co.jp%2Fentry%2F2026%2F04%2F30%2F143912&quot; title=&quot;本番稼働中の backfill migration で学んだ、ロック時間から考える設計判断 - POCKETSIGN TECH BLOG&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>2026-04-30 14:39:12</published>
  <title>本番稼働中の backfill migration で学んだ、ロック時間から考える設計判断</title>
  <type>rich</type>
  <url>https://tech.pocketsign.co.jp/entry/2026/04/30/143912</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
