This locking architecture would cause performance problem on almost all databases.