diff options
author | Eric Wong <e@80x24.org> | 2021-08-26 12:33:38 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-08-28 10:37:03 +0000 |
commit | d7780e12856d83b9f5c58586691e2fbe711321ed (patch) | |
tree | 621a3c478ee88ecf17df53fef40e0632bbaf9960 /lib/PublicInbox/NNTP.pm | |
parent | 9a157ecd55d759418b30a81769eaa05ea8b7e5d5 (diff) | |
download | public-inbox-d7780e12856d83b9f5c58586691e2fbe711321ed.tar.gz |
move ->ids_after from mm to over
Since we favor ->over in WWW and IMAP, move this method to ->over to reduce open files in common cases. This fixes the /$EXTINDEX_NAME/all.mbox.gz endpoint for extindex entries (which may get expensive...).
Diffstat (limited to 'lib/PublicInbox/NNTP.pm')
-rw-r--r-- | lib/PublicInbox/NNTP.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/NNTP.pm b/lib/PublicInbox/NNTP.pm index aea04c05..ea9ce183 100644 --- a/lib/PublicInbox/NNTP.pm +++ b/lib/PublicInbox/NNTP.pm @@ -210,7 +210,7 @@ sub listgroup_range_i { sub listgroup_all_i { my ($self, $num) = @_; - my $ary = $self->{ibx}->mm(1)->ids_after($num); + my $ary = $self->{ibx}->over(1)->ids_after($num); scalar(@$ary) or return; more($self, join("\r\n", @$ary)); 1; |