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

Support MS SQL server #68

Open
erlingur opened this issue Dec 19, 2023 · 2 comments
Open

Support MS SQL server #68

erlingur opened this issue Dec 19, 2023 · 2 comments

Comments

@erlingur
Copy link

Would it be possible to make this gem compatible with MS SQL server using the READPAST hint and UPDLOCK?

https://www.reddit.com/r/SQL/comments/17thq2b/for_update_skip_locked_equivalent_for_ms_sql/
https://learn.microsoft.com/en-us/sql/t-sql/queries/hints-transact-sql-table?view=sql-server-ver16

@rosa
Copy link
Member

rosa commented Dec 19, 2023

Hey @erlingur, great suggestion. I'll add this one to the list of improvements/enhancements we want to ship in the short term. It might take a bit because I don't have experience with MS SQL server. If you'd like to take a stab at it, please feel free. I'd like to detect the RDMS and version when starting, and decide what to use (no SKIP LOCKED at all, SKIP LOCKED...) so maybe this would be done at the same time 🤔

@jonahgeorge
Copy link

I put together a small spike as I'm also very interested in this. Unfortunately, there's a few issues besides the READPAST hint that would need to be resolved (see details in comment):

jonahgeorge#1

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

3 participants