Master’s Thesis Presentation • Data Systems • Eventual Durability of ACID Transactions in Database SystemsExport this event to calendar

Thursday, August 3, 2023 — 3:00 PM to 4:00 PM EDT

Please note: This master’s thesis presentation will take place in DC 2568.

Tejasvi Kashi, Master’s candidate
David R. Cheriton School of Computer Science

Supervisor: Professor Ken Salem

Modern database systems that support ACID transactions, and applications built around these databases, may choose to sacrifice transaction durability for performance when they deem it necessary. While this approach may yield good performance, it comes with three major downsides. Firstly, users are often not provided information about when and if the issued transactions became durable. Secondly, users cannot know if durable and non-durable transactions saw each other’s effects. Finally, this approach pushes durability handling outside the scope of the transactional model, making it difficult for applications to reason about correctness and data consistency.

To address these issues, we present the idea of ”Eventual Durability” (ED) to provide a principled way for applications to manage transaction durability trade-offs. This model enables applications to control which transactions commit quickly and which ones should be durable at commit time, thus making them “durability-aware”. It also helps users and applications make informed decisions when failures occur since, with the ED model, application developers can know what to expect during failures.

Under the ED model, we untether a transaction’s ‘commit’ from its ‘durability’ guarantee to extend the traditional transaction model. We allow transactions to commit and become visible first but become durable eventually. We expose this model through ‘fast’ and ‘safe’ transactions. Fast transactions commit quickly and become durable later, while safe transactions behave like traditional transactions. Furthermore, we redefine serialisability and recoverability under ED to allow applications to ascertain if fast transactions became durable and how they might have interacted with safe ones. With ED, users and applications can know what to expect to lose when there is a failure – thus, bringing back managing durability inside the transaction model while providing a principled way to manage durability trade-offs.

We implement eventual durability in PostgreSQL and evaluate it to show that ED provides an average of 91.25% – 93% reduction in abort rates under a contentious workload and an average of 75% increase in throughput compared to baseline Postgres. We also run the TPC-C benchmark against ED Postgres and discuss the findings. Lastly, we discuss how ED Postgres can be used in realistic settings to obtain latency benefits, throughput improvements, reduced abort rates, and fresher reads.

Location 
DC - William G. Davis Computer Research Centre
DC 2568
200 University Avenue West

Waterloo, ON N2L 3G1
Canada
Event tags 

S M T W T F S
26
27
28
29
30
31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
1
2
3
4
5
6
  1. 2024 (152)
    1. July (2)
    2. June (9)
    3. May (23)
    4. April (41)
    5. March (27)
    6. February (25)
    7. January (25)
  2. 2023 (296)
    1. December (20)
    2. November (28)
    3. October (15)
    4. September (25)
    5. August (30)
    6. July (30)
    7. June (22)
    8. May (23)
    9. April (32)
    10. March (31)
    11. February (18)
    12. January (22)
  3. 2022 (245)
  4. 2021 (210)
  5. 2020 (217)
  6. 2019 (255)
  7. 2018 (217)
  8. 2017 (36)
  9. 2016 (21)
  10. 2015 (36)
  11. 2014 (33)
  12. 2013 (23)
  13. 2012 (4)
  14. 2011 (1)
  15. 2010 (1)
  16. 2009 (1)
  17. 2008 (1)