Avoid MySQL round trips
This commit is contained in:
27
2011-04-22-avoid-mysql-round-trips.html
Normal file
27
2011-04-22-avoid-mysql-round-trips.html
Normal 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> delimiter |
|
||||||
|
mysql> select 1;
|
||||||
|
-> select 2;
|
||||||
|
-> |
|
||||||
|
+---+
|
||||||
|
| 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" -->
|
||||||
@@ -20,6 +20,7 @@
|
|||||||
<li>2016-Feb-15: <a href="2016-02-15-cable-modem-channel-party.html">Cable modem channel party</a></li>
|
<li>2016-Feb-15: <a href="2016-02-15-cable-modem-channel-party.html">Cable modem channel party</a></li>
|
||||||
<li>2016-Feb-01: <a href="2016-02-01-how-to-enrage-your-cable-modem.html">How to enrage your cable modem</a></li>
|
<li>2016-Feb-01: <a href="2016-02-01-how-to-enrage-your-cable-modem.html">How to enrage your cable modem</a></li>
|
||||||
<li>2016-Feb-01: <a href="2016-02-01-hall-of-2-4-ghz-shame-2016-edition.html">Hall of 2.4 GHz Shame, 2016 Edition</a></li>
|
<li>2016-Feb-01: <a href="2016-02-01-hall-of-2-4-ghz-shame-2016-edition.html">Hall of 2.4 GHz Shame, 2016 Edition</a></li>
|
||||||
|
<li>2011-Apr-22: <a href="2011-04-22-avoid-mysql-round-trips.html">Avoid MySQL round trips</a></li>
|
||||||
<li>2011-Apr-19: <a href="2011-04-19-video-sharing-sucks.html">Video sharing sucks</a></li>
|
<li>2011-Apr-19: <a href="2011-04-19-video-sharing-sucks.html">Video sharing sucks</a></li>
|
||||||
<li>2011-Apr-01: <a href="2011-04-01-a-new-generation-of-google-mysql-tools.html">A new generation of Google MySQL tools</a></li>
|
<li>2011-Apr-01: <a href="2011-04-01-a-new-generation-of-google-mysql-tools.html">A new generation of Google MySQL tools</a></li>
|
||||||
<li>2010-Aug-22: <a href="2010-08-22-net-neutrality.html">Net Neutrality?</a></li>
|
<li>2010-Aug-22: <a href="2010-08-22-net-neutrality.html">Net Neutrality?</a></li>
|
||||||
|
|||||||
26
markdown/2011-04-22-avoid-mysql-round-trips.md
Normal file
26
markdown/2011-04-22-avoid-mysql-round-trips.md
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
<!--# set var="title" value="Avoid MySQL round trips" -->
|
||||||
|
<!--# set var="date" value="April 22, 2011" -->
|
||||||
|
|
||||||
|
<!--# include file="include/top.html" -->
|
||||||
|
|
||||||
|
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:
|
||||||
|
|
||||||
|
mysql> delimiter |
|
||||||
|
mysql> select 1;
|
||||||
|
-> select 2;
|
||||||
|
-> |
|
||||||
|
+---+
|
||||||
|
| 1 |
|
||||||
|
+---+
|
||||||
|
| 1 |
|
||||||
|
+---+
|
||||||
|
1 row in set (0.00 sec)
|
||||||
|
|
||||||
|
+---+
|
||||||
|
| 2 |
|
||||||
|
+---+
|
||||||
|
| 2 |
|
||||||
|
+---+
|
||||||
|
1 row in set (0.00 sec)
|
||||||
|
|
||||||
|
<!--# include file="include/bottom.html" -->
|
||||||
@@ -19,6 +19,7 @@
|
|||||||
1. 2016-Feb-15: [Cable modem channel party](2016-02-15-cable-modem-channel-party.html)
|
1. 2016-Feb-15: [Cable modem channel party](2016-02-15-cable-modem-channel-party.html)
|
||||||
1. 2016-Feb-01: [How to enrage your cable modem](2016-02-01-how-to-enrage-your-cable-modem.html)
|
1. 2016-Feb-01: [How to enrage your cable modem](2016-02-01-how-to-enrage-your-cable-modem.html)
|
||||||
1. 2016-Feb-01: [Hall of 2.4 GHz Shame, 2016 Edition](2016-02-01-hall-of-2-4-ghz-shame-2016-edition.html)
|
1. 2016-Feb-01: [Hall of 2.4 GHz Shame, 2016 Edition](2016-02-01-hall-of-2-4-ghz-shame-2016-edition.html)
|
||||||
|
1. 2011-Apr-22: [Avoid MySQL round trips](2011-04-22-avoid-mysql-round-trips.html)
|
||||||
1. 2011-Apr-19: [Video sharing sucks](2011-04-19-video-sharing-sucks.html)
|
1. 2011-Apr-19: [Video sharing sucks](2011-04-19-video-sharing-sucks.html)
|
||||||
1. 2011-Apr-01: [A new generation of Google MySQL tools](2011-04-01-a-new-generation-of-google-mysql-tools.html)
|
1. 2011-Apr-01: [A new generation of Google MySQL tools](2011-04-01-a-new-generation-of-google-mysql-tools.html)
|
||||||
1. 2010-Aug-22: [Net Neutrality?](2010-08-22-net-neutrality.html)
|
1. 2010-Aug-22: [Net Neutrality?](2010-08-22-net-neutrality.html)
|
||||||
|
|||||||
Reference in New Issue
Block a user