<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>to_tu</author_name>
  <author_url>https://blog.hatena.ne.jp/to_tu/</author_url>
  <blog_title>珈琲駆動開発</blog_title>
  <blog_url>https://totutotu.hatenablog.com/</blog_url>
  <categories>
    <anon>React</anon>
    <anon>Rails</anon>
    <anon>Rails5</anon>
  </categories>
  <description>検討 競合する可能性が大いにあり、かつデータの整合性が非常に重要な部分の実装なので、今回の場合は楽観的ロックではつらそう。では悲観的ロックではどうか。 悲観的ロックとは、 悲観的ロックとは、DBMSの行ロック機能（SELECT FOR UPDATE句）を利用して、並行した更新作業を制限する方法です。 ロックはレコード取得時にかかるので、同時にレコードを取得しようとした場合は他方がロック解除になるまで待機するため、同時に同じレコードを取得できないようになります。 via: http://kray.jp/blog/activerecord%E3%81%A7%E8%A1%8C%E3%83%AD%E3…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftotutotu.hatenablog.com%2Fentry%2F2016%2F12%2F03%2F200905&quot; title=&quot;React x Railsでデータの同時編集ロック機能を実装する - 珈琲駆動開発&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>2016-12-03 20:09:05</published>
  <title>React x Railsでデータの同時編集ロック機能を実装する</title>
  <type>rich</type>
  <url>https://totutotu.hatenablog.com/entry/2016/12/03/200905</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
