subject

All tables are stored in packed form in blocks of length 4096 bytes. student has 10,000 tuples, each 200 bytes long. it is hashed on stuid, the primary key, and has a secondary non-clustered index on lastname, with three levels. there are 8000 values for lastname, 2000 values for firstname, 25 values for major, and 150 values for credit. faculty has 800 tuples of length 100 bytes. it has an index on facid, the primary key, with two levels. there is a secondary non-clustered index on department, with one level. facname has 650 values, department has 25 values, and rank has 4 values. class has 2500 tuples with length of 100 bytes. it is hashed on classname, the primary key, and has no secondary indexes. facid has 700 values here, schedule has 35 values, and room has 350 values. enroll has 50,000 tuples with length of 100 bytes. it has a composite index on the primary key, {class number, stupid}, with four levels, and it has no other index. the attribute grade has 10 values.

1) find the read cost only (no writing costs) of class |x| enroll using nested loops with:
- class as the outside loop and buffer size of only two blocks
- enroll as the outside loop and buffers size of two blocks
- class as the outside loop and buffer size of 10 blocks
- enroll as the outside loop and buffer size of 10 blocks

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 00:00, jahi1201
Ahorse is how much percent more powerful than a pony
Answers: 1
image
Computers and Technology, 22.06.2019 21:00, daniella0123
Simon says is a memory game where "simon" outputs a sequence of 10 characters (r, g, b, y) and the user must repeat the sequence. create a for loop that compares the two strings starting from index 0. for each match, add one point to userscore. upon a mismatch, exit the loop using a break statement. assume simonpattern and userpattern are always the same length. ex: the following patterns yield a userscore of 4: simonpattern: rrgbryybgy userpattern: rrgbbrybgy
Answers: 2
image
Computers and Technology, 23.06.2019 23:00, Maya629277
Lucas put a lot of thought into the design for his company's new white paper. he made sure to include repeating design elements such as color schemes and decorative images. his goal was to a. add symmetry b. create a unified publication c. provide consistency d. save money
Answers: 1
image
Computers and Technology, 24.06.2019 13:30, iicekingmann
In the rgb model, which color is formed by combining the constituent colors? a) black b) brown c) yellow d) white e) blue
Answers: 1
You know the right answer?
All tables are stored in packed form in blocks of length 4096 bytes. student has 10,000 tuples, each...

Questions in other subjects:

Konu
Social Studies, 27.02.2021 08:00
Konu
Mathematics, 27.02.2021 08:00
Konu
Mathematics, 27.02.2021 08:00
Konu
Mathematics, 27.02.2021 08:00