Skip to content

Commit 04693e3

Browse files
committed
Add Turning Timing On as a postgres til.
1 parent 4b79b6e commit 04693e3

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
3636
### postgres
3737

3838
- [Timestamp Functions](postgres/timestamp-functions.md)
39+
- [Turning Timing On](postgres/turning-timing-on.md)
3940

4041
### rails
4142

postgres/turn-timing-on.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Turn Timing On
2+
3+
When digging around your database and running queries, it is helpful to
4+
have an eye on the speed of those queries. This can give insight into
5+
where there are needs for optimizations.
6+
7+
Turn timing on (and off) within `psql` by running `\timing`. With timing
8+
on, the duration of each query will be displayed in milliseconds after the
9+
output of the query.

0 commit comments

Comments
 (0)