title: Rails - Correct way to kill a running query
body: <p>First time running queries in rails console... </p>
  
  <p>I had a query run accidentally: something like this </p>
  
  <pre><code>User.where(:location =&gt; 'US'))
  </code></pre>
  
  <p>which apparently is pulling me quite amount of data. </p>
  
  <p>Now the query is still hanging there. I know I could just close this session and restart another. But I just would like to know the safest way to kill a query. Is there something similar like in mysql : </p>
  
  <pre><code>show full processlist 
  </code></pre>
  
  <p>and </p>
  
  <pre><code> kill #
  </code></pre>