SQL hints and activerecord

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.


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs