CSE 562 CSE 462 Database Systems

2y ago
23 Views
2 Downloads
385.99 KB
7 Pages
Last View : 1m ago
Last Download : 3m ago
Upload by : Asher Boatman
Transcription

UB CSE Database CoursesCSE 562Database SystemsCSE 462DatabaseConceptsIntroductionCSE 562DatabaseSystemsSome slides are based or modified from originals byDatabase Systems: The Complete Book,Pearson Prentice Hall 2nd Edition 2008 Garcia-Molina, Ullman, and WidomCSE 636DataIntegrationUB CSE 562 Spring 2010 Study key DBMS design issues:Tue & Thu @ 2-3pm210 Bell Hall– Query Languages, Indexing, Query Compilation, QueryExecution, Query Optimization– Recovery, Concurrency and other transactionmanagement issues TA: Xinglei ZhuWednesday @ 12-2pm329 Bell Hall– Data warehousing, Column-Oriented DBMS– Database as a Service (DaaS), Cloud DBMS Web Pagehttp://www.cse.buffalo.edu/ mpetropo/CSE562-SP10/ Ensure that: Newsgroup– You are comfortable using a DBMS– You acquire hands-on experience by implementing theinternal components of a relational database enginesunyab.cse.562UB CSE 562 Spring 20102Goals of the Course Instructor: Dr. Michalis PetropoulosOffice Hours:Location:CSE 7xxDr. Petropoulos’SeminarUB CSE 562 Spring 2010ResourcesOffice Hours:Location:CSE 7xxDr. Chomicki’sSeminar3UB CSE 562 Spring 201041

Course Evaluation Reading MaterialHomework Assignments: 15%Midterm Exam: 20% (in class)Final Exam: 30% (in class)Project: 35%Textbook Database Systems: The Complete Book (2nd Edition)– by Garcia-Molina, Ullman and WidomAlso Recommended Database System Concepts (5th Edition)– Teams of 2– by Avi Silberschatz, Henry F. Korth and S. Sudarshan Database Management Systems (3rd Edition)– by Ramakrishnan and Gehrke Late Submission Policy: Foundations of Databases– Submissions less than 24 hours late will be penalized10%– Submissions more than 24 hours but less than 48hours late will be penalized 25%UB CSE 562 Spring 2010– by Abiteboul, Hull and Vianu5PrerequisitesLet’s Get Started! Chapters 2 through 8 of the textbook:––––6UB CSE 562 Spring 2010 Isn’t Implementing a Database System Simple?Relational Model, Entity/Relationship (E/R) ModelConstraints, Functional DependenciesViews, TriggersDatabase query languages (Relational Algebra, SQL)RelationsStatementsResults Solid background in Data Structures andAlgorithms Significant programming experience in Java Some knowledge of Compilers Curiosity! You should ask a lot of questions!UB CSE 562 Spring 20107UB CSE 562 Spring 201082

Let’s Get Started!Megatron 3000 Implementation Details Relations stored in files (ASCII)– e.g., relation MovieWild # Lynch # WingerSky # Berto # WingerReds # Beatty # Beatty Directory file (ASCII)Movie # Title # STR # Director # STR # Actor # STR Schedule # Theater # STR # Title # STR UB CSE 562 Spring 20109Megatron 3000 Sample Sessions10UB CSE 562 Spring 2010Megatron 3000 Sample Sessions% MEGATRON3000Welcome to MEGATRON 3000!&& select *from Movie #TitleWildSkyRedsTangoTangoTango & ingerWingerBeattyBrandoWingerSnyder&UB CSE 562 Spring 201011UB CSE 562 Spring 2010123

Megatron 3000 Sample SessionsMegatron 3000 To execute select * from Movie where condition(1) Read dictionary to get Movie attributes(2) Read Movie file, for each line:(a) Check condition(b) If OK, display& select Theater, Movie.Titlefrom Movie, Schedulewhere Movie.Title Schedule.TitleAND Actor “Winger” #Theater TitleOdeonWildForumSky&UB CSE 562 Spring 20101314What’s wrong with the Megatron 3000DBMS?Megatron 3000 Tuple layout on disk To executeselect Theater, Movie.Titlefrom Movie, Schedulewhere Movie.Title Schedule.TitleAND Actor “Winger”(1) Read dictionary to get Movie, Schedule attributes(2) Read Movie file, for each line:(a) Read Schedule file, for each line:(i) Create join tuple(ii) Check condition(iii) Display if OKUB CSE 562 Spring 2010UB CSE 562 Spring 2010– Change string from ‘Cat’ to ‘Cats’ and we have torewrite file– Deletions are expensive15UB CSE 562 Spring 2010164

What’s wrong with the Megatron 3000DBMS?What’s wrong with the Megatron 3000DBMS? Brute force query processingFor example: Search expensive; no indexes– Cannot find tuple with given key quickly– Always have to read full relationselect Theater, Movie.Titlefrom Movie, Schedulewhere Movie.Title Schedule.Titleand Actor “Winger” Much better if– Use index to select tuples with “Winger” first– Use index to find theaters where qualified titles play Or– Sort both relations on Title and merge-join Exploit cache and buffersUB CSE 562 Spring 201017What’s wrong with the Megatron 3000DBMS?18What’s wrong with the Megatron 3000DBMS? Concurrency control & recovery No reliability Security Interoperation with other systems Consistency enforcement– Can lose data– Can leave operations half doneUB CSE 562 Spring 2010UB CSE 562 Spring 201019UB CSE 562 Spring 2010205

