






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







2
Ā Trivial exercises in first-order logic (says AI)? Ā Bunch of out-of-fashion I/O-efficient indexes and algorithms (says Algorithms)? Ā A fancy file system with a narrow application (says OS)?
Ā Chances are you will find something interesting even if you primary interest is elsewhere
3
Ā Relational algebra, database design, SQL )Covered at a fast pace in the first few weeks
Ā Storage, indexing, query processing and optimization, transaction processing
Ā XML: basics, storage, indexing, query processing Ā Selected topics: TBD
5
6
Ā Answer queries (questions) about data Ā Update data
Ā And keep data around (persistent)
Ā Example: a traditional banking application Ā Each account belongs to a branch, has a number, an owner, a balance, ⦠ Each branch has a location, a manager, ⦠ Query: Whatās the balance in Homer Simpsonās account? Ā Modification: Homer withdraws $ Ā Persistency: Homer will be pretty upset if his balance disappears after a power outage
11
(Pretty drawing stolen from Hans-J. Schekās VLDB 2000 slides)
12
(Pretty drawing stolen from Hans-J. Schekās VLDB 2000 slides)
(Pretty drawing stolen from Hans-J. Schekās VLDB 2000 slides)
14
Ā CODASYL standard (circa 1960ās) )Bachman got a Turing award for this in 1973
15
Ā Query: Who have accounts with 0 balance managed by a branch in Springfield?
Ā Pseudo-code of a CODASYL application:
Use index on account(balance) to get accounts with 0 balance; For each account record: Get the branch id of this account; Use index on branch(id) to get the branch record; If the branch recordās location field reads āSpringfieldā: Output the owner field of the account record.
Ā Programmer controls ānavigationā: accounts ā branches Ā How about branches ā accounts?
20
Ā Relational model is the dominating technology today Ā Object-oriented model works in some niche markets Ā XML is a wanna-be )In practice, many vendors extend relational model with object-oriented and XML features
21
get account balance from database; if balance > amount of withdrawal then balance = balance - amount of withdrawal; dispense cash; store new balance into database;
Ā Should be $250 no matter who goes first
read balance; $
if balance > amount then balance = balance - amount; $ write balance; $
read balance; $ if balance > amount then balance = balance - amount; $ write balance; $
Homer withdraws $100: Marge withdraws $50:
23
read balance; $ if balance > amount then balance = balance - amount; $ write balance; $
read balance; $
if balance > amount then balance = balance - amount; $ write balance; $
Homer withdraws $100: Marge withdraws $50:
24
Ā But data not main-memory variables
Ā Approach taken by MySQL initially; now MySQL offers better alternatives (fun reading: http://openacs.org/philosophy/why-not-mysql.html) Ā But want to control at much finer granularity
Ā End users: query/update databases through application user interfaces (e.g., Amazon.com, 1-800-DISCOVER, etc.)
Ā Database designers: design database āschemaā to model aspects of the real world
Ā Database application developers: build applications that interface with databases
Ā Database administrators (a.k.a. DBAās): load, back up, and restore data, fine-tune databases for performance
Ā DBMS implementors: develop the DBMS or specialized data management software, implement new techniques for query processing and optimization inside DBMS
29
Ā Recommended reference: Database Systems: The Complete Book , by H. Garcia-Molina, J. D. Ullman, and J. Widom
Ā Course info, office hours, syllabus, reference sections in GMUW Ā Lecture slides, assignments, programming notes
30
Ā Programming included
Ā Details to be given in the third week of class
Ā Comprehensive, but with emphasis on the second half of the course
Ā Note: If you are new to relational model and algebra, do NOT read this paper until we cover these topics in lecture next Tuesday