Find slow postgres queries on heroku
From your console within your project directory type the following command:
heroku logs --tail --ps postgres
Slow queries are automatically logged by heroku. This will tail your app logs and filter them for the postgres process only. It's great real-time feedback of your app's database performance.
Written by Scott M
Related protips
1 Response
![](https://coderwall-assets-0.s3.amazonaws.com/uploads/user/avatar/79523/6b6d607c73fccfe066ec6adb37b17621.jpeg)
you're my hero
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Heroku
Authors
![](https://coderwall-assets-0.s3.amazonaws.com/uploads/user/avatar/47788/e6b625008c816ab3d8d742cc3eddbb00.jpeg)
dommmel
77.52K
![](https://coderwall-assets-0.s3.amazonaws.com/uploads/user/avatar/39096/ca3dc3f93730afb41d6753d8bf010a38.jpeg)
petenicholls
63.57K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#