title: Laravel slow mysql query latency
body: <pre><code>echo &quot;\nexec first time:&quot;;
  $currentTime = microtime(true);
  $users-&gt;paginate($request-&gt;length, ['*'], 'page', $request-&gt;start/$request-&gt;length + 1);
  echo microtime(true) - $currentTime;
  
  echo &quot;\nexec second time:&quot;;
  $currentTime = microtime(true);
  $users-&gt;paginate($request-&gt;length, ['*'], 'page', $request-&gt;start/$request-&gt;length + 1);
  echo microtime(true) - $currentTime;
  </code></pre>
  <p>The above is the code in my controller for testing the latency when query the mysql. As you can see I execute the same command twice. The execute latency is different.</p>
  <pre><code>exec first time: 2.7011959552765
  exec second time: 0.78873896598816
  </code></pre>
  <p>The above is the output of the performance. During the Laravel document, the server provider contains the DI pattern to share the DB connection. If we are not recreate the connection then what happened is this result?
  If the result is belongs to recreation, then how can I share the connection pool?</p>