I have an application executing a simple SQL command in PostgreSQL. When the application executes the request, the postgres log files show a duration time of 44 seconds (as does the application). However, if I use the PSQL CLI to execute that very same command, the query is executed in less than a second.
Are there any common reasons as to why this might be the case? Thanks.