Materializing Conflicts
Last Updated on Feb 18, 2021
Materializing Conflicts is an approach that turns a Phantom into a lock conflict on a concrete set of rows in the database. It avoids transactions taking incorrect decisions based on non-existent data by materializing objects or rows that the transactions need to fight over.
Though a viable strategy, it is best to materialize conflicts only as a last resort because implementing it means that some concurrency-related concerns have influenced the application data model.