From c1cfe2c2ff17bca3cafb9dea4d7a7697eeab9683 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 21 Sep 2021 07:41:59 +0000 Subject: lei q: improve --limit behavior and progress Avoid slurping gigantic (e.g. 100000) result sets into a single response if a giant limit is specified, and instead use 10000 as a window for the mset with a given offset. We'll also warn and hint towards about the --limit= switch when the estimated result set is larger than the default limit. --- Documentation/lei-q.pod | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Documentation') diff --git a/Documentation/lei-q.pod b/Documentation/lei-q.pod index 2823ced8..e1e3666d 100644 --- a/Documentation/lei-q.pod +++ b/Documentation/lei-q.pod @@ -10,7 +10,7 @@ lei q [OPTIONS] (--stdin|-) =head1 DESCRIPTION -Search for messages across the lei store and externals. +Search for messages across the lei/store and externals. =for comment TODO: Give common prefixes, or at least a description/reference. @@ -192,7 +192,9 @@ Default: fcntl,dotlock =item -n NUMBER -Limit the number of matches. +Fuzzy limit the number of matches per-local external and lei/store. +Messages added by the L<--threads> switch do not count towards this +limit, and there is no limit on remote externals. Default: 10000 -- cgit v1.2.3-24-ge0c7