October 2019
Intermediate to advanced
358 pages
8h 22m
English
Constraints allow us to use underlying relational database features to help us maintain database integrity. We used constraints to prevent duplicate categories in our application. There are many other ways we can leverage constraints.
For instance, when we create a video, we need to make sure that our category exists. We might be tempted to solve this problem by simply performing a query, but such an approach would be unsafe due to race conditions. In most cases, we would expect it to work like this:
However, someone ...
Read now
Unlock full access