title: How to use update all, when all records are different?
body: <p>How can I use <code>update_all</code>, if I want to update a column of 300,000 records all with a variety of different values?</p>
  
  <p>What I want to do is something like:</p>
  
  <pre><code>Model.update_all(:column =&gt; [2,33,94,32]).where(:id =&gt; [22974,22975,22976,22977]) 
  </code></pre>
  
  <p>But unfortunately this doesn't work, and it's even worse for 300,000 entries.</p>