Conflict-serializable database schedule 2026-10-31
A database schedule that can be turned into a serial database schedule by swapping adjacent operations of different database transactions that do not conflict. Reads and writes of the same object conflict when at least one is a write.
Database precedence graph 2026-10-31
A directed graph with a vertex for each database transaction and an edge from the earlier to the later participant in each conflicting pair of operations. A database schedule is a conflict-serializable database schedule exactly when this directed graph has no directed cycle.
Past exam of the computer science course of the University of Oxford 2015 Databases 2 d Solution 2026-10-31
A serial database schedule is obtained by running the three database transactions in the order :A genuinely interleaved conflict-serializable database schedule with the same serial order isThe early conflicts with nothing: all accesses to are reads. The conflicts on give edges , and in the database precedence graph, while the writes to give the already present edge . This database precedence graph has no directed cycle and admits the order . Moving the early after swaps it only past non-conflicting operations, recovering the displayed serial database schedule.
For a database schedule that is not a conflict-serializable database schedule, takeOn , before forces . On , before forces . The resulting directed cycle prevents any serial ordering from preserving all conflicts. Each of the three displayed database schedules preserves the operation order inside every database transaction.
Serial database schedule 2026-10-31
A database schedule in which every database transaction runs as one contiguous group, without interleaving another database transaction.