
4 CONCLUSIONS
In this paper, we have analyzed how low isolation
levels, optimistic concurrency control, short duration
locks, and countermeasures against isolation
anomalies can be used to design transactions for
databases with high performance and availability.
The methods are independent of each other and,
therefore, a mixture of the methods may give the
best performance and availability. Using low
isolation levels will increase the availability of
locked data. If an application cannot accept the
anomalies that are caused by using a low isolation
level, it may be possible to minimize the time that
data is locked by substituting long duration
exclusive locks with short duration exclusive locks
and countermeasures against the anomalies that may
occur when a major database transaction is split into
minor database transactions performing the same
operations. The extra costs of this solution include
the implementation of approximated ACID
properties where e.g. DBMS aborts are substituted
by compensations. Even if all applications can
accept the anomalies caused by using a low isolation
level, problems may occur as there is no isolation
level that allows exclusive locks not to exclude
conflicting updates. Therefore, in hotspots where
many concurrent transactions update the same
records we recommend to use short duration
exclusive locks and countermeasures against the
anomalies that may occur when long duration
exclusive locks are substituted by short duration
locks.
Short duration locks and countermeasures against
the isolation anomalies should be mandatory for
long-lived transactions (Grey and Reuter, 1993) as
long duration locks per definition cannot be
recommended for such transactions. We have
illustrated how to use countermeasures against
isolation anomalies in E-commerce examples.
REFERENCES
Berenson, H., Bernstein, P., Gray, J., Melton, J., O’Neil,
E. and O’Neil, P., 1995, “A Critique of ANSI SQL
Isolation Levels”, Proc ACM SIGMOD Conf., pp. 1-
10.
Breibart, Y., Garcia-Molina, H. and Silberschatz, A.,
1992, “Overview of Multidatabase Transaction
Management”, VLDB Journal, 2, pp 181-239.
Frank, L., 1999, “Evaluation of the Basic Remote Backup
and Replication Methods for High Availability
Databases”, Software - Practice & Experience, Vol.
29, issue 15, pp 1339-1353.
L. Frank and Uffe Kofod, 2002, ‘Atomicity
Implementation in E-Commerce Systems’, Proc of the
Second International Conference on Electronic
Commerce, ICEB 2002, Taipei.
Frank, L. and Zahle, T, 1998, “Semantic ACID Properties
in Multidatabases Using Remote Procedure Calls and
Update Propagations”, Software - Practice &
Experience, Vol.28, pp77-98.
Gallersdörfer, R. and Nicola, M., 1995, “Improving
Performance in Replicated Databases through
Relaxed Coherency”, Proc 21st VLDB Conf, 1995, pp
445-455.
Garcia-Molina, H. and Salem, K., 1987, “Sagas”, ACM
SIGMOD Conf, pp 249-259.
Garcia-Molina, H. and Polyzois, C., 1990, “Issues in
disaster recovery”, IEEE Compcon., IEEE, New
York, pp 573-577.
Gray, J. and Reuter, A., 1993, “Transaction Processing”,
Morgan Kaufman, 1993.
Kung, H and Robinson, J, 1981, ‘On Optimistic Methods
for Concurrency Control’, ACM TODS 6, No. 2.
Humborstad, R., Sabaratnam, M., Hvasshovd, S. and
Torbjornsen, O., 1997, “1-Safe algorithms for
symmetric site configurations”, Proc 23th VLDB
Conf, 1997, pp 316-325.
Mehrotra, S., Rastogi, R., Korth, H., and Silberschatz, A.,
1992, “A transaction model for multi-database
systems”, Proc International Conference on
Distributed Computing Systems, pp 56-63.
O’Neil, P., “The Escrow Transaction Mode”, ACM TODS
11, No. 4, 1986.
Polyzois, C. and Garcia-Molina, H., 1994, “Evaluation of
Remote Backup Algorithms for Transaction-
Processing Systems”, ACM TODS, 19(3), pp 423-449.
Weikum, G. and Schek, H., 1992, “Concepts and
Applications of Multilevel Transactions and Open
Nested Transactions”, A. Elmagarmid (ed.): Database
Transaction Models for Advanced Applications,
Morgan Kaufmann, pp 515-553.
Zhang, A., Nodine, M., Bhargava, B. and Bukhres, O.,
1994, “Ensuring Relaxed Atomicity for Flexible
Transactions in Multidatabase Systems”, Proc ACM
SIGMOD Conf, pp 67-78.
ICEIS 2004 - DATABASES AND INFORMATION SYSTEMS INTEGRATION
226