teach Clark Kent how to limit the size of a resultset
authorGalen Charlton <gmc@esilibrary.com>
Fri, 20 Mar 2015 21:21:16 +0000 (21:21 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 20 Mar 2015 21:21:16 +0000 (21:21 +0000)
commitf57776d50ca0cc6419b87ed9a476441be91d7835
tree4c8ba8264846aec65cf82f95e61172fbf0842c21
parent82f146f93bfafa88fd1ccf25a11e35b1cf919e47
teach Clark Kent how to limit the size of a resultset

A report that returns too many rows may consume memory
to not good effect.  This patch adds a new command-line
parameter to Clark Kent, --resultset-limit, to allow
report results to be truncated at the specified number of
rows.  Since the user cannot know how many results the
report would have had without the limit, the main
purpose of this patch is to reduce the chance that
clark-kent.pl will trigger OOM-killer.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Reporter/SQLBuilder.pm
Open-ILS/src/reporter/clark-kent.pl