about summary refs log tree commit homepage
path: root/lib/PublicInbox/NNTP.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-08-26 12:33:38 +0000
committerEric Wong <e@80x24.org>2021-08-28 10:37:03 +0000
commitd7780e12856d83b9f5c58586691e2fbe711321ed (patch)
tree621a3c478ee88ecf17df53fef40e0632bbaf9960 /lib/PublicInbox/NNTP.pm
parent9a157ecd55d759418b30a81769eaa05ea8b7e5d5 (diff)
downloadpublic-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.pm2
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;