which concurrency control is more efficient pessimistic or optimistic concurrency control

前端 未结 2 1190
猫巷女王i
猫巷女王i 2021-01-27 03:43

I would like to know which concurrency control is more efficient, pessimistic or optimistic concurrency control? Is there a special reason why SQL Server 2005 uses pessimistic c

2条回答
  •  逝去的感伤
    2021-01-27 04:27

    This depends entirely on what concurrency needs your application has. If you are developing an OLTP app, pessiimistic would probably be best... If you are developing a single-user database, optimistic is fine.

提交回复
热议问题