• Keine Ergebnisse gefunden

Datenbanken II

N/A
N/A
Protected

Academic year: 2022

Aktie "Datenbanken II"

Copied!
1
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Datenbanken II

Ubungsblatt 7 – WiSe 2016/17 ¨

24. Die RelationE hat nE = 5000 Tupel auf bE = 2000 Bl¨ocken, die Relation D hat nD = 50 Tupel auf bD = 10 Bl¨ocken. Es stehen M = 6 Bl¨ocke im Puffer zur Verf¨ugung. Es wird angenommen, dass es nur wenige Duplikate in den Join-Attributen gibt.

Berechnen Sie die Block-Zugriffe f¨ur einen Block Nested Loop Join E onD, k = 1 Block f¨ur D.

25. Angabe, bis auf die Join-Strategie, wie in Aufgabe 24.

Berechnen Sie die Block-Zugriffe f¨ur einen Block Nested Loop Join E onD, k = 5 Bl¨ocke f¨urD.

26. Angabe, bis auf die Join-Strategie, wie in Aufgabe 24.

Berechnen Sie die Block-Zugriffe f¨ur einen Block Nested Loop Join DonE, k = 5 Bl¨ocke f¨urE.

27. Angabe, bis auf die Join-Strategie, wie in Aufgabe 24.

Berechnen Sie die Block-Zugriffe f¨ur einen Hash Join. Geben Sie außerdem an, welche Relation als Probing bzw. Building Input verwendet wird.

28. Angabe, bis auf die Join-Strategie, wie in Aufgabe 24.

Berechnen Sie die Block-Zugriffe f¨ur einen Merge Join mit bzw. ohne Clus- tered B+-Baum Index auf die Join-Attribute.

29. Angabe, bis auf die Join-Strategie, wie in Aufgabe 24.

Berechnen Sie die Block-Zugriffe f¨ur einen Index Nested Loop Join, wenn E als Hash Datei organisiert ist und der Suchschl¨ussel den Join-Attributen entspricht. Die verwendete Hashfunktion bildet die Suchschl¨ussel auf 256 Hashwerte ab.

30. Der Join R on S, R(A), S(A), soll als Hash Join ausgef¨uhrt werden, wobei R = {1,6,11,18,25,31,28}, S = {1,3,6,7,9,11,23,25,27,30,8,19,17}. Es stehen M = 3 Bl¨ocke im Puffer zur Verf¨ugung, jeder Block fasst 1 Tupel.

a) Welche Relation wird als Build Input verwendet?

b) Verwenden Sie zum Erstellen der Partitionen eine Hashfunktion der Form h(x) =x mod cund bestimmen Sie einen geeigneten Wert f¨urc.

c) F¨uhren Sie den Join aus. F¨ur den Hauptspeicher-Hash-Index wird der 5-stellige Bin¨arwert als Hashfunktion und erweiterbares Hashing ver- wendet. Nehmen Sie an, dass das Verzeichnis nicht im Puffer gespeichert werden muss und leere Buckets keinen Platz brauchen.

Referenzen

ÄHNLICHE DOKUMENTE

(a) What join strategies does the system propose (i) without use of an index, (ii) with a unique non-clustering index on Publ.pubID, and (iii) with two clustering indexes, one

hash join: large buckets (build bucket does not fit main memory) index join: matching records on multiple disk pages.. merge join: matching records do not fit in memory at the

Our stream join processes tuples from windows of two input streams using a band predicate [DNS91]; the operator creates join tasks (i.e., batches of tuples from both streams) of

As for left outer joins, by omitting interpolation search on private input runs for the last merge join and scanning the private input completely, we make sure that no anti

In all cases, each run from the smaller input R requires about 2 pages in the buffer pool, confirming the basic hypothesis that g-join perform similar to hash join for large,

During the complete run of the kernel function, the current point of the outer loop is constant, and we call this point the query point q of the thread, because the thread operates

E integer Bercidanung string Ereignisse Wii folgori

Gehen Sie davon aus, dass beim Nested-Loop-Join die linke Eingabe zuerst geöffnet wird und dass beim Hash-Join aus der linken Eingabe eine Hashtabelle