Fatworm 2013:Code Review 2
外观
Progress Check
- Finish Physical Query Plan (Scan);
- Finish the whole storage part;
- Use fatworm-sister to finish at least one basic test case;
- Finish the B+ tree with integer keys.
Basic Questions
- How do your format a record into a page?
- If the length of a record exceeds the size of a single page, how do you deal with it?
- How can you locate a specified record in your storage?
- How do you store a record with a field type VARCHAR?
- When deleting a record, what happens in your storage (Don't consider indexes here)?
- When a table has indexes, what happens to basic operations like record insertion, deletion, update?
- You want to do a natural join, say select * from a, b where a.a = b.b, and a has an index on a, as well as b has an index on b. How can these indexes help you to accelerate this natural join operation?
- How do you deal with a B+ tree with VCHAR keys?
- How do you construct a B+ tree on a table already with some records in it?
- You want to do a natural join, say select * from a, b where a.a = b.b, and Table a has an index on a, and b in Table b is int primary key auto_inc. How can you use the index to accelerate this natural join operation?
Advanced Questions
All advanced questions are related with indexes. You should be familiar with features of B+ tree, and the complexity of each kind of operations.