Ecto: timeout value increase in ecto.

Created on 8 Dec 2016  路  1Comment  路  Source: elixir-ecto/ecto

hello, iam writing some complex queries and some times it takes more that 5 seconds to run. now the problem is, 8some times i time out from request.

i am using Ecto.Adapters.SQL.query() method to run queries. i want to know , i should i increase timeout values. without it , it is just timing out and can't do any processing.

Most helpful comment

You can either Ecto.Adapters.SQL.query(Repo, query, params, timeout: 30_000) or by setting the timeout: 30_000 in your Repo configuration in your config/* files.

>All comments

You can either Ecto.Adapters.SQL.query(Repo, query, params, timeout: 30_000) or by setting the timeout: 30_000 in your Repo configuration in your config/* files.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jordi-chacon picture jordi-chacon  路  4Comments

madshargreave picture madshargreave  路  3Comments

nathanjohnson320 picture nathanjohnson320  路  4Comments

brandonparsons picture brandonparsons  路  3Comments

AndresOsinski picture AndresOsinski  路  5Comments