在 L2S/实体框架中设置 DEADLOCK_PRIORITY
在死锁方面遇到了一些麻烦,其中一个操作(除了“首先摆脱死锁”操作)是设置一个特定存储过程的死锁优先级,以便它永远不会被选为受害者(这要重要得多)。
我可以看到如何在存储过程中执行此操作,但我想知道,作为一项学术练习,这是否可以使用 Entity Framework 或 LINQ2SQL 来实现?
谢谢 邓肯
Had a little trouble with deadlocks and one of the actions (aside from the "get rid of the deadlock in the first place" action) is to set the deadlock priority of one particular stored procedure so that it should never be chosen as the victim (it is a lot more important).
I can see how to do this in the stored procedure, but I was wondering, as an academic exercise, if this can be achieved using Entity Framework or LINQ2SQL ?
Thanks
Duncan
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
确保拥有正确的索引几乎肯定会更好;不适当或丢失的索引是过度锁定/阻塞经常被忽视的一个方面。
You would almost certainly be better off making sure you have the correct indexes; inappropriate or missing indexes are an often overlooked aspect of excessive locking/ blocking.