<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Kiske</author_name>
  <author_url>https://blog.hatena.ne.jp/Kiske/</author_url>
  <blog_title>モノノフ日記</blog_title>
  <blog_url>https://mononofu.hatenablog.com/</blog_url>
  <categories>
    <anon>database</anon>
  </categories>
  <description>会社の識者がデッドロックについてまとめてくれたので忘れないように転載。 主にSQL Serverの話だけどMySQLでも非常に参考になると思う。 デッドロックには以下の３種類があります。 サイクルデッドロック 変換デッドロック テーブルスキャンデッドロック サイクルデッドロック 最も一般的なのがサイクルデッドロックです。 「行１を更新してから行２を更新」するＡさん 「行２を更新してから行１を更新」するＢさん 主な回避方法 更新の順序を統一する トランザクションをできるだけ小さく、どうしてもダメならアプリで排他制御 変換デッドロック トランザクション中のSELECTが絡むのが変換デッドロックです…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmononofu.hatenablog.com%2Fentry%2F20071128%2F1196212796&quot; title=&quot; データベースのデッドロック - モノノフ日記&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>2007-11-28 10:19:56</published>
  <title> データベースのデッドロック</title>
  <type>rich</type>
  <url>https://mononofu.hatenablog.com/entry/20071128/1196212796</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
