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
0
270
データベースロギングの多様性
tychy
April 04, 2022
Tweet
Share
More Decks by tychy
See All by tychy
Goの標準ライブラリに学ぶジェネリクス
tychy
0
740
Other Decks in Technology
See All in Technology
AWSの生成AIサービス Amazon Bedrock入門!(2025年1月版)
minorun365
PRO
7
370
Fearsome File Formats
ange
0
550
[JAWS-UG新潟#20] re:Invent2024 -CloudOperationsアップデートについて-
shintaro_fukatsu
0
150
【令和最新版】ロボットシミュレータ Genesis x ROS 2で始める快適AIロボット開発
hakuturu583
2
1.4k
.NET 最新アップデート ~ AI とクラウド時代のアプリモダナイゼーション
chack411
0
140
Alignment and Autonomy in Cybozu - 300人の開発組織でアラインメントと自律性を両立させるアジャイルな組織運営 / RSGT2025
ama_ch
1
1.7k
能動的ドメイン名ライフサイクル管理のすゝめ / Practice on Active Domain Name Lifecycle Management
nttcom
0
310
The future we create with our own MVV
matsukurou
0
1.4k
#TRG24 / David Cuartielles / Post Open Source
tarugoconf
0
420
スケールし続ける事業とサービスを支える組織とアーキテクチャの生き残り戦略 / The survival strategy for Money Forward’s engineering.
moneyforward
0
240
DevFest 2024 Incheon / Songdo - Compose UI 조합 심화
wisemuji
0
250
ヤプリQA課題の見える化
gu3
0
150
Featured
See All Featured
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
49
2.2k
Building an army of robots
kneath
302
44k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
26
1.9k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
365
25k
Embracing the Ebb and Flow
colly
84
4.5k
4 Signs Your Business is Dying
shpigford
182
21k
Building Better People: How to give real-time feedback that sticks.
wjessup
366
19k
The Art of Programming - Codeland 2020
erikaheidi
53
13k
Navigating Team Friction
lara
183
15k
A Modern Web Designer's Workflow
chriscoyier
693
190k
VelocityConf: Rendering Performance Case Studies
addyosmani
327
24k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
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Λ࡞͍ͬͯΔͱઃܭ্ͷબΛແʹഭΒΕΔ ҰͭҰͭߟ͑ͳ͕Β࣮͍ͯ͘͠ͷ͕ޣຯ ࠓͨ͠෦ͷ࣮Λ͢Δ͜ͱ͕٤ۓͷඪʂ