Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to get NHibernate to emit a deadlock hint?

Is there any way to get NHibernate to emit a deadlock hint? e.g. for SQL server "SET DEADLOCK_PRIORITY LOW". At the moment I'm just executing a raw SQL query.

like image 385
grahamrhay Avatar asked Oct 15 '22 01:10

grahamrhay


2 Answers

Here is the technique set dead lock priority, this uses nhibernate interceptors in order emit deadlock priority

Disclosure: Please note that link provided is of my own website

like image 189
Saif Avatar answered Oct 18 '22 03:10

Saif


I am pretty sure there is no such thing. And emiting raw SQL seems OK to me in this very specific case.

like image 28
Rashack Avatar answered Oct 18 '22 03:10

Rashack