Professional Documents
Culture Documents
- overall architecture
https://www.cse.unsw.edu.au/~cs9315/22T1/notes/A/notes.html
Relational Algebra
- The last one is different due to the efficiency. Better to have run through the smaller one first.
Week 2:
Calculate the number of reads on input and the number of reads on output.
Get_page();
Rather than reading from disk all the time ,the buffer pool can possibly save time and let us read
from here. (sort of like a cache).
20 buffers – you only need 14 of the 20 buffers to hold all of the data.
MRU
We can try this out in ex4 of Week 2. You need to “Make” the makefile first if not already.
./jsim to see usage
Run it to see the joint simulation. Can even check the joinsim.c
Week 2, exercise 6
W2, Exercise 7
Integer 4 bytes, char 10 bytes (effectively char 12 , due to padding. so, just 10. Fixed size)
float 8 bytes,
4 bytes to tell how long varchar is + length of Varchar (anywhere between 0 and 10).
W2, Exercise 8
W3a
e.g. (0,4,int)
Note: the offset is 6 and not 4 because it stores the length (+ padding) of the varchar in the 2 fields.
To answer the Q:
General cost: Time to answer a query is dominated by the time taken to read pages
Week 4a:
Data file structures: