はてなブックマーク - SQLアンチパターン 幻の第26章「とりあえず削除フラグ」 https://b.hatena.ne.jp/entry/s/www.slideshare.net/slideshow/ronsakucasual/52256922 SQLアンチパターン 26章「とりあえず削除フラグ」 2015/08/31 @ GMO Yours #ronsakucasual https://atnd.org/events/68902 timdaik_tech https://b.hatena.ne.jp/timdaik_tech/20250623#bookmark-4753766222025664064 > アンチパターンとは何でしょうか。それは、問題の解決を意図しながらも、しばしば他の問題を生じさせてしまい様な技法を指します。 by Bill Karwin 2025-06-22T23:23:57Z データベース techtech0521 https://b.hatena.ne.jp/techtech0521/20231205#bookmark-264539510 2023-12-05T04:18:30Z あとで読む uokada https://b.hatena.ne.jp/uokada/20230921#bookmark-264539510 2023-09-21T01:04:24Z データベース database db ymzkmct https://b.hatena.ne.jp/ymzkmct/20230821#bookmark-4741057470610263023 2023-08-21T00:58:27Z MARKDK https://b.hatena.ne.jp/MARKDK/20230714#bookmark-264539510 2023-07-14T05:44:22Z *book yabu_kyu https://b.hatena.ne.jp/yabu_kyu/20230531#bookmark-264539510 2023-05-31T03:27:11Z DB SQL fkshom https://b.hatena.ne.jp/fkshom/20230128#bookmark-264539510 2023-01-27T18:42:20Z qroku https://b.hatena.ne.jp/qroku/20221214#bookmark-264539510 2022-12-14T14:02:04Z kanu-orz https://b.hatena.ne.jp/kanu-orz/20221202#bookmark-264539510 2022-12-02T06:18:55Z mr_ozin https://b.hatena.ne.jp/mr_ozin/20221127#bookmark-264539510 2022-11-26T15:22:48Z ya--mada https://b.hatena.ne.jp/ya--mada/20221116#bookmark-264539510 削除フラグは良くないね、は理解出来るが、削除も更新もしないってどういう意味だろうか?個人情報保護法どうすんだ?/なるほど、脳死で削除フラグを実装しちゃうアホが多いって言いたいのね。https://fukabori.fm/episode/27 2022-11-16T00:46:29Z hnishi2509 https://b.hatena.ne.jp/hnishi2509/20220901#bookmark-264539510 2022-09-01T05:50:56Z あとで読む yamadar https://b.hatena.ne.jp/yamadar/20220719#bookmark-264539510 2022-07-19T06:30:30Z 設計 *DB 考え方 marutaku0131 https://b.hatena.ne.jp/marutaku0131/20220511#bookmark-264539510 2022-05-11T12:55:51Z shun114 https://b.hatena.ne.jp/shun114/20220511#bookmark-264539510 2022-05-11T12:43:41Z candy12t https://b.hatena.ne.jp/candy12t/20220506#bookmark-264539510 2022-05-05T15:14:05Z DB SQL s-takaya1027 https://b.hatena.ne.jp/s-takaya1027/20220201#bookmark-264539510 😇 2022-02-01T06:33:03Z tanakakazu https://b.hatena.ne.jp/tanakakazu/20211125#bookmark-264539510 2021-11-25T01:08:10Z jukuringo https://b.hatena.ne.jp/jukuringo/20211124#bookmark-264539510 2021-11-24T12:24:31Z kitanow https://b.hatena.ne.jp/kitanow/20210919#bookmark-264539510 2021-09-18T17:07:34Z db sql kzm1760 https://b.hatena.ne.jp/kzm1760/20210827#bookmark-264539510 社内で読み合わせしたけど勉強になった。解はすぐには出ないけどとりあえずの削除フラグは避けようと思った。 2021-08-27T03:03:03Z SQL テーブル DB ikosin https://b.hatena.ne.jp/ikosin/20210713#bookmark-264539510 2021-07-13T04:53:31Z SQL db 設計 foaran https://b.hatena.ne.jp/foaran/20210623#bookmark-264539510 2021-06-23T03:29:03Z あとで読む mtzml https://b.hatena.ne.jp/mtzml/20210322#bookmark-264539510 2021-03-21T17:34:38Z ko-ya-ma https://b.hatena.ne.jp/ko-ya-ma/20210317#bookmark-264539510 2021-03-17T08:17:51Z dev db tips pattern konisimple https://b.hatena.ne.jp/konisimple/20210316#bookmark-264539510 2021-03-16T13:47:33Z takami_hiroki https://b.hatena.ne.jp/takami_hiroki/20210206#bookmark-4677771690654872066 2021-02-06T10:36:51Z youko03 https://b.hatena.ne.jp/youko03/20210121#bookmark-264539510 解決策が知見だ 2021-01-21T08:59:10Z ppine https://b.hatena.ne.jp/ppine/20201229#bookmark-264539510 2020-12-29T02:32:15Z nilab https://b.hatena.ne.jp/nilab/20201209#bookmark-264539510 「SQLアンチパターン 26章「とりあえず削除フラグ」 2015/08/31 @ GMO Yours #ronsakucasual https://atnd.org/events/68902」 2020-12-09T02:40:19Z ikesyo https://b.hatena.ne.jp/ikesyo/20201204#bookmark-264539510 2020-12-04T12:25:54Z SQL ookawa124 https://b.hatena.ne.jp/ookawa124/20200811#bookmark-264539510 2020-08-11T04:31:05Z sql web maaa328 https://b.hatena.ne.jp/maaa328/20200811#bookmark-264539510 2020-08-11T01:54:12Z sql database データベース 技術 code データ db hbKOT https://b.hatena.ne.jp/hbKOT/20200811#bookmark-264539510 2020-08-10T16:15:12Z DB a-hamahama https://b.hatena.ne.jp/a-hamahama/20200810#bookmark-264539510 2020-08-10T00:58:15Z データベース tosnum https://b.hatena.ne.jp/tosnum/20200607#bookmark-264539510 “ ” 2020-06-07T11:27:39Z daaaaaai https://b.hatena.ne.jp/daaaaaai/20200402#bookmark-264539510 また考えてる。ActiveRecordとかORMで履歴テーブルつくって設計するの難しい。 2020-04-02T10:05:49Z Kenji_s https://b.hatena.ne.jp/Kenji_s/20200331#bookmark-264539510 2020-03-31T00:55:00Z SQL Anti-Pattern tri-star https://b.hatena.ne.jp/tri-star/20200324#bookmark-264539510 論理削除について 2020-03-24T07:28:09Z database katsyoshi https://b.hatena.ne.jp/katsyoshi/20200314#bookmark-264539510 2020-03-14T01:53:17Z kjtec https://b.hatena.ne.jp/kjtec/20200226#bookmark-264539510 2020-02-26T09:38:47Z shifumin https://b.hatena.ne.jp/shifumin/20200127#bookmark-264539510 2020-01-27T07:09:23Z SQL kabochapo https://b.hatena.ne.jp/kabochapo/20191228#bookmark-4677771690654872066 2019-12-27T22:38:37Z DB a2ikm https://b.hatena.ne.jp/a2ikm/20191126#bookmark-4677771690654872066 2019-11-25T16:49:17Z slide kiyoshi1211 https://b.hatena.ne.jp/kiyoshi1211/20191125#bookmark-264539510 2019-11-25T07:47:21Z SQL goyachanpuru https://b.hatena.ne.jp/goyachanpuru/20191008#bookmark-264539510 2019-10-07T15:37:11Z sql アンチパターン 論理削除 SQL shimanp https://b.hatena.ne.jp/shimanp/20190708#bookmark-264539510 2019-07-08T08:00:53Z sql アンチパターン database 論理削除 ryoutaku_jo https://b.hatena.ne.jp/ryoutaku_jo/20190702#bookmark-264539510 2019-07-02T07:20:05Z karur4n https://b.hatena.ne.jp/karur4n/20190624#bookmark-264539510 2019-06-24T08:33:59Z Kaketan https://b.hatena.ne.jp/Kaketan/20190613#bookmark-264539510 2019-06-13T08:53:26Z moegg https://b.hatena.ne.jp/moegg/20190415#bookmark-264539510 “• 「削除」は設計不足を示す • お客様は本当に「削除」と言っているか?”“• それでもよく考えた末の削除フラグなら OK. まとめ: とりあえず削除フラグ” 2019-04-15T01:54:02Z ugo_uozumi https://b.hatena.ne.jp/ugo_uozumi/20190211#bookmark-264539510 2019-02-11T05:02:43Z yoheimuta https://b.hatena.ne.jp/yoheimuta/20190131#bookmark-264539510 2019-01-31T08:29:40Z ohashi540 https://b.hatena.ne.jp/ohashi540/20181227#bookmark-264539510 2018-12-26T23:53:23Z データ 開発 プログラミング データベース アーキテクチャ uno1994 https://b.hatena.ne.jp/uno1994/20181223#bookmark-264539510 2018-12-22T20:47:25Z ryu19j https://b.hatena.ne.jp/ryu19j/20181122#bookmark-264539510 2018-11-22T08:12:07Z db marujunjun https://b.hatena.ne.jp/marujunjun/20181015#bookmark-264539510 2018-10-15T07:59:36Z db 設計 論理削除 hdkINO33 https://b.hatena.ne.jp/hdkINO33/20180906#bookmark-264539510 2018-09-06T04:26:16Z ymm1x https://b.hatena.ne.jp/ymm1x/20180905#bookmark-264539510 2018-09-05T14:42:48Z db design wiz7 https://b.hatena.ne.jp/wiz7/20180901#bookmark-264539510 つい最近不具合起こしたからよくわかわる。状態として管理するのがまずは直感的かな 2018-08-31T15:16:23Z DB kahki https://b.hatena.ne.jp/kahki/20180614#bookmark-264539510 2018-06-14T12:23:42Z RDBMS SQL スライド 削除フラグ スライド保存済 tocread https://b.hatena.ne.jp/tocread/20180404#bookmark-264539510 2018-04-03T21:11:31Z isaisstillalive https://b.hatena.ne.jp/isaisstillalive/20180323#bookmark-264539510 2018-03-23T03:43:25Z hiroomi https://b.hatena.ne.jp/hiroomi/20180321#bookmark-264539510 2018-03-21T10:17:51Z 削除フラグ aroma_black https://b.hatena.ne.jp/aroma_black/20180316#bookmark-264539510 “ IsDeletedフラグを使う代わりに、Dahan氏はデータの状態を表 すフィールドを保持することを提案している。” 2018-03-16T07:05:23Z SQL machupicchubeta https://b.hatena.ne.jp/machupicchubeta/20180307#bookmark-264539510 2018-03-07T11:10:38Z database t-wada giboshi31 https://b.hatena.ne.jp/giboshi31/20180217#bookmark-264539510 2018-02-17T06:49:26Z データベース okonomi https://b.hatena.ne.jp/okonomi/20180209#bookmark-264539510 2018-02-09T03:57:45Z sql snaka72 https://b.hatena.ne.jp/snaka72/20171206#bookmark-264539510 2017-12-06T08:11:02Z e24ns https://b.hatena.ne.jp/e24ns/20171124#bookmark-264539510 2017-11-24T04:17:30Z DB アンチパターン SWIMATH2 https://b.hatena.ne.jp/SWIMATH2/20171124#bookmark-264539510 フラグではなく状態であると考えるか、更新も削除もしないか、の二択らしい。後者がよく分からなかった 2017-11-23T15:59:17Z RDB SQL banana-umai https://b.hatena.ne.jp/banana-umai/20171004#bookmark-264539510 2017-10-04T08:47:15Z tsumuchan https://b.hatena.ne.jp/tsumuchan/20170924#bookmark-264522279 2017-09-24T10:16:03Z sharaku3eyes https://b.hatena.ne.jp/sharaku3eyes/20170901#bookmark-264539510 2017-08-31T23:38:59Z nabinno https://b.hatena.ne.jp/nabinno/20170829#bookmark-264539510 2017-08-29T12:05:01Z slideshare takuto-wada structure-query-language database software-design-pattern cl-gaku https://b.hatena.ne.jp/cl-gaku/20170714#bookmark-264539510 2017-07-14T04:35:18Z あとで読む db 設計 論理削除 issyurn https://b.hatena.ne.jp/issyurn/20170711#bookmark-264539510 2017-07-11T07:28:36Z Steiger31226 https://b.hatena.ne.jp/Steiger31226/20170710#bookmark-264522279 2017-07-10T11:31:17Z ringo6119 https://b.hatena.ne.jp/ringo6119/20170525#bookmark-264539510 2017-05-25T01:42:17Z sql anti-pattern kazafe https://b.hatena.ne.jp/kazafe/20170321#bookmark-264539510 2017-03-21T09:33:09Z jun_okuno https://b.hatena.ne.jp/jun_okuno/20161226#bookmark-264522279 2016-12-26T11:09:11Z cowbee https://b.hatena.ne.jp/cowbee/20161219#bookmark-264522279 2016-12-19T03:14:27Z kyo_ago https://b.hatena.ne.jp/kyo_ago/20161017#bookmark-264522279 2016-10-17T08:34:00Z bugs code bug db SQL Database アンチパターン 論理削除 データベース hyottokoaloha https://b.hatena.ne.jp/hyottokoaloha/20161008#bookmark-264522279 2016-10-07T15:53:48Z データベース db Database アンチパターン 論理削除 slideshare Akineko https://b.hatena.ne.jp/Akineko/20161006#bookmark-264522279 2016-10-06T05:35:46Z SQL アンチパターン データベース satoshie https://b.hatena.ne.jp/satoshie/20160921#bookmark-264522279 凄くためになる。 2016-09-21T03:36:20Z アンチパターン データベース Dai_Kamijo https://b.hatena.ne.jp/Dai_Kamijo/20160905#bookmark-264522279 SQLアンチパターン 幻の第26章「とりあえず削除フラグ」 @SlideShareさんから — 上條 大 (@Dai_Kamijo) September 5, 2016 from Twitter https://twitter.com/Dai_Kamijo September 05, 2016 at 12:43PM via IFTTT 2016-09-05T03:49:20Z k2k2monta https://b.hatena.ne.jp/k2k2monta/20160901#bookmark-264522279 2016-08-31T23:40:57Z あとで読む seckie https://b.hatena.ne.jp/seckie/20160830#bookmark-264522279 2016-08-30T08:04:22Z db pattern yakibutamegane https://b.hatena.ne.jp/yakibutamegane/20160829#bookmark-264522279 2016-08-29T08:19:44Z DB Database アンチパターン k-miyairi https://b.hatena.ne.jp/k-miyairi/20160829#bookmark-264522279 2016-08-29T08:19:44Z DB Database アンチパターン nosoosso https://b.hatena.ne.jp/nosoosso/20160822#bookmark-264522279 2016-08-22T08:22:51Z operando https://b.hatena.ne.jp/operando/20160813#bookmark-264522279 2016-08-13T05:12:00Z sql Garam17 https://b.hatena.ne.jp/Garam17/20160730#bookmark-264522279 これか 2016-07-30T02:09:18Z あとで読む shin0O https://b.hatena.ne.jp/shin0O/20160629#bookmark-264522279 2016-06-29T07:25:14Z slideshare db ymkjp https://b.hatena.ne.jp/ymkjp/20160615#bookmark-264522279 アンチパターン = "問題の解決を意図しながら、他の問題を生じさせてしまう技法"。モデルの要件を見極めるのが大切。DHHはTrashableっていうconcernsをincludeするアプローチ。 https://gist.github.com/dhh/1014971 2016-06-15T05:15:58Z y-koshi https://b.hatena.ne.jp/y-koshi/20160521#bookmark-264522279 2016-05-21T06:40:23Z アンチパターン データベース mfham https://b.hatena.ne.jp/mfham/20160519#bookmark-264522279 2016-05-19T07:11:17Z SQL orangeclover https://b.hatena.ne.jp/orangeclover/20160518#bookmark-264522279 2016-05-18T03:35:39Z suzukaze7 https://b.hatena.ne.jp/suzukaze7/20160518#bookmark-264522279 2016-05-17T16:27:06Z 論理削除 SQL