ENع
الدرس 14 · Inside a database

Transactions and ACID

لم يُترجم بعد؛ يُعرض باللغة الإنجليزية

A transaction groups several SQL statements into one unit of work that the database runs all or nothing. Follow a bank transfer of 100 from Ann to Ben inside PostgreSQL: row versions and locks while it runs, a reader that never sees the half-done transfer, the write-ahead log flushed to disk before COMMIT returns, a crash that is repaired by replaying that log, and a second transfer that breaks a CHECK rule and is rolled back. Together they are the four ACID promises.

14 دقيقة11 خطوات5 أسئلةAdvanced
شكل 14 · تفاعلي
جارٍ تحميل الرسم…
أو ← →

اختبار يتاح بعد الخطوة الأخيرة.