title: Why is a Mysql query execution in Node JS so much slower than a direct Mysql query execution?
body: <p>Query:
  <code>select id, event_time from events where event_time &gt; 1395797406712 and event_time &lt; 1398389406712 order by event_time asc</code>. </p>
  
  <p>this query returns ~25k rows (500KB in total size).</p>
  
  <p>When I query the above query in Node.js using the <code>node-mysql</code> driver, it takes ~3-4 seconds to execute.  (I used console.time and console.timeEnd) </p>
  
  <p>When I query it directly in mySql, it says it takes ~200 ms.  </p>
  
  <p>What accounts for this immense difference, and how do I improve the Node.js implementation to be inline with the direct Mysql query?</p>