I apologize if there is already a tag based on this. This has been confusing me for a while and I want to know if this is supposed to be some kind of bug. Every time I click favorites, I get this:
ActiveRecord::StatementInvalid in PostController#index
PGError: ERROR: canceling statement due to statement timeout
: SELECT COUNT(*) FROM posts p JOIN favorites f ON f.post_id = p.id JOIN users fu ON f.user_id = fu.id WHERE true AND p.status <> 'deleted' AND lower(fu.name) = lower('anthro-lover')
RAILS_ROOT: /home/e621/e621-production/release-2014-06-08
Application Trace | Framework Trace | Full Trace
/opt/rbenv/versions/ree-1.8.7-2012.02/lib/ruby/gems/1.8/gems/activerecord-2.3.18/lib/active_record/connection_adapters/abstract_adapter.rb:227:in log'
/opt/rbenv/versions/ree-1.8.7-2012.02/lib/ruby/gems/1.8/gems/activerecord-2.3.18/lib/active_record/connection_adapters/postgresql_adapter.rb:520:in execute'
/opt/rbenv/versions/ree-1.8.7-2012.02/lib/ruby/gems/1.8/gems/activerecord-2.3.18/lib/active_record/connection_adapters/postgresql_adapter.rb:1002:in select_raw'
/opt/rbenv/versions/ree-1.8.7-2012.02/lib/ruby/gems/1.8/gems/activerecord-2.3.18/lib/active_record/connection_adapters/postgresql_adapter.rb:989:in select'
/opt/rbenv/versions/ree-1.8.7-2012.02/lib/ruby/gems/1.8/gems/activerecord-2.3.18/lib/active_record/connection_adapters/abstract/database_statements.rb:7:in select_all_without_query_cache'
/opt/rbenv/versions/ree-1.8.7-2012.02/lib/ruby/gems/1.8/gems/activerecord-2.3.18/lib/active_record/connection_adapters/abstract/query_cache.rb:60:in select_all'
/opt/rbenv/versions/ree-1.8.7-2012.02/lib/ruby/gems/1.8/gems/activerecord-2.3.18/lib/active_record/connection_adapters/abstract/query_cache.rb:81:in cache_sql'
/opt/rbenv/versions/ree-1.8.7-2012.02/lib/ruby/gems/1.8/gems/activerecord-2.3.18/lib/active_record/connection_adapters/abstract/query_cache.rb:60:in select_all'
/opt/rbenv/versions/ree-1.8.7-2012.02/lib/ruby/gems/1.8/gems/activerecord-2.3.18/lib/active_record/connection_adapters/abstract/database_statements.rb:13:in select_one'
/opt/rbenv/versions/ree-1.8.7-2012.02/lib/ruby/gems/1.8/gems/activerecord-2.3.18/lib/active_record/connection_adapters/abstract/database_statements.rb:19:in select_value'
/opt/rbenv/versions/ree-1.8.7-2012.02/lib/ruby/gems/1.8/gems/activerecord-2.3.18/lib/active_record/base.rb:920:in count_by_sql'
/home/e621/e621-production/release-2014-06-08/app/models/post/count_methods.rb:19:in fast_count'
/home/e621/e621-production/release-2014-06-08/lib/cache.rb:44:in get'
/home/e621/e621-production/release-2014-06-08/app/models/post/count_methods.rb:18:in fast_count'
/home/e621/e621-production/release-2014-06-08/app/controllers/post_controller.rb:394:in index_before_thousand'
/home/e621/e621-production/release-2014-06-08/app/controllers/post_controller.rb:466:in index'
Request
Parameters:
{"tags"=>"fav:Anthro-Lover"}
Show session dump
Response
Headers:
{"Cache-Control"=>"no-cache",
"Set-Cookie"=>"blacklisted_tags=; path=/\nblacklist_avatars=true; path=/\nblacklist_users=false; path=/",
"Content-Type"=>""}
I'm not sure what this is supposed to mean. And I'm just wondering if I'm not the only one getting this. Can it be fixed somehow?
Updated by Genjar