title: How to commit to db before sidekiq transaction is complete?
body: <p>I am trying to update a table row on iteration within the job. Below is the code sample</p>
  
  <pre><code>class UpdateTableJob &lt; ApplicationJob
  
    def perform(arg1, arg2)
      User.each do |person|
        person.update_attributes(:name =&gt; "test")
        sleep 25
      end
    end
  
  end
  </code></pre>
  
  <p>Say I have 100 users and only after the iteration of 100 user is done, I could see that change being committed to db. But how can I get that committed on each update?</p>