Skip to content

Commit

Permalink
Increase solr page size for csv download.
Browse files Browse the repository at this point in the history
refs #4245
  • Loading branch information
justinlittman committed Oct 19, 2023
1 parent c9a2ff7 commit eac576e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/models/report.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class << self

COLUMN_SELECTOR_COLUMN_SIZE = 3 # Helps display report columns in neatly lined up columns.
ROWS_PER_PAGE = 100
ROWS_PER_PAGE_CSV = 100_000

REPORT_FIELDS = [
{
Expand Down Expand Up @@ -277,7 +278,7 @@ def report_data
# @return [Enumerator] data in CSV format
def to_csv
@params[:page] = 1
@params[:per_page] = ROWS_PER_PAGE
@params[:per_page] = ROWS_PER_PAGE_CSV
Enumerator.new do |yielder|
yielder << CSV.generate_line(@fields.map { |field| field.fetch(:label) }, force_quotes: true) # header row
until @response.documents.empty?
Expand Down

0 comments on commit eac576e

Please sign in to comment.