Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
少し変わった論理削除
Search
Yusuke Yagyu
August 31, 2015
Technology
3
17k
少し変わった論理削除
論理削除 Casual Talks #1 (2015/08/31)
Yusuke Yagyu
August 31, 2015
Tweet
Share
More Decks by Yusuke Yagyu
See All by Yusuke Yagyu
ペパボのデザインシステムと、モバイル領域における取り組み
gyugyu
0
1.1k
Dart Sass であれを作った
gyugyu
0
75
Android CI: 2016 edition
gyugyu
3
2.3k
Other Decks in Technology
See All in Technology
Azure App Service on Linux の Sidecar に Phi-3 を配置してインテリジェントなアプリケーションを作ってみよう/jazug-anniv14
thara0402
0
520
Oracle Base Database Service 技術詳細
oracle4engineer
PRO
5
48k
O'Reilly Superstream: Building a RAG App to Chat with Your Data
pamelafox
0
120
エンジニア向け会社紹介資料
caddi_eng
14
270k
Azure Verified Moduleを触って分かった注目ポイント/azure-verified-module-begin
mhrtech
1
490
Cosmos DB で持続可能な RAG を実現しよう!~ AOAI Dev Day ふりかえりを添えて / Sustainable RAG with Cosmos DB with recap AOAI Dev Day
miyake
0
110
業務ヒアリングと知識の呪い
tamai_63
0
290
LINE-ChatGPT 倫理問題を整理する全力肯定彼氏くん [LuC4]に訪れたサービス開始以来の最大の危機
o_ob
2
160
ゼロから実装まで!機械学習入門
natsuki0726
0
210
OPENLOGI Company Profile
hr01
0
54k
Oracle Database 23ai 新機能#4 Application Continuity
oracle4engineer
PRO
0
130
YAPC::Hakodateの映像記録を支える技術
godan
4
380
Featured
See All Featured
Understanding Cognitive Biases in Performance Measurement
bluesmoon
26
1.4k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
26
2k
Being A Developer After 40
akosma
84
590k
Happy Clients
brianwarren
97
6.7k
Why You Should Never Use an ORM
jnunemaker
PRO
53
9k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
7
590
The Brand Is Dead. Long Live the Brand.
mthomps
53
38k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
37
1.7k
Clear Off the Table
cherdarchuk
91
320k
The Art of Programming - Codeland 2020
erikaheidi
51
13k
Why Our Code Smells
bkeepers
PRO
334
57k
Fashionably flexible responsive web design (full day workshop)
malarkey
404
65k
Transcript
গ͠มΘͬͨཧআ ϗεςΟϯάαʔϏεʹ͓͚Δཧআͷྫ
var_dump($me); object(Engineer)#1 (3) { [“name”:private]=> string(12) “Yusuke Yagyu” [“nickname”:private]=> string(6)
“gyugyu” [“position”:private]=> string(35) “Senior engineer at GMO Pepabo, Inc.” [“leisure”:private]=> string(6) “Noder” }
Noder
None
None
None
None
ΑΖ͘͠ ͓ئ͍͠·͢
Sorry, I apologize for ͍ΘΏΔཧআΒ͍͠ཧআͷ͋·Γग़·ͤΜ ER ਤ SQL ग़͖ͯ·ͤΜ ͓͜ͱΘΓ
෮शɿཧআ ཧআͱ σʔλͷӬଓԽʹ͓͍ͯ ֘σʔλͷফڈͱผʹ σʔλ͕֎෦͔ΒࢀরෆೳͱͳΔঢ়ଶΛఆٛ͠ ͦͷঢ়ଶͱσʔλΛ্ॻ͖͢Δ͜ͱ Ͱ͋Δͱఆٛ͢Δɻ ཧআͱ
෮शɿཧআ del_flg ΧϥϜ༩ deleted_at ΧϥϜ༩ ঢ়ଶཧςʔϒϧ࡞ ཤྺςʔϒϧ࡞ ཧআɾ࣮
෮शɿཧআ ઃܭऀͷ RDBMS ʹର͢Δཧղෆ ઃܭऀͷσʔλϕʔειϑτΣΞʹର͢Δཧղෆ ઃܭऀͷυϝΠϯʹର͢Δཧղෆ Ϗδωεཁ݅ͱͯͦͦ͠ఆٛ͞Εͯ͠·͍ͬͯΔ ʢےͷѱ͍ʣཧআ͕࣮͞ΕΔഎܠ
Engineer in Wonderland
Engineer in Wonderland ཧআͱ σʔλͷӬଓԽʹ͓͍ͯ ֘σʔλͷফڈͱผʹ σʔλ͕֎෦͔ΒࢀরෆೳͱͳΔঢ়ଶΛఆٛ͠ ͦͷঢ়ଶͱσʔλΛ্ॻ͖͢Δ͜ͱ Ͱ͋Δͱఆٛ͢Δɻ ཧআͱ
Engineer in Wonderland ཧআͱ σʔλͷӬଓԽʹ͓͍ͯ ʢུʣ Ͱ͋Δͱఆٛ͢Δɻ ͨͩ͠ɺͦͷσʔλӬଓԽػߏ RDBMS ͱݶΒͳ͍ɻ
ཧআɾ࠶ఆٛ
Engineer in Wonderland ཧআͱ σʔλͷӬଓԽʹ͓͍ͯ ʢུʣ Ͱ͋Δͱఆٛ͢Δɻ ͨͩ͠ɺͦͷσʔλӬଓԽػߏ RDBMS ͱݶΒͳ͍ɻ
͞Βʹ୯ҰϨίʔυͷӬଓԽ͕ෳͷӬଓԽػߏʹ·͕ͨΔɻ ཧআɾ࠶ఆٛ
Hosting Service
Hosting Service Σϒαʔό ϝʔϧαʔό σʔλϕʔεαʔό DNS ֤छCMS ԿΛαʔϏε͢Δ͔
Hosting Service ྫͱͯ͠ΣϒαʔόͰ unix Ϣʔβ ϑΝΠϧγεςϜ ϑΝΠϧߦ RDBMS Ͳ͏ӬଓԽ͢Δ͔
Hosting Service usermod -L chmod 000 mv rmʢγϯϘϦοΫϦϯΫʣ ίϝϯτΞτ REVOKE
ඇ RDBMS ڥʹ͓͚Δཧআʢྫʣ
Hosting Service ϗεςΟϯάαʔϏεʹ͓͚Δཧআɺ RDBMS తཧআͱ࣮ͯ͠Ͱ͖ͳ͍ɻ ͳ͓͔ͭɺRDBMS Ͱͷཧআ͕ ඇ RDBMS ڥͰͷཧআͱͳΔύλʔϯ͕͋Δɻ
݁Ռɺཧআͷҙຯ͕ͿΕΔɻ
Hosting Service ϓϩμΫτΦʔφʔ ʮ͜ͷϢʔβɺআͰ͖ͳ͍͚ͲͳΜͰʁʯ ։ൃऀ ʮ͜ΕϢʔβͷཧআͳͷͰ͕͢ɺ ɹϑΝΠϧγεςϜ্ͷআͱ ɹϑΝΠϧͷίϝϯτΞτΛ࣮ࢪ͍ͯͯ͠ɺ ɹͦͷࡍʹఆ͞ΕΔߦ͕ͳ͔ͬͨͨΊɺ ɹϢʔβͷআϑϥά্͕͕͍ͬͯͳ͍ͷͰ͢ʯ
ྫʢ͋͘·Ͱ͜ΕྫͰ͢ʣ
Hosting Service ϓϩμΫτΦʔφʔ ʮϢʔβ͕আ͞ΕΔલʹ৽͘͠ঢ়ଶΛՃ͍ͨ͠Μ͚ͩͲʯ ։ൃऀ ʮ͜ͷػೳͱ͜ͷػೳΛཧআͯ͠ɺ ɹআϑϥάͱ͍ͯͬͯ͠ΔΧϥϜʹ৽͍͠ΛՃ͠·͠ΐ͏ʯ ྫʢ͋͘·Ͱ͜ΕྫͰ͢ʣ
!! Danger !!
ཧআͱఔΑ͍ڑײͰੜ͖Δ ։ൃऀԟʑʹͯ͠෦࣮ΛޠΓ͗͢Δ ඇ։ൃऀআ͕ཧ͔ཧ͔͠ͳ͍ ʮཧআʯͱ͍͏ݴ༿͕ຊʹత֬ͳදݱ͔ʁ ྫɿୀձϢʔβʁɹແޮϢʔβʁɹআͪϢʔβʁ ຊʹඞཁͳ࣌Ҏ֎ʮཧআʯͱ͍͏୯ޠΛආ͚Δ ྫɿ։ൃऀͱ͍ͯͯ֓͠೦Λཧআͱ͔͠දݱͰ͖ͳ͍߹ ཧআͱݴΘͳ͍
ཧআͱఔΑ͍ڑײͰੜ͖Δ ཧআʴϩΪϯάʹͰ͖ͳ͍͔ ཧআͰͳ͘ঢ়ଶཧͰͳ͍͔ ػೳՃɺཁ݅ͷมߋʹରͯ͠։͔Ε͍ͯΔ͔ Ϗδωεཁ݅ͱͯ͠ඞਢͷ࣌ؤுΔ ཧআΛආ͚Δ
ཧআͱఔΑ͍ڑײͰੜ͖Δ ཧআͱݴ͍ग़͢ͷσʔλͷ࣋ͪํʹनΘΕ͗͢Ͱʁ ຊདྷྗ͖͢υϝΠϯʹྗͰ͖͍ͯͳ͍ͷͰʁ ͦͦ
DDD ʰυϝΠϯۦಈઃܭʱEric Evans ʰ࣮ફυϝΠϯۦಈઃܭʱVaughn Vernon
·ͱΊ ཧআ RDBMS ʹݶΒͣɺ༷ʑͳܗͷཧআ͕ଘࡏ͠͏Δ ӬଓԽػߏ͕ෳଘࡏ͢Δͱɺཧআෳࡶ͞ͷݪҼʹͳΔ ෳࡶͳཧআΛੜͰѻ͏ΑΓɺత֬ͳঢ়ଶදݱΛఆٛ͢Δ ӬଓԽػߏ͕ෳଘࡏ͢Δ͜ͱͰɺ݁ՌతʹυϝΠϯͷ·ͳ͟͠ ͕ᔻཆ͞ΕΔ ཧআͱ͍͏୯ޠ RDBMS
͚ͩͷͷͰͳ͍