### CS631 : Implementation techniques in DBMS

### Autumn 2022

Previous years: Autumn 2021, Autumn 2020, Autumn 2019, Spring 2019 and many earlier years; older offerings are linked from earlier years.
Sample exam papers will be provided in moodle.
Instructor: S. Sudarshan
Teaching Assistants: Sayanti Bhattacharya, Jaynik Gaglani
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. The Indian print of 7th ed is available as of 21/7/2021.
You can order it from Flipkart or Amazon now, and presumably from other sources soon.
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 other recent 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 Details are linked from Moodle.
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 (tentative)

Topic No. | Date | Topic | Notes
1 | July 27 | Introduction/Overview

2

Aug 3,5

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 10, 12 | Chapter 14: Indexing | Index access method interface in PostgreSQL (read only if you want to create new index types)
4 | Aug 17, 19 | Chapter 15: Query Processing | .
| TBD | Extra class: Overview of PostgreSQL internals -1 | PostgreSQL resources, in particular see Tom Lane's talk
5 | Aug 24, 26 | 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 | Aug 31 | Chapter 17 Transactions | .
7 | Sep 2, 7, 9 | Chapter 18: Concurrency Control | .
| Sep 14 - 20 | No Class (Midsem Exam) | .
8 | Sep 21, 23 | Chapter 19: Recovery | .
9 | Sep 28, 30 | Chapter 10: Big Data |
10 | Oct 5,7 | Chapter 20: Database Architecture |
11 | Oct 12, 14 | Parallel and Distributed Storage | .
12 | Oct 19, 21 | Parallel and Distributed Query Processing |
13 | Oct 26, 28, Nov 2 | Parallel and Distributed Transaction Processing | .
14 | Nov 4, 9 | RAFT: In search of an Understandable Consensus Algorithm, Diego Ongarro and John Ousterhout, USENIX ATC 2014 | .