Avoid MySQL round trips

This commit is contained in:
Ian Gulliver
2019-04-15 03:21:19 +00:00
parent 9a1893dfd4
commit 9c0ff57f2f
4 changed files with 55 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
<!--# set var="title" value="Avoid MySQL round trips" -->
<!--# set var="date" value="April 22, 2011" -->
<!--# include file="include/top.html" -->
<p>100ms (e.g. cross-US) latency to your MySQL server? Running 100,000 statements? That's 3 hours of overhead before you even get to your statement runtime on the server. Quick hack:</p>
<pre><code>mysql&gt; delimiter |
mysql&gt; select 1;
-&gt; select 2;
-&gt; |
+---+
| 1 |
+---+
| 1 |
+---+
1 row in set (0.00 sec)
+---+
| 2 |
+---+
| 2 |
+---+
1 row in set (0.00 sec)
</code></pre>
<!--# include file="include/bottom.html" -->