-
Notifications
You must be signed in to change notification settings - Fork 563
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
Check if insert_all/upsert_all can be implemented using MERGE #859
Comments
@wpolicarpo I created PR #869 to explore this possibility. I found some issues. |
Hi @aidanharan I would like to pick up the work by @mgrunberg in #869, mostly because I would like to use Solid Queue with MSSQL. There is a recent comment by @justinko regarding a caveat.
Question is if it would be okay if the Otherwise, an official gem for the |
@andyundso Yes, I think de-duplicating the rows in the source in the adapter is fine if it can be made to work. We can document the difference to other adapters in the README. I'm no longer using MSSQL in work so I have limited time to give to the issue. |
@aidanharan question about the tests: I do not really understand what this |
@andyundso You only need to coerce a test if the Rails test doesn't suit the adapter. For example, in the ActiveRecord MSSQL:
For |
Closing as feature added in #1312 |
Created v8.0.5 release with |
cool stuff! now the next challenge is to see if we can get the solid trifecta (cache, queue and cable) to run. :) |
Issue
Rails 6 introduced
upsert_all
and the SQL Server adapter does not implement it yet.There's no such thing as MySQL's
ON DUPLICATE KEY UPDATE
in SQL Server, but we could possibly use theMERGE
clause to achieve the same result.Expected behavior
upsert_all
andinsert_all
could possibly be implemented usingMERGE
.Actual behavior
upsert_all
andinsert_all
are not implemented.The text was updated successfully, but these errors were encountered: