1 / 11

Vorlesung Datenbanksysteme vom 13.10.2004 : Wiederholung Anfragebearbeitung

Vorlesung Datenbanksysteme vom 13.10.2004 : Wiederholung Anfragebearbeitung. Logische Optimierung. Architektur eines DBMS. Interactive Abfrage. API/Präcompiler. Verwaltungswerkzeug. DML-Compiler. DDL-Compiler. Abfrageoptimierung. Schemaverwaltung. Datenbankmanager.

una
Download Presentation

Vorlesung Datenbanksysteme vom 13.10.2004 : Wiederholung Anfragebearbeitung

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Vorlesung Datenbanksysteme vom 13.10.2004 : Wiederholung Anfragebearbeitung Logische Optimierung

  2. Architektur eines DBMS Interactive Abfrage API/Präcompiler Verwaltungswerkzeug DML-Compiler DDL-Compiler Abfrageoptimierung Schemaverwaltung Datenbankmanager Mehrbenutzersynchronisation Fehlerbehandlung Dateiverwaltung Logdateien Indexe Datenbasis Data Dictionary

  3. Ablauf der Anfrageoptimierung Deklarative Anfrage Scanner Parser Sichtenauflösung Algebraischer Ausdruck Anfrage- Optimierer Auswertungs- Plan (QEP) Codeerzeugung Ausführung

  4. Kanonische Übersetzung A1, ..., An P  select A1, ..., An from R1, ..., Rk where P Rk   R3 R1 R2

  5. Anwendung der Transformationsregeln select distinct s.Semester from Studenten s, hören h Vorlesungen v, Professoren p where p.Name = ´Sokrates´ and v.gelesenVon = p.PersNr and v.VorlNr = h.VorlNr and h.MatrNr = s.MatrNr s.Semester p.Name = ´Sokrates´ and ...  p   v s h

  6. Aufspalten der Selektionsprädikate s.Semester s.Semester p.PersNr=v.gelesenVon p.Name = ´Sokrates´ and ... v.VorlNr=h.VorlNr  s.MatrNr=h.MatrNr p.Name = ´Sokrates´ p     v p  s h v s h

  7. Verschieben der Selektionsprädikate„Pushing Selections“ s.Semester s.Semester p.PersNr=v.gelesenVon p.PersNr=v.gelesenVon v.VorlNr=h.VorlNr s.MatrNr=h.MatrNr  p.Name = ´Sokrates´ v.VorlNr=h.VorlNr   p.Name = `Sokrates`  s.MatrNr=h.MatrNr p p v   v s h s h

  8. Zusammenfassung von Selektionen und Kreuzprodukten zu Joins s.Semester p.PersNr=v.gelesenVon s.Semester Ap.PersNr=v.gelesenVon  v.VorlNr=h.VorlNr p.Name = ´Sokrates´  Av.VorlNr=h.VorlNr s.MatrNr=h.MatrNr p p.Name = ´Sokrates´ v  As.MatrNr=h.MatrNr p s h v s h

  9. Optimierung der JoinreihenfolgeKommutativität und Assoziativität ausnutzen s.Semester s.Semester As.MatrNr=h.MatrNr Ap.PersNr=v.gelesenVon Av.VorlNr=h.VorlNr s Av.VorlNr=h.VorlNr p.Name = ´Sokrates´ Ap.PersNr=v.gelesenVon As.MatrNr=h.MatrNr p h v p.Name = ´Sokrates´ s h v p

  10. Was hat´s gebracht? s.Semester s.Semester 4 4 As.MatrNr=h.MatrNr Ap.PersNr=v.gelesenVon 4 13 Av.VorlNr=h.VorlNr s Av.VorlNr=h.VorlNr 3 p.Name = ´Sokrates´ 13 Ap.PersNr=v.gelesenVon As.MatrNr=h.MatrNr p 1 h v p.Name = ´Sokrates´ s h v p

  11. Einfügen von Projektionen s.Semester s.Semester As.MatrNr=h.MatrNr As.MatrNr=h.MatrNr h.MatrNr s Av.VorlNr=h.VorlNr s Av.VorlNr=h.VorlNr Ap.PersNr=v.gelesenVon Ap.PersNr=v.gelesenVon h h p.Name = ´Sokrates´ p.Name = ´Sokrates´ v v p p

More Related