Академический Документы
Профессиональный Документы
Культура Документы
set showplan on
go
use pubs2
go
select au_id, title, pubdate from titles t, titleauthor ta
where t.title_id = ta.title_id and price>10
go
STEP 1
The type of query is SELECT.
FROM TABLE
titles
t
Nested iteration.
Table Scan.
Forward scan.
Positioning at start of table.
Using I/O Size 2 Kbytes for data pages.
With LRU Buffer Replacement Strategy for data pages.
FROM TABLE
titleauthor
ta
Nested iteration.
Table Scan.
Forward scan.
Positioning at start of table.
Using I/O Size 2 Kbytes for data pages.
With LRU Buffer Replacement Strategy for data pages.
(19 rows affected)
Royaume du Maroc Université IBN TOFAIL
Ministère de l'Education Nationale, Licence professionnelle
de l'Enseignement Supérieur, de la Formation Administration des bases de données
des Cadres et de la Recherche Scientifique PR. A. ALLA
gid id text
----------- ----------- ----
2 656002337 select au_id, ...............
gid hashkey id
----------- ----------- -----------
2 309011764 656002337
query
-----
select au_id, title, pubdate from titles t, titleauthor ta where t.title_id = ta.title_id
and price>10
plan
----
( nl_g_join
( t_scan ( table ( t titles ) ) )
( t_scan ( table ( ta titleauthor ) ) )
)
( prop ( table ( ta titleauthor ) )
( parallel 1 )
( prefetch 2 )
( lru )
)
( prop ( table ( t titles ) )
( parallel 1 )
( prefetch 2 )
( lru )
)
Royaume du Maroc Université IBN TOFAIL
Ministère de l'Education Nationale, Licence professionnelle
de l'Enseignement Supérieur, de la Formation Administration des bases de données
des Cadres et de la Recherche Scientifique PR. A. ALLA
set showplan on
go
select au_id, title, pubdate from titles t, titleauthor ta
where t.title_id = ta.title_id and price>10
go
STEP 1
The type of query is SELECT.
FROM TABLE
titles
t
Nested iteration.
Table Scan.
Forward scan.
Positioning at start of table.
Using I/O Size 2 Kbytes for data pages.
With LRU Buffer Replacement Strategy for data pages.
FROM TABLE
titleauthor
ta
Nested iteration.
Table Scan.
Forward scan.
Positioning at start of table.
Using I/O Size 2 Kbytes for data pages.
With LRU Buffer Replacement Strategy for data pages.
query
-----
select au_id, title, pubdate from titles t, titleauthor ta where t.title_id = ta.title_id
and price>10
plan
----
(nl_g_join (t_scan (table (t titles)))(t_scan (table (ta titleauthor))))(prop (table (ta
titleauthor))(parallel 1)(prefetch 2)(mru))(prop (table(t titles))(parallel 1)(prefetch
2)(mru))
Royaume du Maroc Université IBN TOFAIL
Ministère de l'Education Nationale, Licence professionnelle
de l'Enseignement Supérieur, de la Formation Administration des bases de données
des Cadres et de la Recherche Scientifique PR. A. ALLA
set showplan on
go
select au_id, title, pubdate from titles t, titleauthor ta
where t.title_id = ta.title_id and price>10
go
STEP 1
The type of query is SELECT.
FROM TABLE
titles
t
Nested iteration.
Table Scan.
Forward scan.
Positioning at start of table.
Using I/O Size 2 Kbytes for data pages.
With MRU Buffer Replacement Strategy for data pages.
FROM TABLE
titleauthor
ta
Nested iteration.
Table Scan.
Forward scan.
Positioning at start of table.
Using I/O Size 2 Kbytes for data pages.
With MRU Buffer Replacement Strategy for data pages.
gid hashkey id
----------- ----------- -----------
2 309011764 656002337
query
-----
select au_id, title, pubdate from titles t, titleauthor ta where t.title_id = ta.title_id
and price>10
plan
----
(m_g_join (t_scan (table (t titles)))(t_scan (table (ta titleauthor))))
STEP 1
The type of query is INSERT.
The update mode is direct.
FROM TABLE
titles
t
Nested iteration.
Table Scan.
Forward scan.
Positioning at start of table.
Using I/O Size 2 Kbytes for data pages.
With LRU Buffer Replacement Strategy for data pages.
TO TABLE
Worktable1.
Royaume du Maroc Université IBN TOFAIL
Ministère de l'Education Nationale, Licence professionnelle
de l'Enseignement Supérieur, de la Formation Administration des bases de données
des Cadres et de la Recherche Scientifique PR. A. ALLA
STEP 2
The type of query is INSERT.
The update mode is direct.
FROM TABLE
titleauthor
ta
Nested iteration.
Table Scan.
Forward scan.
Positioning at start of table.
Using I/O Size 2 Kbytes for data pages.
With LRU Buffer Replacement Strategy for data pages.
TO TABLE
Worktable2.
Worktable2 created for sort merge join.
STEP 3
The type of query is SELECT.
FROM TABLE
Worktable1.
Merge join (outer table).
Serial data merge.
Table Scan.
Forward scan.
Positioning at start of table.
Using I/O Size 2 Kbytes for data pages.
With LRU Buffer Replacement Strategy for data pages.
FROM TABLE
Worktable2.
Merge join (inner table).
Table Scan.
Forward scan.
Positioning at start of table.
Using I/O Size 2 Kbytes for data pages.
With LRU Buffer Replacement Strategy for data pages.
Royaume du Maroc Université IBN TOFAIL
Ministère de l'Education Nationale, Licence professionnelle
de l'Enseignement Supérieur, de la Formation Administration des bases de données
des Cadres et de la Recherche Scientifique PR. A. ALLA
STEP 1
The type of query is INSERT.
The update mode is direct.
FROM TABLE
titleauthor
ta
Nested iteration.
Table Scan.
Forward scan.
Positioning at start of table.
Using I/O Size 2 Kbytes for data pages.
With LRU Buffer Replacement Strategy for data pages.
TO TABLE
Worktable1.
Worktable1 created for sort merge join.
...
...
...
...
...
...