Course TopicsCourse Topics Hardware Aspects Physical Organization Structure Concurrency ControlCorrectness, locks, deadlocks On-Line Analytical ProcessingRecords in blocks, dictionary, buffer management, Map-Reduce, Indexing Database as a Service (DaaS) Cloud DBMSB-Trees, hashing, Query Processingparsing, rewriting, logical/physical operators,algebraic and cost-based optimization,semantic optimization Crash RecoveryFailures, stable storage, 21UB CSE 562 Spring 2010Database System ArchitectureQuery ProcessingExample Journey of a QueryTransaction ManagementSQL QuerySELECT TheaterFROM Movie M, Schedule SWHERE M.Title S.TitleAND M.Actor “Winger”Calls from Transactions utionEngine22UB CSE 562 Spring 2010ViewDefinitionsStatistics &Catalogs &System DataBufferManagerConcurrencyControllerYet Another logicalquery planLockTableParse/ConvertInitial logicalquery planQuery Rewriterapplies Algebraic RewritingAnother logicalquery planRecoveryManagerQueryRewriterLogData IndexesUB CSE 562 Spring 2010Cont’d23UB CSE 562 Spring 2010246

Example Journey of a Query (cont’d)The Journey of a Query leIndexCost-basedOptimizationWhat are the rules used for thetransformation of the query?How do we evaluate the cost ofa possible execution plan?EXECUTION ENGINEQueryExecutionPlanfind “Winger” tuples using ActorIndexfor each “Winger” tuplefind tuples t with the same titleusing TitleIndexproject the attribute Actor of tIndex on Actor and TitleUnsorted tablesTables MemoryUB CSE 562 Spring 2010TitleWildSkyRedsTangoTangoTango25UB CSE 562 Spring ngerWingerBeattyBrandoWingerSnyderHow is the table arranged onthe disk?Are tuples with the sameActor value clustered?What is the exact structure ofthe index (tree, hash, )?267

– by Avi Silberschatz, Henry F. Korth and S. Sudarshan Database Management Systems (3rd Edition) – by Ramakrishnan and Gehrke Foundations of Databases – by Abiteboul, Hull and Vianu UB CSE 562 Spring 2010 7 Prerequisites Chapters 2 through 8 of the text

Related Documents:

92 vipul sharma it 93 rishabh jain cse 94 manik arora cse 95 nishant bhardwaj cse . 96 rajit shrivastava it 97 shivansh gaur cse 98 harsh singh cse 99 shreyanshi raj cse 100 rahul bedi cse 101 pallavi anand cse 102 divya cse 103 nihal raj it 104 kanak

cse-148 kuriakose jijo george n t george cse-149 kusum joshi ramesh chandra joshi cse-150 m mithun bose n k mohandasan cse-151 madhuri yadav rajbir yadav cse-152 malini shukla r s sharma cse-153 manisha khattar sunil kumar khattar cse-154 m

performance plan of 90 days or more will receive an Annual Evaluation Form (AEF) (AID Form 462-1) at the end of the evaluation period. 462.3.1.2 Appraisal Input Form (AIF) (AID Form 462-4 or 462-5) Effective Date: 01/01/2005 Raters of the employee must complete an Appraisal Input

TCSS 462: Cloud Computing TCSS 562: Software Engineering for Cloud Computing School of Engineering and Technology, UW-Tacoma [Fall 2022] Slides by Wes J. Lloyd L2.1 Introduction . PPT Slides, demonstration Provide technology overview of one cloud service offering Present overview of features, performance, etc.

2 Pro Cal 10533 Sessler Street South Gate, CA 90280 Tel: 562-923-3100 Fax: 562-923-9291 Pro Cal 10533 Sessler Street South Gate, CA 90280 Tel: 562-923-3100 Fax: 562-923-9291 7 *Colors available on some items. **Prices, sizes, weights, capacities and quantities are all subject to change. ***All product is delivered palletized and stretch-wrapped, suitable for .

Database Applications and SQL 12 The DBMS 15 The Database 16 Personal Versus Enterprise-Class Database Systems 18 What Is Microsoft Access? 18 What Is an Enterprise-Class Database System? 19 Database Design 21 Database Design from Existing Data 21 Database Design for New Systems Development 23 Database Redesign 23

Getting Started with Database Classic Cloud Service. About Oracle Database Classic Cloud Service1-1. About Database Classic Cloud Service Database Deployments1-2. Oracle Database Software Release1-3. Oracle Database Software Edition1-3. Oracle Database Type1-4. Computing Power1-5. Database Storage1-5. Automatic Backup Configuration1-6

ALEX RIDER www.anthonyhorowitz.com. Never Say Die Exclusive Extract The start of another day. Alex went into the bathroom, showered and cleaned his teeth. Then he got dressed. He had started school a week ago, arriving at the start of the fall semester – the autumn term, he would have called it back in London. There was no uniform at the Elmer E. Robinson High School. Today, Alex threw on .