From 9c0ff57f2f9eb48a6658069e36d306eedd887706 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Mon, 15 Apr 2019 03:21:19 +0000 Subject: [PATCH] Avoid MySQL round trips --- 2011-04-22-avoid-mysql-round-trips.html | 27 +++++++++++++++++++ index.html | 1 + .../2011-04-22-avoid-mysql-round-trips.md | 26 ++++++++++++++++++ markdown/index.md | 1 + 4 files changed, 55 insertions(+) create mode 100644 2011-04-22-avoid-mysql-round-trips.html create mode 100644 markdown/2011-04-22-avoid-mysql-round-trips.md diff --git a/2011-04-22-avoid-mysql-round-trips.html b/2011-04-22-avoid-mysql-round-trips.html new file mode 100644 index 0000000..329d21f --- /dev/null +++ b/2011-04-22-avoid-mysql-round-trips.html @@ -0,0 +1,27 @@ + + + + + +

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)
+
+ + diff --git a/index.html b/index.html index 426b4cd..2737257 100644 --- a/index.html +++ b/index.html @@ -20,6 +20,7 @@
  • 2016-Feb-15: Cable modem channel party
  • 2016-Feb-01: How to enrage your cable modem
  • 2016-Feb-01: Hall of 2.4 GHz Shame, 2016 Edition
  • +
  • 2011-Apr-22: Avoid MySQL round trips
  • 2011-Apr-19: Video sharing sucks
  • 2011-Apr-01: A new generation of Google MySQL tools
  • 2010-Aug-22: Net Neutrality?
  • diff --git a/markdown/2011-04-22-avoid-mysql-round-trips.md b/markdown/2011-04-22-avoid-mysql-round-trips.md new file mode 100644 index 0000000..dc5443e --- /dev/null +++ b/markdown/2011-04-22-avoid-mysql-round-trips.md @@ -0,0 +1,26 @@ + + + + + +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) + + diff --git a/markdown/index.md b/markdown/index.md index df5bfc2..ce1b20b 100644 --- a/markdown/index.md +++ b/markdown/index.md @@ -19,6 +19,7 @@ 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: [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-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)