-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Execute queries with NOLOCK on MS SQL side #200
Comments
Use the query option in the foreign table definition and define your query WITH NOLOCK
Keep in mind, this causes READ UNCOMMITED (or dirty reads) and is generally considered bad practice. The MSSQL lock manger should allow your query to read data without locking the data from other transactions and updates (since this is a non-blocking type of lock) unless an UPDATE needs an exclusive lock for some reason. |
@kloba: If this resolved your issue, can you be a sweetie and close this issue? |
Thank you a lot. |
Hello,
How to run all queries throughout tds_fdw in NOLOCK mode on MS SQL side?
I need this, in a case to don't lock a table on an OLTP database.
Best regards,
Taras Kloba
The text was updated successfully, but these errors were encountered: