NEWPractise supported commands in browser simulations, alongside the lesson.Try a browser practice exercise.Try a lab♥ Codelivly is 100% free, no paywall. If it helped you, chip in to keep it running.100% free. Help keep it so.Support us
Preview · 45 min
The server side controls that hold an invariant under overlap in PostgreSQL, how each one fails when misused, and how to recommend and retest a fix.
At 11:05 Owen Adeyemi sent six proposals for the credit note behaviour and asked which one you would sign off. They range from disabling a button to changing the isolation level. Several sound reasonable in a meeting, and three of them leave the invoice able to end at 15000.
The test for any proposal is one sentence: whatever order the statements of two or more transactions run in, the invariant holds after each commit. A control meets it when the database itself refuses or serialises the conflicting work. It fails it when correctness depends on one request finishing before another starts, which no server can promise.
Create a free account to unlock the rest of this task, complete tasks, and earn Rep.
Sign in