🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by Gary Newman x6668 Fri, 04 Jun 1993 14:15
Periodic sorting of active file needed
#1908
Author: Gary Newman x6668
Date: Fri, 04 Jun 1993 14:15
28 lines
2038 bytes
Should the news transport system, or the news reader sort the
active file?  I doubt it's all that important to the transport
system, but the news readers present "new groups" or complete
lists of groups to users in the order they appear in the active
file.

The news transport system (INN in my case) doesn't keep
the active file sorted, and adds new groups to the end. Since
new groups are added infrequently, it wouldn't be that bad for
it to do an insertion sort instead of an append.

The reason this is an issue is that the newsreader I use (TIN 1.20)
displays a menu of newsgroups for possible subscription in the order
they appear in the active file.  With the roughly 2,000 news groups
we maintain here, it's important to present the newsgroups in a
sensible order so people can select and find them.  It's likely
not hard to modify TIN to sort the news groups, but it doesn't
make much sense to me to have each client process busily sorting
the same 2,000 item list over and over again when an insertion
sort in the transport system should do the trick.

What do you all think of this?

=======================================================
Gary Newman			Voice: (508) 670-6668 
KEPS (A Kodak Company)		Fax:   (508) 670-6554
164 Lexington Road		email: gnewman@keps.com
Billerica, MA   01821-3984
Re: Periodic sorting of active file needed
#1909
Author: Tim Pierce
Date: Fri, 04 Jun 1993 18:36
30 lines
1952 bytes
In article <1unlev$89n@nickerson.keps.com> ghn@keps.com (Gary Newman x6668) writes:

>Should the news transport system, or the news reader sort the
>active file?

The newsreader should never affect the active file in any way.  (In
many cases, it can't; cf. NNTP.)

>I doubt it's all that important to the transport
>system, but the news readers present "new groups" or complete
>lists of groups to users in the order they appear in the active
>file.

A number of systems do sort the active file periodically (once a
night, for example) from crontab.  Many users also sort their .newsrc
files from time to time.

>The news transport system (INN in my case) doesn't keep
>the active file sorted, and adds new groups to the end. Since
>new groups are added infrequently, it wouldn't be that bad for
>it to do an insertion sort instead of an append.

I'm inclined to say there's no need to; if a system's users care
enough about having newsgroups presented in alphabetical order, the
system manager can have the active file sorted from time to time.

-- 
____ Tim Pierce                /  ?Usted es la de la tele, eh?  !La madre
\  / twpierce@unix.amherst.edu /  del asesino!  !Ay, que graciosa!
 \/ (BITnet: TWPIERCE@AMHERST) /    -- Pedro Almodovar
Re: Periodic sorting of active file needed
#1910
Author: Mark Delany
Date: Sat, 05 Jun 1993 02:18
32 lines
2069 bytes
In <1unlev$89n@nickerson.keps.com> ghn@keps.com (Gary Newman x6668) writes:

>Should the news transport system, or the news reader sort the
>active file?

>The reason this is an issue is that the newsreader I use (TIN 1.20)
>displays a menu of newsgroups for possible subscription in the order
>they appear in the active file.  With the roughly 2,000 news groups

..

> [doesn't]
>make much sense to me to have each client process busily sorting
>the same 2,000 item list over and over again when an insertion
>sort in the transport system should do the trick.

Well, you can do this with INN in a rough fashion. Eg, have a cron job
that shuts down INN, sorts the active file and restarts INN.

You can't do it while INN is running as 'throttle' doesn't leave the
active file closed.

A quick look at CCblock() suggests that changing ICDwrite() to
ICDclose(); ICDneedsetup=TRUE; would do the trick, but I'm certain I
don't understand the full implications of this.

A pity really, it would be nice if 'throttle' did flush/close the
active file in conjunction with the history file.


-- 
Mark Delany                                    markd@bushwire.apana.org.au
Re: Periodic sorting of active file needed
#1919
Author: Ron Jarrell
Date: Sun, 06 Jun 1993 20:29
20 lines
1728 bytes
Gary Newman x6668 (ghn@keps.com) wrote:
: Should the news transport system, or the news reader sort the
: active file?  I doubt it's all that important to the transport

No! Please no!  (well, ok, but make it an option..)

I manually sort the active file to have the groups in the order I want
our users to get them initially; i.e. the local campus groups first,
the town groups, followed by the other various normal distributions,
with some of the distributions having particular groups out of order as
well.. (I.e. the local important announcement group is on top..)

When I go through and do sanity checking on the active file, I check
for the part that's not sorted on the bottom, decide which ones need to
go away, then sort the rest in.. Take me under an hour once every
couple of weeks.
-- 
Ron Jarrell
Virginia Tech Computing Center
jarrell@vtserf.cc.vt.edu
Re: Periodic sorting of active file needed
#1920
Author: Ian Phillipps
Date: Sun, 06 Jun 1993 22:18
31 lines
1835 bytes
markd@bushwire.apana.org.au (Mark Delany) writes:

>Well, you can do this with INN in a rough fashion. Eg, have a cron job
>that shuts down INN, sorts the active file and restarts INN.

>You can't do it while INN is running as 'throttle' doesn't leave the
>active file closed.

Hmm.. the ctlinnd manpage says explicitly that you should do this.

The sequence for the cautious would be:
	ctlinnd throttle
	ctlinnd flush ''
	<edit active>
	ctlinnd reload active
	ctlinnd go

>A quick look at CCblock() suggests that changing ICDwrite() to
.. I must admit I've not loooked at the code before posting this, only
the documentation.

>A pity really, it would be nice if 'throttle' did flush/close the
>active file in conjunction with the history file.

.. my active file is mmapped anyway, so probably doesn't need flushing.

Ian
-- 
Ian Phillipps, Unipalm Ltd, 216 Science Park,		Phone +44 223 250100
Milton Road, Cambridge, CB4 4WA, England.		Phax  +44 223 250101
PIPEX Ltd. is a wholly-owned subsidiary of Unipalm Ltd. - phone 0223 250120
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads