CS631 : Implementation techniques in DBMS

Autumn 2020


Previous years: Autumn 2019, Spring 2019 and many earlier years; older offerings are linked from earlier years.
Sample examp papers will be provided in moodle.
Instructor: S. Sudarshan
Teaching Assistants: Arjun Deshwal and Abhishek Sharma
TA Office Hours: TBD
Faculty Office hours: Sudarshan: To be fixed

Lecture schedule Slot 5: Wed and Friday, 9.30-11.00

Course Websites: In addition to this static Web page, we will also be using Moodle for assignment submissions, and Piazza for discussions. More information on Piazza sign up to be provided.
Textbook Database System Concepts, Silberschatz, Korth and Sudarshan, 7th edition (2019), McGraw Hill. (Note: The 7th ed is not yet available in India. You can use corresponding chapters of the 6th edition along with book slides till it becomes available.)

Other reading material will be made available periodically
Book Slides, Errata, solutions to selected exercises and other resources are available at: https://db-book.com

Course contents We will be covering Implementation techniques including Storage and indexing, query processing, and transaction processing (Chapters 12-19), Database System Architectures (Chapter 20) and Parallel and Distributed Storage, Query Processing and Transaction Processing (Chapters 21-23).

We may also cover several research papers during the course.

As in the last two offerings, we will have an increased focus on Big Data, starting with using Big Data systems, and then diving into their internals. You will also set up PostgreSQL, and learn how to make small changes to it as part of the course assignments.

The infrastructure for your course project will be your choice of PostgreSQL or any of the open source big data systems. If you wish to do it on any other infrastructure, you can discuss it with me.

Evaluation scheme This semester I expect about 50% of the marks will be for endsem exams, and the rest for continuous evaluation quizzes, assignments and projects. This is subject to change.

Audit Requirements: Must attend all classes and take all exams. No need to do homeworks/assignments/projects.



Project Information
  1. PostgreSQL project topic suggestions (under construction, will add more ideas) Information about Projects TBA

PostgreSQL Resources Click Here (Instruction on creating patch files for submitting your project)


Schedule of Lectures

Topic No. Date TopicNotes
1 Aug 14 Introduction/Overview
2 Aug 19, 21 Chapter 12 and 13: Physical Storage Systems and Data Storage Structures Assignment: Download and compile PostgreSQL, and open in Eclipse, using instructions provided here
Physical Storage in PostgreSQL, Look inside above link for information on file layout, database page layout, and free space map (and lots more details src/backend/storage/freespace/README). And how PostgreSQL stores oversized attributes using the TOAST technique
3 Aug 26, 28 Chapter 14: Indexing Index access method interface in PostgreSQL (read only if you want to create new index types)
4 Sep 2, 4 Chapter 15: Query Processing .
TBD Extra class: Overview of PostgreSQL internals -1 PostgreSQL resources, in particular see Tom Lane's talk
5 Sep 9, 11, 16 Chapter 16: Query Optimization Statistics in PostgreSQL, and examples of row estimation in PostgreSQL in particular see how PostgreSQL special cases most common values (MCVs).
Assignments on query plans in PostgreSQL
TBD Extra class: Overview of PostgreSQL internals -2, Debugging in Eclipse ..
6 Sep 18, 23 Chapter 17 Transactions .
7 Sep 23, 25, 30 Chapter 18: Concurrency Control .
8 Oct 2, 7 Chapter 19: Recovery .
?? - ?? No Class (Midsem Exam) .
9 Oct 16 Chapter 10: Big Data
10 Oct 18 Chapter 20: Database Architecture
11 Oct 23, 25 Parallel and Distributed Storage .
12 Oct 30, Nov 1 Parallel and Distributed Query Processing
13 Nov 6, 8, 13 Parallel and Distributed Transaction Processing .
14 Nov 15 RAFT: In search of an Understandable Consensus Algorithm, Diego Ongarro and John Ousterhout, USENIX ATC 2014 .