COSC 404 21w2
COSC 404 21w2
Course Description
Official Calendar: Fundamental concepts in constructing database systems including file organizations,
storage management, system architectures, query processing/optimization, transaction management,
recovery, and concurrency control. Additional topics may include distributed databases, mobile databases,
and integration. Prerequisite: COSC 304 and third-year standing.
Specific description: This course provides an in-depth study of various approaches and techniques to data
management including relational (SQL) databases, NoSQL systems, and techniques for indexing, query
processing, and concurrency. Students completing the course will have experience in a wide variety of
commercial systems (MySQL, PostgreSQL, MongoDB, Microsoft SQL Server, Snowflake) and the
fundamental knowledge of data processing to make key decisions on selecting and optimizing data
architectures and systems.
Course Objectives
Course Format: Interactive online classes consisting of topic introduction, understanding evaluation using
quick questions, and concept mastery with larger exercises. Practical skills and applications of topics
covered in assignments as well as practice using industrial database systems and software.
Learning Outcomes:
- Experience using and developing on many different SQL and NoSQL databases.
- Proficiency in manipulating data in memory and storage and using index structures for improved
performance.
- Understanding of query processing including parsing, translation, optimization, and execution.
- Applying principles of transactions, concurrency, recovery, and distribution for databases.
- Using knowledge of database techniques to be better users with the ability to use different database
systems, compare their properties, and adapt database techniques when developing software.
Expectations
Attend all classes and prepare before attending class. Course allows online completion for students learning
remotely.
Review the material before the class time. Expect to spend about five hours per week in out-of-class
preparation.
Learn the material in the course by completing all assignments. No late assignments are accepted.
Enjoy attending class activities and participate according to your personality. Ask questions by posting on chat
or raising your hand.
Please actively participate in class discussions, questions, and problem solving exercises.
I want all students to pass the course, receive a good grade, and feel the course was beneficial.
Grading Practices
Faculties, departments, and schools reserve the right to scale grades in order to maintain equity among sections and conformity
to University, faculty, department, or school norms. Students should therefore note that an unofficial grade given by an instructor
might be changed by the faculty, department, or school. Grades are not official until they appear on a student's academic record.
http://www.calendar.ubc.ca/okanagan/index.cfm?tree=3,41,90,1014
Final Examinations
The examination period for this term will be April 14-29, 2022. Students will be permitted to apply for out-of-time final
examinations only if they are representing the University, the province, or the country in a competition or performance; serving
in the Canadian military; observing a religious rite; working to support themselves or their family; or caring for a family member.
Unforeseen events include (but may not be limited to) the following: ill health or other personal challenges that arise during a
term and changes in the requirements of an ongoing job. An examination hardship is defined as the occurrence of an examination
candidate being faced with three (3) or more formal examinations scheduled within a 27-hour (inclusive) period. Further
information on Academic Concession can be found under Policies and Regulation in the Okanagan Academic Calendar
http://www.calendar.ubc.ca/okanagan/index.cfm?tree=3,48,0,0
Missing an Exam
Only students who miss the final exam for a reason that corresponds to the University of British Columbia Okanagan's policy
on excused absences from examinations will be permitted to take the final exam at a later time. A make-up exam may have a
question format different from the regular exam. There will be no make-up midterm exams. If the reason for absence is
satisfactory, the student’s final exam will be worth more of the final grade. Further information on Academic Concession can
be found under Policies and Regulation in the Okanagan Academic Calendar
http://www.calendar.ubc.ca/okanagan/index.cfm?tree=3,48,0,0.
Your Responsibilities
Your responsibilities to this class and to your education as a whole include attendance and participation. You have a responsibility
to help create a classroom environment where all may learn. At the most basic level, this means you will respect the other
members of the class and the instructor and treat them with the courtesy you hope to receive in return. Inappropriate classroom
behavior may include: disruption of the classroom atmosphere, engaging in non-class activities, talking on a cell-phone,
inappropriate use of profanity in classroom discussion, use of abusive or disrespectful language toward the instructor, a student
in the class, or about other individuals or groups.
Academic Integrity
The academic enterprise is founded on honesty, civility, and integrity. As members of this enterprise, all students are expected
to know, understand, and follow the codes of conduct regarding academic integrity. At the most basic level, this means
submitting only original work done by you and acknowledging all sources of information or ideas and attributing them to others
as required. This also means you should not cheat, copy, or mislead others about what is your work. Violations of academic
integrity (i.e., misconduct) lead to the breakdown of the academic enterprise, and therefore serious consequences arise and harsh
sanctions are imposed. For example, incidences of plagiarism or cheating usually result in a failing grade or mark of zero on the
assignment or in the course. Careful records are kept to monitor and prevent recidivism. A more detailed description of academic
integrity, including the policies and procedures, may be found at
http://www.calendar.ubc.ca/okanagan/index.cfm?tree=3,54,111,959. If you have any questions about how academic integrity
applies to this course, consult with the instructor.
The Hub
The Student Learning Hub (LIB 237) is your go-to resource for free math, science, writing, and language learning support. The
Hub welcomes undergraduate students from all disciplines and year levels to access a range of supports that include tutoring
in math, sciences, languages, and writing, as well as help with study skills and learning strategies. Web:
(https://students.ok.ubc.ca/student-learning-hub/) Ph: 250-807-9185.
Lab assignments:
Week Dates Topics Covered and Description
1 January 10 – 14 No Lab First Week of Class
2 January 17 – 21 Lab 1: MySQL vs. PostgreSQL – Creating and Querying Data
3 January 24 – 28 Lab 2: MySQL vs. PostgreSQL – Indexing for Performance
4 Jan. 31 – Feb. 4 Lab 3: Implementing a Text Database and JDBC Driver
5 February 7 – 11 Lab 4: Query Processing with Iterators
6 February 14 – 18 Lab 5: Query Parsing with JavaCC
7 February 21 – 25 No Lab During Midterm Break
8 Feb. 28 – Mar. 4 Lab 6: Storing JSON Documents: MongoDB and PostgreSQL
9 March 7 – 11 Lab 7: Map-Reduce using MongoDB
10 March 14 – 18 Lab 8: Transactions with Microsoft SQL Server
11 March 21 – 25 Lab 9: Cloud Data Analysis with Snowflake
12 March 28 – Apr. 1 Lab 10: Recovering from a Database Failure
13 April 4 - 8 Lab 11: Scaling MySQL: Master-Slave Replication and Partitioning