Chapter 2 .Computational Models

Slides:



Advertisements
Similar presentations
Universität Karlsruhe (TH) © 2006 Univ,Karlsruhe, IPD, Prof. Lockemann/Prof. BöhmTAV 2 Chapter 2 Model for transactions.
Advertisements

Concurrency Control Part 2 R&G - Chapter 17 The sequel was far better than the original! -- Nobody.
Transactions (Chapter ). What is it? Transaction - a logical unit of database processing Motivation - want consistent change of state in data Transactions.
Concurrency Control in Transactional Drago Concurrency Control in Transactional Drago M. Patiño-Martínez, R. Jiménez-Peris Technical University of Madrid.
Database Concepts Lec. 5. What Is a Database? Data are unprocessed raw facts that include text, number, images, audio, and video. Information is processed.
Comp 205: Comparative Programming Languages Semantics of Imperative Programming Languages denotational semantics operational semantics logical semantics.
ACS-4902 R McFadyen 1 Chapter 17 Introduction to Transaction Processing Concepts and Theory 17.1, 17.2, 17.3, 17.5, 17.6.
Concurrency control using transactions 1Transactions.
1 SWE Introduction to Software Engineering Lecture 22 – Architectural Design (Chapter 13)
Fundamentals, Design, and Implementation, 9/e Chapter 11 Managing Databases with SQL Server 2000.
Transaction Management and Concurrency Control
Application architectures
Chapter 8 : Transaction Management. u Function and importance of transactions. u Properties of transactions. u Concurrency Control – Meaning of serializability.
Programming Languages Structure
Universität Karlsruhe (TH) © 2006 Univ,Karlsruhe, IPD, Prof. Lockemann/Prof. BöhmTAV 2 Chapter 2 Model for transactions.
Describing Syntax and Semantics
INTRODUCTION TO TRANSACTION PROCESSING CHAPTER 21 (6/E) CHAPTER 17 (5/E)
Chapter 17 Introduction to Transaction Processing Concepts and Theory Copyright © 2004 Pearson Education, Inc.
Overview of a Database Management System
Introduction. 
Chapter 1 Introduction Dr. Frank Lee. 1.1 Why Study Compiler? To write more efficient code in a high-level language To provide solid foundation in parsing.
1 Database Systems CS204 Lecture 21 Transaction Processing I Asma Ahmad FAST-NU April 7, 2011.
1 Introduction to Database Systems. 2 Database and Database System / A database is a shared collection of logically related data designed to meet the.
Transactions Sylvia Huang CS 157B. Transaction A transaction is a unit of program execution that accesses and possibly updates various data items. A transaction.
Transaction Lectured by, Jesmin Akhter, Assistant professor, IIT, JU.
An Ontological Framework for Web Service Processes By Claus Pahl and Ronan Barrett.
Data Structures Using C++1 Chapter 1 Software Engineering Principles and C++ Classes.
Introduction to Database Systems1. 2 Basic Definitions Mini-world Some part of the real world about which data is stored in a database. Data Known facts.
Programming Languages and Design Lecture 3 Semantic Specifications of Programming Languages Instructor: Li Ma Department of Computer Science Texas Southern.
Syntax and Semantics CIS 331 Syntax: the form or structure of the expressions, statements, and program units. Semantics: the meaning of the expressions,
Theory of Programming Languages Introduction. What is a Programming Language? John von Neumann (1940’s) –Stored program concept –CPU actions determined.
Computing & Information Sciences Kansas State University Wednesday, 05 Nov 2008CIS 560: Database System Concepts Lecture 28 of 42 Wednesday, 05 November.
©Silberschatz, Korth and Sudarshan14.1Database System Concepts - 6 th Edition Chapter 14: Transactions Transaction Concept Transaction State Concurrent.
Session 1 Module 1: Introduction to Data Integrity
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 14: Transactions.
Application architectures Advisor : Dr. Moneer Al_Mekhlafi By : Ahmed AbdAllah Al_Homaidi.
What Should a DBMS Do? Store large amounts of data Process queries efficiently Allow multiple users to access the database concurrently and safely. Provide.
Defects of UML Yang Yichuan. For the Presentation Something you know Instead of lots of new stuff. Cases Instead of Concepts. Methodology instead of the.
Data Integrity & Indexes / Session 1/ 1 of 37 Session 1 Module 1: Introduction to Data Integrity Module 2: Introduction to Indexes.
CPSC-310 Database Systems
Transactional Information Systems:
Contents. Goal and Overview. Ingredients. The Page Model.
Introduction to Algorithms
Chapter 8: Concurrency Control on Relational Databases
Chapter 1: Introduction
Transactional Information Systems - Chapter 2. ML Lab 나 용 찬
Computational Models Database Lab Minji Jo.
Transaction Management and Concurrency Control
Database Management System
About the Presentations
Web Ontology Language for Service (OWL-S)
Chapter 6: Concurrency Control on Objects: Notions of Correctness
Introduction to Database Systems
Chapter 2 Database Environment.
Transactions.
Ch 21: Transaction Processing
Transactions Sylvia Huang CS 157B.
Chapter 6 – Architectural Design
Outline Introduction Background Distributed DBMS Architecture
What Should a DBMS Do? How will we do all this??
Transactional Information Systems:
Introduction of Week 13 Return assignment 11-1 and 3-1-5
Introduction to Algorithms
Chapter 2: Computational Models
Lec 9: Introduction to Transaction Processing Concepts and Theory
Chapter 14: Transactions
Chapter 11 Managing Databases with SQL Server 2000
CPSC-608 Database Systems
Presentation transcript:

