<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ryousanngata</author_name>
  <author_url>https://blog.hatena.ne.jp/ryousanngata/</author_url>
  <blog_title>日々量産</blog_title>
  <blog_url>https://ryozi.hatenadiary.jp/</blog_url>
  <categories>
    <anon>日々</anon>
  </categories>
  <description>自分の中でDBでの論理削除の話とかで盛り上がったので、その中で論理削除が必要になるときと、その要件に対して実際どうするか少し書いとく。巷で流行ってるようなので波に乗っておくか、という感じだけども、その辺の話とは全く関係なし。「論理削除を使って何したいってのがあると思うけど、他の方法で良いのでは」といったことを言いたい感じ。 DBで論理削除を要求する要件 知ってる範囲だと、以下の2つ以外に聞いたことはない。 ログとして残したい 操作をなかったことにしたい、元に戻したい 1つ目はまだわかるが、2つ目は論理削除を使う理由にならない、といった感じ。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fryozi.hatenadiary.jp%2Fentry%2F20150329%2F1427647377&quot; title=&quot;DBのレコードの論理削除が必要になるとき - 日々量産&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>2015-03-29 01:42:57</published>
  <title>DBのレコードの論理削除が必要になるとき</title>
  <type>rich</type>
  <url>https://ryozi.hatenadiary.jp/entry/20150329/1427647377</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
