What is wrong with the following?
mysql> select 'hello world';
+-------------+
| hello world |
+-------------+
| hello world |
+-------------+
1 row in set (0.00 sec)
Centisecond resolution for query times belongs to the last
century. I want at least millisecond resolution — microsecond is
better. Fortunately, this is as simple as changing a printf
format specifier in the mysql client program.
Edit: I thought that maybe I could fix this by
changing the printf format specifier with sed, but it looks like
I was wrong:
$ sed -e 's/%\.2f sec/%.6f sec/' bin/mysql > bin/mysql-precision
Now when I enter commands, I actually do see 6 digits after the
decimal point, but it looks like I still get only 2 digits of
precision:
mysql> select sleep(.009);
+-------------+
| sleep(.009) |
+-------------+
| 0 |
+-------------+
1 row in set (0.010000 sec)
mysql> select …
[Read more]