From 04693e3ced20e9c70448f6b159ed00063ffb2416 Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Mon, 27 Apr 2015 08:22:53 -0500 Subject: [PATCH] Add Turning Timing On as a postgres til. --- README.md | 1 + postgres/turn-timing-on.md | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 postgres/turn-timing-on.md diff --git a/README.md b/README.md index c0efa70..251bd87 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,7 @@ smart people at [Hashrocket](http://hashrocket.com/). ### postgres - [Timestamp Functions](postgres/timestamp-functions.md) +- [Turning Timing On](postgres/turning-timing-on.md) ### rails diff --git a/postgres/turn-timing-on.md b/postgres/turn-timing-on.md new file mode 100644 index 0000000..33b9b00 --- /dev/null +++ b/postgres/turn-timing-on.md @@ -0,0 +1,9 @@ +# Turn Timing On + +When digging around your database and running queries, it is helpful to +have an eye on the speed of those queries. This can give insight into +where there are needs for optimizations. + +Turn timing on (and off) within `psql` by running `\timing`. With timing +on, the duration of each query will be displayed in milliseconds after the +output of the query.