mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-29 03:35:25 +08:00
Merge pull request #1306 from okriuchykhin/ok_SCI_2739
Improve search speed on files and inventories [SCI-2739]
This commit is contained in:
commit
adf31581f1
1 changed files with 0 additions and 2 deletions
|
@ -173,7 +173,6 @@ class SearchController < ApplicationController
|
|||
@protocol_search_count = fetch_cached_count Protocol
|
||||
@step_search_count = fetch_cached_count Step
|
||||
@checklist_search_count = fetch_cached_count Checklist
|
||||
@sample_search_count = fetch_cached_count Sample
|
||||
@repository_search_count_total = count_by_repository
|
||||
@asset_search_count = fetch_cached_count Asset
|
||||
@table_search_count = fetch_cached_count Table
|
||||
|
@ -188,7 +187,6 @@ class SearchController < ApplicationController
|
|||
@search_results_count += @protocol_search_count
|
||||
@search_results_count += @step_search_count
|
||||
@search_results_count += @checklist_search_count
|
||||
@search_results_count += @sample_search_count
|
||||
@search_results_count += @repository_search_count_total
|
||||
@search_results_count += @asset_search_count
|
||||
@search_results_count += @table_search_count
|
||||
|
|
Loading…
Reference in a new issue