From 58e5defe9121f8ae6e6e5f7f79b4ecdaa2542127 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 17 Jun 2015 00:52:51 +0200 Subject: [PATCH 1/2] Added indexes. --- db/migrate/20150616224717_add_base_indexes.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 db/migrate/20150616224717_add_base_indexes.rb diff --git a/db/migrate/20150616224717_add_base_indexes.rb b/db/migrate/20150616224717_add_base_indexes.rb new file mode 100644 index 000000000..2727009d0 --- /dev/null +++ b/db/migrate/20150616224717_add_base_indexes.rb @@ -0,0 +1,12 @@ +class AddBaseIndexes < ActiveRecord::Migration + def change + add_index :users, [:organization_id] + add_index :roles_users, [:user_id] + add_index :roles_users, [:role_id] + add_index :groups_users, [:user_id] + add_index :groups_users, [:group_id] + add_index :organizations_users, [:user_id] + add_index :organizations_users, [:organization_id] + + end +end From 168d6878d463c427a85474dba9feae2a068ec00c Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 17 Jun 2015 00:53:37 +0200 Subject: [PATCH 2/2] Removed logging. --- .../app/controllers/ticket_zoom/article_view.js.coffee | 1 - 1 file changed, 1 deletion(-) diff --git a/app/assets/javascripts/app/controllers/ticket_zoom/article_view.js.coffee b/app/assets/javascripts/app/controllers/ticket_zoom/article_view.js.coffee index 52ef8a755..752338d53 100644 --- a/app/assets/javascripts/app/controllers/ticket_zoom/article_view.js.coffee +++ b/app/assets/javascripts/app/controllers/ticket_zoom/article_view.js.coffee @@ -78,7 +78,6 @@ class ArticleViewItem extends App.Controller # check if rerender is needed return if !@hasChanged(@article) - console.log('RERENDER', @ticket_article_id) # prepare html body if @article.content_type is 'text/html' @article['html'] = @article.body