トランザクション処理
- トランザクション:一連の処理を一つの論理的単位として扱う(全成功か全失敗)
- ACID特性:原子性・一貫性・独立性・耐久性でDBの信頼性を保証する
- 排他制御:複数ユーザが同じデータを同時更新して矛盾が起きないよう制御する
Transferring ¥1,000 from Account A to Account B is TWO database operations. If the power cuts between them, the money cannot disappear. A transaction prevents this.
- Atomicity — all or nothing. Both steps complete, or neither changes.
- Consistency — the database always moves from one valid state to another.
- Isolation — multiple transactions running simultaneously don't interfere with each other.
- Durability — once committed, data is permanently saved even if the system crashes immediately after.
Account A မှ Account B ကို ¥1,000 လွှဲပြောင်းခြင်းတွင် ဒေတာဘေ့စ်ဆောင်ရွက်မှု ၂ ခုပါဝင်သည်。 ၎င်းကြားတွင် မီးပျက်ပါက ငွေ ပျောက်ကွယ်ကုန်မည်။ပြဿနာဖြေရှင်းသည့်နည်းလမ်းမှာ transaction ဖြစ်သည်。
- Atomicity — "အားလုံးဆောင်ရွက် သို့မဟုတ် ဘာမျှ ပြောင်းမရ" — Step 2 မောင်ပျက်ကျသွားသော် Step 1 ဆောင်ရွက်မှုကိုပါ ဖျက်သိမ်းသည်。
- ACID = Atomicity + Consistency + Isolation + Durability — ဒေတာဘေ့စ်ယုံကြည်ရမှု၏ ၄ ရက်ကန်、
Related Practice Questions
ဆက်စပ် လေ့ကျင့်ခန်းမေးခွန်းများ
Information security ဆိုင်ရာ risk စီမံခန့်ခွဲမှုတွင် risk transfer, risk avoidance, risk mitigation နှင့် risk retention ပါဝင်သောအမျိုးအစားများကို တစ်ခါတစ်ရံ အသုံးပြုသည်။ ၎င်းတို့နှင့်ပတ်သက်သောသင့်လျော်သောဖော်ပြချက်သည် အောက်ပါတို့အနက် အဘယ်နည်း?
PDCA မော်ဒယ်အပေါ်အခြေပြု၍ ISMS ကျင့်သုံးသောအဖွဲ့အစည်းများတွင် C (Check) တွင် ပြုလုပ်သောလုပ်ဆောင်ချက်များ၏ သင့်လျော်သောဥပမာသည် အောက်ပါတို့အနက် အဘယ်နည်း?
Which is an appropriate description of transactions in a DBMS?
DBMS ရှိ transaction နှင့်ပတ်သက်သော ဖော်ပြချက်အဖြစ် သင့်လျော်သည်မှာ အောက်ပါတို့အနက် အဘယ်နည်း?
Which DBMS function copies database contents from one computer to another and synchronizes them to keep them consistent?
ကွန်ပျူတာတစ်လုံး၏ database အကြောင်းအရာများကို နောက်ထပ်ကွန်ပျူတာတစ်လုံး၏ database သို့ ကူးယူ၍ မှန်ကန်ညီညွတ်နေစေရန် synchronize ပြုသော DBMS လုပ်ဆောင်ချက်မှာ အဘယ်နည်း?