graceful database schema evolution: the prism workbench

19
Graceful Database Schema Evolution: the PRISM Workbench Carlo A. Curino, Hyun J. Moon, and Carlo Zaniolo VLDB 2008 Presented by: Kristian Torp

Upload: wade-garza

Post on 31-Dec-2015

48 views

Category:

Documents


0 download

DESCRIPTION

Graceful Database Schema Evolution: the PRISM Workbench. Carlo A. Curino , Hyun J. Moon, and Carlo Zaniolo VLDB 2008 Presented by: Kristian Torp. Motivation. Problems select * from emp insert into emp (name, dept) values (:x, :y) Current status - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Graceful Database Schema Evolution: the PRISM Workbench

Graceful Database Schema Evolution:

the PRISM Workbench

Carlo A. Curino, Hyun J. Moon, and Carlo Zaniolo

VLDB 2008

Presented by: Kristian Torp

Page 2: Graceful Database Schema Evolution: the PRISM Workbench

Database Specialization Course 2010 2

Motivation

• Problems select * from emp insert into emp (name, dept) values (:x, :y)

• Current status Manual, error prone, time-consuming process Missing methods and tools

Name Dept

Jens HR

Lone RD

Name Dept Salary

Jens HR 10

Lone RD 20

Version n Version n+1

New requirements

“Database Refactoring”

Page 3: Graceful Database Schema Evolution: the PRISM Workbench

Overview• Challenges• Schema Modification Operators (SMOs)• The tool and performance• Conclusion• Critique

Database Specialization Course 2010 3

Page 4: Graceful Database Schema Evolution: the PRISM Workbench

The Current Situation and Solution

Database Specialization Course 2010 4

v1

v2

Time

“Rock Climbing”

v1 v2 v3 v4 v5

Time

“Stepping Stones”

forwardbackward

Page 5: Graceful Database Schema Evolution: the PRISM Workbench

Main Challenges• Schema evolution

Dramatic impact data and queries Extensive application maintenance Cause unacceptable system downtime

• Becoming a bigger problem More collaboration (web-databases) No downtime (300K$/hours) Larger databases

• Method/tool must support Predict and evaluate the effect of schema changes Rewrite queries and applications Migrate the data

Database Specialization Course 2010 5

Page 6: Graceful Database Schema Evolution: the PRISM Workbench

Problem Context: The Power of RDBMSs

Database Specialization Course 2010 6

Physical

Logical

View 1 View 2 View n

DBMSs

Prism

Page 7: Graceful Database Schema Evolution: the PRISM Workbench

WikeMedia Schema Change

Database Specialization Course 2010 7

oidtitleuser

minortext

timestamp

oidtitleuser

minortext

timestampis_new

is_redirect

V41

pidtitle

is_newis_redirect

latest

ridpageiduser

minortimestamp

tidtext

V42

old

cur

page

revision

text

Page 8: Graceful Database Schema Evolution: the PRISM Workbench

Database Specialization Course 2010 8

Schema Change: Effect Queries• Get current information about Auckland entry

SELECT cur.textFROM curWHERE cur.title = ’Auckland’

SELECT text.textFROM page, revision, textWHERE page.pid = revision.pageAND revision.rid = text.tidAND page.latest = revision.ridAND page.title = ’Auckland’

V41

V42

Page 9: Graceful Database Schema Evolution: the PRISM Workbench

SMO: Diagram and Specification

Database Specialization Course 2010 9

Page 10: Graceful Database Schema Evolution: the PRISM Workbench

SMO: Examples

Database Specialization Course 2010 10

partition merge

decompose join

Page 11: Graceful Database Schema Evolution: the PRISM Workbench

SMO Overview (Schema and Data)

Database Specialization Course 2010 11

Page 12: Graceful Database Schema Evolution: the PRISM Workbench

SMO Characteristics

Database Specialization Course 2010 12

Page 13: Graceful Database Schema Evolution: the PRISM Workbench

Prism: The Architecture

Database Specialization Course 2010 13

Page 14: Graceful Database Schema Evolution: the PRISM Workbench

Prism: The Workflow

Database Specialization Course 2010 14

[source: http://yellowstone.cs.ucla.edu:8180/Prism2/Prism.html#]

Page 15: Graceful Database Schema Evolution: the PRISM Workbench

Prism: A Screen Dump

Database Specialization Course 2010 15[source: http://yellowstone.cs.ucla.edu:8180/Prism2/Prism.html#]

Page 16: Graceful Database Schema Evolution: the PRISM Workbench

Prism: Performance

Database Specialization Course 2010 16

Page 17: Graceful Database Schema Evolution: the PRISM Workbench

Conclusion• Tool that support schema evolution and data/query

migration Provides a method (and naturally a tool) for the DBA Available online for testing

• Tool used on real-world non-trivial examples• Data provenance

Documentation of what is done

• Schema modification almost entirely be automated 97% in tested, i.e., 3% manually

• Data/query migration performance well

Database Specialization Course 2010 17

Page 18: Graceful Database Schema Evolution: the PRISM Workbench

Database Specialization Course 2010 18

Good• Relevant problem

Bridges the theoretical world with practice Provides an operational tool

• Real-world, non-trivial running example• Makes practical use of existing research• Validation:

“practical soundness and completeness” “theoretical advances into practical solutions”

• Round-trip, e.g., forward and backward Data provenance

Page 19: Graceful Database Schema Evolution: the PRISM Workbench

Could be improve• What happens if you drop a table is the data then gone?

Can you then go back (flash-back) “system stores and maintains the schema layout history….”

• “chase-based query rewriting” p764 unclear• Better description of key mappings in running example

Handling of constraints in general

• Too many foot notes• Minor errors

Some spelling errors “gygabytes” DED introduced multiple times

• Table 1 misplaced• Dislikes SELECT * (p763) but uses it later (p. 769)• Is (unique, perfect) values (no, yes) impossible in Table 3?

Database Specialization Course 2010 19