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
tychy
April 04, 2022
Technology
310
0
Share
データベースロギングの多様性
tychy
April 04, 2022
More Decks by tychy
See All by tychy
Goの標準ライブラリに学ぶジェネリクス
tychy
0
820
Other Decks in Technology
See All in Technology
エージェント時代の UIとAPI、CLI戦略
coincheck_recruit
0
120
世界の中心でApp Runnerを叫ぶ FINAL
tsukuboshi
0
220
コードや知識を組み込む / Incorporate Code and Knowledge
ks91
PRO
0
210
20260423_ハドソンのエロゲを追え_レトロゲーム
poropinai1966
0
110
ハーネスエンジニアリング入門
knishioka
0
110
多角的な視点から見たAGI
terisuke
0
120
AgentCore×VPCでの設計パターンn選と勘所
har1101
4
370
拝啓、あの夏の僕へ〜あなたも知っているApp Runnerの世界〜
news_it_enj
0
210
Digital Independence: Why, When and How
wannesrams
0
270
AI駆動開発で生産性を追いかけたら、行き着いたのは品質とシフトレフトだった
littlehands
0
310
試作とデモンストレーション / Prototyping and Demonstrations
ks91
PRO
0
170
生成AIが変える SaaS の競争原理と弁護士ドットコムのプロダクト戦略
bengo4com
1
3.3k
Featured
See All Featured
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
1
2k
Building Applications with DynamoDB
mza
96
7k
Marketing to machines
jonoalderson
1
5.2k
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.5k
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.2k
Mobile First: as difficult as doing things right
swwweet
225
10k
BBQ
matthewcrist
89
10k
Color Theory Basics | Prateek | Gurzu
gurzu
0
300
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2k
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
5.7k
Ruling the World: When Life Gets Gamed
codingconduct
0
220
Transcript
σʔλϕʔεϩΪϯάͷଟ༷ੑ ࢁాཾ ϝϯλʔɹ͞Μ
2 όοΫάϥϯυ ɾCίϯύΠϥͷ։ൃ ɾedk2ΛͬͯPXEBoot͢ΔUEFIΞϓϦͷ։ൃ ϥϘϢʔεͰͷςʔϚ σʔλϕʔεͷετϨʔδɺϩΪϯάपΓΛࣗ࡞ ࠓಛʹߏมߋΛͲ͏ϩΪϯά͢Δ͔ʹ͍ͭͯ ුಈখपΓಈ͖·͢ʂ (16byteΞϥΠϯਏ… ࣗݾհ
ӬଓԽͱ 3 ࠓӬଓԽΛத৺ʹ τϥϯβΫγϣϯॲཧதʹ ϝϞϦͷΠϯσοΫεͷมߋ ίϛοτ͢Δͱ͖ͷϩΪϯά ͕ϝΠϯʹͳΔ
ӬଓԽʹ·ͭΘΔઃܭͷଟ༷ੑ 4 ӬଓԽͷ͚ͩͰ༷ʑͳଟ༷ੑ͕͋Δʂ BufferཧɺCheckpointingʹଟ༷ੑ
B-Treeͷߏมߋ 5 INSERT͢Δͱߏมߋ͢Δέʔε͕͋Δ ߏมߋΛͲ͏ѻ͏ͷ͔ʹ࣮ଟ༷ੑ͕͋ΔˠNextPage ςʔϒϧຊମPrimaryKeyͷIndexͱ࣮ͯ͠ UPDATE·ͰΑ͍͕ɺINSERT͕͍͠ˠ
ߏมߋͱฒߦੑ 6 Ϩίʔυมߋʹߏมߋ͕͏ͱ ߏมߋʹରͯ͠ґଘ͕ؔൃੜ͢Δ T2ͷϩάΛॻ͖͑ͯDҠಈ T1ΛROLLBACK͍ͨ͠ͱ͖… T1͚ͩΛROLLBACKͤͯ͞T2Λੜ͖ΒͤΔͷ͕͍͠ T2ΛϩʔϧόοΫ͢Δ OR
Ҋ1 ߏมߋͨ͠෦Λഉଞ͢Δ 7 ߏมߋ͕ى͖ͨ෦Λഉଞ (Pros) T2ʹӨڹͤͣʹT1ROLLBACKͰ͖Δ (Cons) ߏมߋͷൣғ͕͍ͱύϑΥʔϚϯε͕ʹͳΔ ߏมߋͷROLLBACKΛ࿈ͤͨ͘͞ͳ͍߹ ex)
root
Ҋ2ɹߏมߋͷΈΛه͢ΔτϥϯβΫγϣϯ 8 ߏมߋͷΈΛߦ͏τϥϯβΫγϣϯS1Λ࡞Δ T1ΛROLLBACKͯ͠ߏมߋ(S1)Δ S1͕֬ఆͨ͠ΒT2֬ఆͯ͠ྑ͍ʂ ϙΠϯτ:
·ͱΊ 9 DBMSΛ࡞͍ͬͯΔͱઃܭ্ͷબΛແʹഭΒΕΔ ҰͭҰͭߟ͑ͳ͕Β࣮͍ͯ͘͠ͷ͕ޣຯ ࠓͨ͠෦ͷ࣮Λ͢Δ͜ͱ͕٤ۓͷඪʂ