From f876cf66f1984a55c91ee5cdb53da2ce414faea7 Mon Sep 17 00:00:00 2001 From: Rishabh Nambiar <5862206+rishabhnambiar@users.noreply.github.com> Date: Tue, 18 Sep 2018 11:24:37 +0530 Subject: [PATCH] Increase result limit from 250 to 1000 --- assets/javascripts/discourse/components/query-result.js.es6 | 2 +- plugin.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/javascripts/discourse/components/query-result.js.es6 b/assets/javascripts/discourse/components/query-result.js.es6 index 0ad5a26..fb39a6e 100644 --- a/assets/javascripts/discourse/components/query-result.js.es6 +++ b/assets/javascripts/discourse/components/query-result.js.es6 @@ -34,7 +34,7 @@ const QueryResultComponent = Ember.Component.extend({ @computed('content.result_count') resultCount: function(count) { - if (count === 250) { + if (count === 1000) { return I18n.t('explorer.max_result_count', { count }); } else { return I18n.t('explorer.result_count', { count }); diff --git a/plugin.rb b/plugin.rb index 5371787..4993d23 100644 --- a/plugin.rb +++ b/plugin.rb @@ -99,7 +99,7 @@ after_initialize do WITH query AS ( #{query.sql} ) SELECT * FROM query -LIMIT #{opts[:limit] || 250} +LIMIT #{opts[:limit] || 1000} SQL time_start = Time.now