SQL Access Patterns for Optimistic Concurrency Control

08/17/2023
by   Fritz Laux, et al.
0

Transaction processing is of growing importance for mobile and web applications. Booking tickets, flight reservation, e-Banking, e-Payment, and booking holiday arrangements are just a few examples. Due to temporarily disconnected situations the synchronization and consistent transaction processing are key issues. To avoid difficulties with blocked transactions or communication loss several authors and technology providers have recommended to use Optimistic Concurrency Control (OCC) to solve the problem. However most vendors of Relational Database Management Systems (DBMS) implemented only locking schemes for concurrency control which prohibit the immediate use of OCC. We propose Row Version Verifying (RVV) discipline to avoid lost updates and achieve a kind of OCC for those DBMS not providing an adequate non-blocking concurrency control. Moreover, the different mechanisms are categorized as access pattern in order to provide programmers with a general guideline for SQL databases. The proposed SQL access patterns are relevant for all transactional applications with unreliable communication and low conflicting situations. We demonstrate the proposed solution using mainstream database systems like Oracle, DB2, and SQLServer.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
05/12/2023

Interactive Text-to-SQL Generation via Editable Step-by-Step Explanations

Relational databases play an important role in this Big Data era. Howeve...
research
10/22/2017

A Brief Comparison of Two Enterprise-Class RDBMSs

This paper is an extended version of a report from a student-developed s...
research
02/21/2020

Snel: SQL Native Execution for LLVM

Snel is a relational database engine featuring Just-In-Time (JIT) compil...
research
10/23/2020

DBLog: A Watermark Based Change-Data-Capture Framework

It is a commonly observed pattern for applications to utilize multiple h...
research
10/18/2018

Modelling and Enactment of Data-aware Processes

During the last two decades, increasing attention has been given to the ...
research
12/29/2022

Transactions Make Debugging Easy

We propose TROD, a novel transaction-oriented framework for debugging mo...

Please sign up or login with your details

Forgot password? Click here to reset