Skip to content

Conversation

@mgrunberg
Copy link
Contributor

This PR resolves #856. As the issue suggests, optimizer_hints just deals with query hints

Inspired by the Mysql & Postgres adapters, the following are equivalent:

Model.optimizer_hints("OPTION (MAXDOP 2, FAST 1)")
Model.optimizer_hints("MAXDOP 2, FAST 1")
Model.optimizer_hints("MAXDOP 2", "FAST 1")

@mgrunberg mgrunberg requested a review from wpolicarpo March 31, 2021 17:53
@wpolicarpo
Copy link
Member

Thanks for you contribution!

@wpolicarpo wpolicarpo merged commit 2bf0078 into rails-sqlserver:master Mar 31, 2021
@mgrunberg mgrunberg deleted the issues/yellowspot/856_missing_optimizer_hints_implementation branch January 3, 2022 17:33
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

Successfully merging this pull request may close these issues.

Missing proper implementation for Rails 6 optimizer_hints

2 participants