From d21e94f519f8718b9d692c7866bc56a89c5aa0ee Mon Sep 17 00:00:00 2001 From: Toks Date: Fri, 17 Apr 2015 09:58:57 -0400 Subject: [PATCH] #2363 no timeout --- app/models/tag_alias.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/models/tag_alias.rb b/app/models/tag_alias.rb index f59e05483..bf6703c1a 100644 --- a/app/models/tag_alias.rb +++ b/app/models/tag_alias.rb @@ -257,6 +257,8 @@ class TagAlias < ActiveRecord::Base end def self.update_cached_post_counts_for_all - execute_sql("UPDATE tag_aliases SET post_count = tags.post_count FROM tags WHERE tags.name = tag_aliases.consequent_name") + TagAlias.without_timeout do + execute_sql("UPDATE tag_aliases SET post_count = tags.post_count FROM tags WHERE tags.name = tag_aliases.consequent_name") + end end end