Merge pull request #1306 from okriuchykhin/ok_SCI_2739

Improve search speed on files and inventories [SCI-2739]
This commit is contained in:
Alex Kriuchykhin 2018-09-18 15:16:36 +02:00 committed by GitHub
commit adf31581f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -173,7 +173,6 @@ class SearchController < ApplicationController
@protocol_search_count = fetch_cached_count Protocol @protocol_search_count = fetch_cached_count Protocol
@step_search_count = fetch_cached_count Step @step_search_count = fetch_cached_count Step
@checklist_search_count = fetch_cached_count Checklist @checklist_search_count = fetch_cached_count Checklist
@sample_search_count = fetch_cached_count Sample
@repository_search_count_total = count_by_repository @repository_search_count_total = count_by_repository
@asset_search_count = fetch_cached_count Asset @asset_search_count = fetch_cached_count Asset
@table_search_count = fetch_cached_count Table @table_search_count = fetch_cached_count Table
@ -188,7 +187,6 @@ class SearchController < ApplicationController
@search_results_count += @protocol_search_count @search_results_count += @protocol_search_count
@search_results_count += @step_search_count @search_results_count += @step_search_count
@search_results_count += @checklist_search_count @search_results_count += @checklist_search_count
@search_results_count += @sample_search_count
@search_results_count += @repository_search_count_total @search_results_count += @repository_search_count_total
@search_results_count += @asset_search_count @search_results_count += @asset_search_count
@search_results_count += @table_search_count @search_results_count += @table_search_count