Incremental Maintenance for Materialized Views over Semistructured Data - PowerPoint PPT Presentation

About This Presentation
Title:

Incremental Maintenance for Materialized Views over Semistructured Data

Description:

Serge Abiteboul Jason McHuge. Michael Rys Vasilis Vassalos. Janet L. Wiener. presented By: ... Recomputing the view contents from the database. ... – PowerPoint PPT presentation

Number of Views:125
Avg rating:3.0/5.0
Slides: 23
Provided by: gal121
Category:

less

Transcript and Presenter's Notes

Title: Incremental Maintenance for Materialized Views over Semistructured Data


1
Incremental Maintenance for Materialized Views
over Semistructured Data
  • Written By
  • Serge Abiteboul Jason McHuge
  • Michael Rys Vasilis Vassalos
  • Janet L. Wiener
  • presented By
  • Galit Fridman

2
Outline
  • Introduction
  • Incremental Maintenance Approach
  • Definitions
  • Incremental Maintenance Algorithm
  • Evaluation
  • Conclusion

3
Introduction
  • Database views increase the flexibility of a
    database system.
  • Views are materialized to speed up querying, when
    the time is critical .

4
Introduction (cont.)
  • The view contents must be maintained in order to
    preserve consistency with the base data. Two
    ways
  • Recomputing the view contents from the database.
  • Computing the incremental updates to the view,
    based on the updates to the database. (used by
    the new algorithm)

5
Incremental Maintenance Approach
  • For nearly all types of database updates. It is
    more efficient to apply this algorithm to the
    view than recompute the view from the database.

6
The Algorithm is Based on
  • OEM - Object Exchange Model
  • Lorel Query Language

7
OEM - Object Exchange Model
8
Lorel Query Language
  • Uses the select..from..where clauses and
    additional clause with.
  • Provides powerful path expressions for traversing
    the data and rules.

9
Standard Query
  • Example 1
  • select e
  • from Guide.Restaurant r, r.Entree e
  • where r.Name Baghdad Cafe
  • and e.Ingredient Mushroom
  • The answer is 9

10
View Specification Statements
  • Identify objects within a graph.
  • Import arbitrary subgraphs.
  • Add or remove objects appearing in the view.

11
View Specification
  • Example 2
  • define view FavoriteEntrees as Entrees
  • select e
  • from Guide.Restaurant r, r.Entree e
  • where exists x in r.Name Baghdad Cafe
  • and exists y in e.Ingredient Mushroom
  • with e.Name n ,e.Ingredient I

12
Materialized Views
  • Primary objects- objects that are bound to e.
  • adjunct objects - subobjects discovered by the
    with clause.

13
Update Operations
  • Insertion and deletions of the edge.
    Denoted ltIns,o1,L,o2gt
  • ltDel,o1,L,o2gt
  • Change of value of the atomic object.
  • Denoted
  • ltChg,o1,OldVal,NewValgt

14
Incremental Maintenance Algorithm Input
  • 1. View specification statements.
  • 2. Update U ltIns,o1,L,o2gt,
  • ltDel,o1,L,o2gt, Chg,o1,Oldval,NewValgt
  • 3. New database state DB.
  • 4. View instance V.

15
Incremental Maintenance algorithm
  • Basic Structure

16
Base Cost For Update Operations
17
Database Size
18
Number of label occurrences
19
Length of the form clause
20
Bound Variable Position
21
Selectivity of the where clause
22
Conclusion
  • Advantage
  • The algorithm outperforms recomputation of the
    view, even for large numbers of insert and delete
    edge updates.
  • Scales well with increasing the database.
  • Disadvantage
  • can be expensive as full recomputation of the
    view for a single atomic value change.
Write a Comment
User Comments (0)
About PowerShow.com