Chapter 2 .Computational Models Ha,Hong Pyo 2012.1.11

Outline Paper information Introduction What is model? Transaction Model Conclusion

Introduction Modeling in transaction in database

What is model? Definition That is descriptive statements for object expressed in a given language

PURPOSE OF MODEL SPECIFYING IMPLEMENTATION MODEL ABSTRACTION

Origin meaning of model The term “model” is derived from the Latin word modulus, which means measure, rule, pattern, example to be followed. Obvious examples are toy railways and dolls, maps, architectural models of buildings. In software engineering, we have process models, design patterns, class diagrams. Other models are less obvious, like project plans, specifications and designs, metrics, and minutes of project meetings.

How is a model used? FROM SUS DUDUCTION NEW STATEMENTS

What is a transaction? Definition of a transaction from user viewpoint The execution of a program to perform a function (functions) by accessi ng a shared database, usually on behalf of a user (application) You have a requirement (air ticket booking) -> Your system implements a function to meet your requirement -> You invoke the function to book an air ticket -> a transaction is created Other Examples: Reserve a room in a hotel Withdraw money from an ATM Verify a credit card sale Update a student record Place an order using an on-line catalog on the Internet

SIMPLE MODEL OF A DATABASE A database - collection of named data items Granularity of data - a field, a record , or a whole disk block (Concepts are independent of granularity) Basic operations are read and write read_item(X): Reads a database item named X into a program variable. To simplify our notation, we assume that the program variable is also named X. write_item(X): Writes the value of program variable X into the database item named X.

Computational Models for transactional server Defining elementary options on objects Execution of transaction programs can be modeled Obtaining schedules or histories as an abstract notion of concurrent execution Identifying ACID properties Creating correct algorithm and protocols

partial order’s Formal definition A partial order is a binary relation "≤" over a set P which is reflexive, antisymmetric, and transitive, i.e., for all a, b, and c in P, we have that: a ≤ a (reflexivity); if a ≤ b and b ≤ a then a = b (antisymmetry); if a ≤ b and b ≤ c then a ≤ c (transitivity).

Differences between Object model and page model Elementary options What kind of elementary operation ,we consider lead to the distinction page model and the object the model Page model : these are pages with read and write operation Object model : these are general objects with an encapsulated set of operations appllicable to them

Backup/Recovery Manager Read/write model We abstract from transaction semantics except for database reads and writes. Basic operations in the model? Basic operations must be guaranteed to be formal consistent, atomic and isolated. Transaction 1 Transaction 2 ... Transaction n Scheduler restart restore Backup/Recovery Manager Database Manager Archive Manager Database We are only concerned with database consistency  we are only interested in database reads and writes.

Read/write model “Syntax”: (Read/Write Model Transaction): A transaction t is a partial order of steps (actions) of the form r(x) or w(x), where x  D (D database) and reads and writes applied to the same object are strictly ordered. We write t = (op, <) for transaction t with step set op and partial order <. Examples: t1 = r(s)w(s)r(v)w(v) for short: r(s) w(s) r(v) w(v) t2 = r(s)w(s) r(v)w(v)

Read/write model Worst-case assumption! “Syntax”: (Read/Write Model Transaction): A transaction t is a partial order of steps (actions) of the form r(x) or w(x), where x  D (D database) and reads and writes applied to the same object are strictly ordered. We write t = (op, <) for transaction t with step set op and partial order <. “Semantics”: Interpretation of jth step, pj, of t: If pj=r(x), then interpretation is assignment vj := x to local variable vj If pj=w(x) then interpretation is assignment x := fj (vj1, ..., vjk). with unknown function fj and j1, ..., jk denoting t‘s prior read steps. Worst-case assumption!

Page model transaction A transaction t is a partial order of steps(actions) of the form r(x) or w(x) , where x < D and reads and writes as well as multiple writes applied to the same data item are ordered. More formally, a transaction is pair t = ( op, < ) The page model as described above allows a transaction to read or write the same data item more than once, as it the case in the example t = r(x)w(x)r(y)r(x)w(x)

Object model transaction A transaction t is a (finite) tree of labeled nodes with The transaction identifier as the label of the root node The names and parameters of invoked operations as labels of inner Page model read/write operations as labe니 of leaf nodes

Database system internal layers Person who lives in Austin Inspecting result SQL Command translated into operation at the query processing layer at compile time Search operation on an index that returns the RID(address)

DISCUSSION , Q & A Session. Does anybody have a question ?