{"title":"Ensuring Consistency under the Snapshot Isolation","authors":"Carlos Roberto Val\u02c6encio, F\u00b4abio Renato de Almeida, Thatiane Kawabata, Leandro Alves Neves, Julio Cesar Momente, Mario Luiz Tronco, Angelo Cesar Colombini","volume":91,"journal":"International Journal of Computer and Information Engineering","pagesStart":1149,"pagesEnd":1156,"ISSN":"1307-6892","URL":"https:\/\/publications.waset.org\/pdf\/9998636","abstract":"<p>By running transactions under the SNAPSHOT isolation<br \/>\r\nwe can achieve a good level of concurrency, specially in databases<br \/>\r\nwith high-intensive read workloads. However, SNAPSHOT is not<br \/>\r\nimmune to all the problems that arise from competing transactions<br \/>\r\nand therefore no serialization warranty exists. We propose in this<br \/>\r\npaper a technique to obtain data consistency with SNAPSHOT by using<br \/>\r\nsome special triggers that we named DAEMON TRIGGERS. Besides<br \/>\r\nkeeping the benefits of the SNAPSHOT isolation, the technique is<br \/>\r\nspecially useful for those database systems that do not have an<br \/>\r\nisolation level that ensures serializability, like Firebird and Oracle. We<br \/>\r\ndescribe all the anomalies that might arise when using the SNAPSHOT<br \/>\r\nisolation and show how to preclude them with DAEMON TRIGGERS.<br \/>\r\nBased on the methodology presented here, it is also proposed the<br \/>\r\ncreation of a new isolation level: DAEMON SNAPSHOT.<\/p>\r\n","references":"[1] Ansi, \"Ansi x3.135-1992, american national standard for information\r\nsystems \u2014 database language \u2014 sql,\u201d American National Standards\r\nInstitute, Tech. Rep., 1992.\r\n[2] M. Yabandeh and D. G\u00b4omez Ferro, \"A critique of snapshot isolation,\u201d in\r\nProceedings of the 7th ACM european conference on Computer Systems.\r\nACM, 2012, pp. 155\u2013168.\r\n[3] H. Berenson, P. Bernstein, J. Gray, J. Melton, E. O\u2019Neil, and P. O\u2019Neil,\r\n\"A critique of ansi sql isolation levels,\u201d ACM SIGMOD Record, vol. 24,\r\nno. 2, pp. 1\u201310, 1995.\r\n[4] A. Fekete, D. Liarokapis, E. O\u2019Neil, P. O\u2019Neil, and D. Shasha, \"Making\r\nsnapshot isolation serializable,\u201d ACM Transactions on Database Systems\r\n(TODS), vol. 30, no. 2, pp. 492\u2013528, 2005.\r\n[5] A. Adya, B. Liskov, and P. O\u2019Neil, \"Generalized isolation level\r\ndefinitions,\u201d in Data Engineering, 2000. Proceedings. 16th International\r\nConference on. IEEE, 2000, pp. 67\u201378.\r\n[6] A. Fekete, E. O\u2019Neil, and P. O\u2019Neil, \"A read-only transaction anomaly\r\nunder snapshot isolation,\u201d ACM SIGMOD Record, vol. 33, no. 3, pp.\r\n12\u201314, 2004.\r\n[7] S. A. Revilak, \"Precisely serializable snapshot isolation,\u201d Ph.D.\r\ndissertation, Office of Graduate Studies, University of Massachusetts\r\nBoston, 2011.\r\n[8] M. Alomari, M. Cahill, A. Fekete, and U. Rohm, \"The cost of\r\nserializability on platforms that use snapshot isolation,\u201d in Data\r\nEngineering, 2008. ICDE 2008. IEEE 24th International Conference\r\non. IEEE, 2008, pp. 576\u2013585.\r\n[9] A. Adya, \"Weak consistency: a generalized theory and optimistic\r\nimplementations for distributed transactions,\u201d Ph.D. dissertation,\r\nMassachusetts Institute of Technology, 1999.\r\n[10] M. Alomari, \"Ensuring serializable executions with snapshot isolation\r\ndbms,\u201d Ph.D. dissertation, University of Sydney, 2008.\r\n[11] M. Alomari, A. Fekete, and U. Rohm, \"A robust technique to\r\nensure serializable executions with snapshot isolation dbms,\u201d in Data\r\nEngineering, 2009. ICDE\u201909. IEEE 25th International Conference on.\r\nIEEE, 2009, pp. 341\u2013352.\r\n[12] M. J. Cahill, U. R\u00a8ohm, and A. D. Fekete, \"Serializable isolation\r\nfor snapshot databases,\u201d ACM Trans. Database Syst., vol. 34,\r\nno. 4, pp. 20:1\u201320:42, Dec. 2009. (Online). Available: http:\r\n\/\/doi.acm.org\/10.1145\/1620585.1620587\r\n[13] M. J. Cahill, \"Serializable isolation for snapshot databases,\u201d Ph.D.\r\ndissertation, The University of Sydney, 2009.\r\n[14] M. J. Cahill, U. R\u00a8ohm, and A. D. Fekete, \"Serializable isolation\r\nfor snapshot databases,\u201d in Proceedings of the 2008 ACM SIGMOD\r\ninternational conference on Management of data, ser. SIGMOD \u201908.\r\nNew York, NY, USA: ACM, 2008, pp. 729\u2013738. (Online). Available:\r\nhttp:\/\/doi.acm.org\/10.1145\/1376616.1376690\r\n[15] S. Revilak, P. O\u2019Neil, and E. O\u2019Neil, \"Precisely serializable snapshot\r\nisolation (pssi),\u201d in Data Engineering (ICDE), 2011 IEEE 27th\r\nInternational Conference on. IEEE, 2011, pp. 482\u2013493.","publisher":"World Academy of Science, Engineering and Technology","index":"Open Science Index 91, 2014"}