How do I use SQL hints with ActiveRecord?
I’m trying to have “with(nolock)” added just before the “where”
Mytable.find(:first, :joins=>‘with(nolock)’)
Gives the desired result, but I’d prefer to have it be a default.
Thanks!
How do I use SQL hints with ActiveRecord?
I’m trying to have “with(nolock)” added just before the “where”
Mytable.find(:first, :joins=>‘with(nolock)’)
Gives the desired result, but I’d prefer to have it be a default.
Thanks!
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs