]> Sergey Matveev's repositories - public-inbox.git/commit
lei q: improve --limit behavior and progress
authorEric Wong <e@80x24.org>
Tue, 21 Sep 2021 07:41:59 +0000 (07:41 +0000)
committerEric Wong <e@80x24.org>
Tue, 21 Sep 2021 19:18:36 +0000 (19:18 +0000)
commitc1cfe2c2ff17bca3cafb9dea4d7a7697eeab9683
treedcad22ec6df905ca6f19f00744b33fa1356e8946
parent21fd0da3bcfba4d3564d262f88d3fd7479b6d5ee
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
lib/PublicInbox/LeiLcat.pm
lib/PublicInbox/LeiQuery.pm
lib/PublicInbox/LeiSavedSearch.pm
lib/PublicInbox/LeiUp.pm
lib/PublicInbox/LeiXSearch.pm