DEV Community

Discussion on: How to deal with ActiveRecord::StatementInvalid PG::QueryCanceled?

Collapse
 
oivoodoo profile image
Alexandr K

Install pghero somewhere via docker container for example and then you keep watching live queries and how much time it's taking. Probably you could find the bottleneck in your queries or blocking table statements.

docker run -d -ti -e PGHERO_USERNAME=<http-basic-auth-username> -e PGHERO_PASSWORD=<http-basic-auth-password> -e DATABASE_URL=postgres://<username>:<password>@<host>:5432/report -p 5005:8080 ankane/pghero