Skip to content

Commit

Permalink
User net-http-persistent for Blacklight solr connections.
Browse files Browse the repository at this point in the history
  • Loading branch information
jkeck committed Jul 25, 2018
1 parent ff603bd commit 931138e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,4 @@ gem 'ebsco-eds', '0.3.19.pre' # Pin to 0.3.19.pre to fix an error in prod for no
gem 'whenever' # manages cron jobs
gem 'bitly' # For bit.ly
gem 'bootsnap', require: false
gem 'net-http-persistent' # for persistent http connections to solr
1 change: 1 addition & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,7 @@ DEPENDENCIES
listen (>= 3.0.5, < 3.2)
mods_display (~> 0.4.0)
mysql2
net-http-persistent
newrelic_rpm
nokogiri (>= 1.7.1)
okcomputer
Expand Down
2 changes: 2 additions & 0 deletions app/controllers/catalog_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ class CatalogController < ApplicationController
:"f.callnum_facet_hsim.facet.limit" => "-1"
}

config.connection_config = config.connection_config.merge(http_adapter: :net_http_persistent)

# solr path which will be added to solr base url before the other solr params.
#config.solr_path = 'select'

Expand Down

0 comments on commit 931138e

Please sign in to comment.