]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Msgmap.pm
msgmap: add limit to response for NNTP
[public-inbox.git] / lib / PublicInbox / Msgmap.pm
index 192e311aec2b1d459407e0853cfcecb26c2f0448..fdc71e46e214db9526406cf6a6cc76a6686667cf 100644 (file)
@@ -199,7 +199,7 @@ sub msg_range {
        my $attr = { Columns => [] };
        my $mids = $dbh->selectall_arrayref(<<'', $attr, $$beg, $end);
 SELECT num,mid FROM msgmap WHERE num >= ? AND num <= ?
-ORDER BY num ASC
+ORDER BY num ASC LIMIT 1000
 
        $$beg = $mids->[-1]->[0] + 1 if @$mids;
        $mids