Skip to main content

CST 363 - Week 6

This week, I learned about multiple version concurrency control and how it affects database design and operations.

Multi-version concurrency control, or MVCC, is a solution for a common database problem - given a database with many different users, how can a database handle several transactions at the same or different times while preserving data integrity and maintaining performance?

A database or system that uses MVCC can support two or more transactions at the same time. Because multiple users might modify or read data from this database at the same time, if these operations aren't handled correctly, this could lead to problems such as lost updates (two transactions happening at the same time, with one transaction overwriting the other), or phantom reads (reading data that does not reflect current or recently made changes to it, making it seem as if no changes were made at all). 

One of the simplest ways to prevent problems like this from happening is locking rows or implementing isolation levels. Locking rows in a database prevents modifications to rows in a database until transactions performed to the locked rows are complete. In theory, this is safe and relatively easy to implement, but it could cause a performance hit if many transactions are required at once since these "queued" transactions must wait until other ones unlock. 

Learning about MVCC has given me an interesting insight into how database systems in real world use handle thousands of transactions at once while preserving performance and data integrity as much as possible. 

Comments

Popular posts from this blog

CST 300 - Week 4

Educational Goals My current educational goals are to finish my bachelor's degree in computer science while also gaining a deep understanding of the fundamentals along the way. I have always believed that a solid understanding of the fundamentals goes a long way in any skill since you always refer back to them. When I have gotten stuck on a problem or some skill in the past, I have always taken a step back, broken down things into smaller pieces and remembered my fundamentals, and doing so has helped me through a lot of academic and professional work so far. Although I already know basic programming and data structures, I want to learn more about them and discover new ways of thinking in order to solve complex problems.  Career Goals I started a career as a full-time software test analyst about two months ago. Even though my job doesn't involve a lot of programming, getting a degree in computer science would be really helpful in all aspects of my career, such as identif...

The Final Journal

It's the end of a long, four year journey, and what a journey it has been. I never thought I could pull off finishing my second bachelor's degree four years ago when I first went to that introduction to programming class at my community college. I would like to thank all the friends I've made along the way and the people who have helped me through the last two years. Although it was difficult at times taking class while working 40+ hours a week, I'm proud of myself for making it through. I don't think I'll be a student enrolled in classes anytime soon, but I'll always be a lifelong student. See you all around.

CST 499 - Week 4

This week, our team finished most of the major features of our application, CONVEE - aside from front end style components and changes to the user settings page, our application is almost feature complete. I am proud of our group for our accomplishments and making it this far in the program. Additionally, we also finished updating our ILP pages and put together our video outline for the project video. As I have a good amount of experience now in video production (I have edited almost every single required video in each class I've taken so far, both solo and group), I am looking forward to producing this one. This week's topic covered job interviews. I don't have much experience as an interviewer myself, but one of the tips I received from my manager about interviews was to answer each question confidently, even if you feel like you don't know the answer. I feel as if that approach can backfire at times, however it's always good to approach a new or unknown situa...