🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #90308

Re: working with cnfs

#90308
From: Russ Allbery
Date: Mon, 17 Apr 2023 23:04
24 lines
1905 bytes
Nigel Reed <sysop@endofthelinebbs.com> writes:

> At this point I have over 7 million articles. Do you have any idea how
> long that is going to take? :)

grep is probably somewhat more optimized than sm when reading files, but
searching 7 million articles is just going to be slow no matter how you
retrieve the article.  sm is retrieving the article in mostly similar ways
(mmap) to how grep is retrieving it.

Searching 7 million articles without an index is just going to be slow no
matter how you do it.  This is why when search is an anticipated
operation, people pre-create the search index.

(There have been multiple proposals for a search capability in NNTP and
ways to integrate search into INN over the years, but none of them have
stuck, in part because the open source search tools keep changing and
everyone stops using the old ones.)

-- 
Russ Allbery (eagle@eyrie.org)             <https://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <https://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <87pm82az6n.fsf@hope.eyrie.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <20230417103454.440dbdc0@wibble.sysadmininc.com> <u1k2cf$1ran5$1@news.trigofacile.com> <20230417155045.21198a0b@wibble.sysadmininc.com>

Show Full Headers
Complete Article Headers
Message-ID: <87pm82az6n.fsf@hope.eyrie.org>
Subject: Re: working with cnfs
Date: Mon, 17 Apr 2023 16:04:00 -0700
From: Russ Allbery <eagle@eyrie.org>
References: <20230417103454.440dbdc0@wibble.sysadmininc.com> <u1k2cf$1ran5$1@news.trigofacile.com> <20230417155045.21198a0b@wibble.sysadmininc.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: hope.eyrie.org; logging-data="11284"; mail-complaints-to="news@eyrie.org"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:eZ4nNSRKN/vBjkXRp9H7bG+NWIM=