Skip to content
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

Add WITH(NOLOCK) clause in SELECT SQL query #1305

Open
mukarramjavid opened this issue Nov 4, 2023 · 2 comments
Open

Add WITH(NOLOCK) clause in SELECT SQL query #1305

mukarramjavid opened this issue Nov 4, 2023 · 2 comments

Comments

@mukarramjavid
Copy link

mukarramjavid commented Nov 4, 2023

Hi @borisdj ,
Is there any plan to add the WITH(NOLOCK) clause in the SELECT statement within the BulkRead() method?
For example,
SELECT * FROM Employees WITH(NOLOCK)

Thanks

@LeDahu22
Copy link

@mukarramjavid Maybe with (readpast) would be preferable, otherwise you could read uncommited dirty data.

@mukarramjavid
Copy link
Author

@mukarramjavid Maybe with (readpast) would be preferable, otherwise you could read uncommited dirty data.

@borisdj Yes, it is preferable. However, if you make it optional, the user can choose whether to add NO(LOCK) / READPAST or not, similar to WITH(HOLDLOCK). What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants