diff --git a/lib/philomena/autocomplete.ex b/lib/philomena/autocomplete.ex index dd6f26f4..4cbf9b7d 100644 --- a/lib/philomena/autocomplete.ex +++ b/lib/philomena/autocomplete.ex @@ -125,7 +125,7 @@ defmodule Philomena.Autocomplete do |> having([_, t], fragment("(100 * count(*)::float / LEAST(?, 100)) > 50", ^images_count)) |> select([_, t], t.id) |> limit(8) - |> Repo.all() + |> Repo.all(timeout: 120_000) {name, assoc_ids} end)