Thread View: news.software.nntp
5 messages
5 total messages
Started by Brian Sammon
Tue, 24 Feb 2004 03:05
LIST ACTIVE vs GROUP
Author: Brian Sammon
Date: Tue, 24 Feb 2004 03:05
Date: Tue, 24 Feb 2004 03:05
13 lines
1796 bytes
1796 bytes
I'm poking around at the sourcecode to my newsreader, and I'm trying to understand some of the design decisions. When the newsreader starts up, it iterates through the groups I am subscribed to, doing a "LIST ACTIVE" on each group to determine if there are any new messages. If it can't do that, it "falls back" to using the GROUP command. This suggests to me that the author thought that "LIST ACTIVE" was preferable to "GROUP" as a method of scanning the group. The only difference I can see is that "GROUP" selects the group, while "LIST ACTIVE" (obviously) doesn't. Is there any good reason to prefer "LIST ACTIVE" to "GROUP" for this purpose?
Re: LIST ACTIVE vs GROUP
Author: Russ Allbery
Date: Tue, 24 Feb 2004 20:30
Date: Tue, 24 Feb 2004 20:30
29 lines
2354 bytes
2354 bytes
Brian Sammon <usenet@brisammon.fastmail.fm> writes:
> I'm poking around at the sourcecode to my newsreader, and I'm trying to
> understand some of the design decisions.
> When the newsreader starts up, it iterates through the groups I am
> subscribed to, doing a "LIST ACTIVE" on each group to determine if there
> are any new messages. If it can't do that, it "falls back" to using the
> GROUP command.
> This suggests to me that the author thought that "LIST ACTIVE" was
> preferable to "GROUP" as a method of scanning the group.
> The only difference I can see is that "GROUP" selects the group, while
> "LIST ACTIVE" (obviously) doesn't.
> Is there any good reason to prefer "LIST ACTIVE" to "GROUP" for this
> purpose?
GROUP can be heavier-weight for the server (mildly) than LIST ACTIVE,
since by using GROUP, the news reader is generally indicating its
intention to actually read the group. The server may therefore do things
like open the overview file for the group.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: LIST ACTIVE vs GROUP
Author: Curt Welch
Date: Fri, 27 Feb 2004 18:07
Date: Fri, 27 Feb 2004 18:07
45 lines
3387 bytes
3387 bytes
Brian Sammon <usenet@brisammon.fastmail.fm> wrote: > I'm poking around at the sourcecode to my newsreader, and I'm trying to > understand some of the design decisions. > When the newsreader starts up, it iterates through the groups I am > subscribed to, doing a "LIST ACTIVE" on each group to determine if there > are any new messages. If it can't do that, it "falls back" to using the > GROUP command. > This suggests to me that the author thought that "LIST ACTIVE" was > preferable to "GROUP" as a method of scanning the group. > The only difference I can see is that "GROUP" selects the group, while > "LIST ACTIVE" (obviously) doesn't. > > Is there any good reason to prefer "LIST ACTIVE" to "GROUP" for this > purpose? Actually, I would say that it's not wise in general to use LIST ACTIVE to scan for new articles instead of using the GROUP command. I suspect it was done because the author found that on the server he was using, it happened to be faster and gave him the same numbers. It was probably significantly faster or else he never would have bothered doing it. However, what's true about performance on one server is quite often not true about the performance of other servers. There could easily be servers where a list active on a single group was slower than a GROUP command. Most newsreaders use the GROUP command to find out the article range of the group when checking for new articles, and very few newsreaders use the article numbers from the LIST ACTIVE command for that purpose. Because of that, it's likely that some servers may have implemented LIST ACTIVE in a way that would make it more out-of-date in terms of the current article numbers than the GROUP command. If your newsreader does things which are more non-standard than other newsreaders, you are increasing the probability that it will cause problems with some server in the future. So, I'd say the safest and "wisest" way is to use GROUP to determine article numbers, and use LIST ACTIVE only to get the list of groups. However, since LIST ACTIVE may be faster, if you are willing to risk potential future problems for speed, a newsreader could gamble on using LIST ACTIVE. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: LIST ACTIVE vs GROUP
Author: Russ Allbery
Date: Fri, 27 Feb 2004 18:30
Date: Fri, 27 Feb 2004 18:30
23 lines
2372 bytes
2372 bytes
Curt Welch <curt@kcwc.com> writes:
> Most newsreaders use the GROUP command to find out the article range of
> the group when checking for new articles, and very few newsreaders use
> the article numbers from the LIST ACTIVE command for that purpose.
> Because of that, it's likely that some servers may have implemented LIST
> ACTIVE in a way that would make it more out-of-date in terms of the
> current article numbers than the GROUP command. If your newsreader does
> things which are more non-standard than other newsreaders, you are
> increasing the probability that it will cause problems with some server
> in the future.
This is something that I would encourage server authors to look at,
though, since there are widely used clients that use LIST ACTIVE in this
way. INN specially optimizes the case of LIST ACTIVE with a single group
to do the same thing as GROUP but without changing the current group
pointer rather than scanning the actual active file.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: LIST ACTIVE vs GROUP
Author: Curt Welch
Date: Sat, 28 Feb 2004 03:24
Date: Sat, 28 Feb 2004 03:24
38 lines
3212 bytes
3212 bytes
Russ Allbery <rra@stanford.edu> wrote: > Curt Welch <curt@kcwc.com> writes: > > > Most newsreaders use the GROUP command to find out the article range of > > the group when checking for new articles, and very few newsreaders use > > the article numbers from the LIST ACTIVE command for that purpose. > > Because of that, it's likely that some servers may have implemented > > LIST ACTIVE in a way that would make it more out-of-date in terms of > > the current article numbers than the GROUP command. If your newsreader > > does things which are more non-standard than other newsreaders, you are > > increasing the probability that it will cause problems with some server > > in the future. > > This is something that I would encourage server authors to look at, > though, since there are widely used clients that use LIST ACTIVE in this > way. INN specially optimizes the case of LIST ACTIVE with a single group > to do the same thing as GROUP but without changing the current group > pointer rather than scanning the actual active file. Yeah, that's an interesting point. LIST ACTIVE in my server shares the same data as what the GROUP command works with so there's no issue of the two ever being out of sync, however, the GROUP command does do a bit more in that it double checks the lowest number articles to see if they have recently expired and will adjust the low article count as needed because of expired articles. So you could do a LIST ACTIVE and get one version of the low article number, and then do a GROUP, and get a higher low article value, but if you then did a LIST ACTIVE you would get the updated value so it's never inconsistent. And the group low article count is constantly being updated as articles expire, so LIST ACTIVE is never far away from the truth. I could however likewise special case LIST ACTIVE for a single group to do the exact same thing and check and update the low article value. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
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