Re: troll performance questions

Eric Rostetter <[email protected]> Fri, 10 Jan 2003 23:47:57 -0600
Newsgroups gmane.comp.horde.troll
Message-ID <[email protected]>
Quoting Thierry Thomas <[email protected]>:

> Le Ven 10 jan 03 à 23:27:15 +0100, Eric Rostetter
> <[email protected]> écrivait :
> > But how to figure out if groups were deleted?  I don't remember how to
> > do this.  Maybe something with ihave/iwant or something, but those
> > are nntp extensions that may not be available everywhere...
> 
> The command GROUP will return a 411 error:

What I meant was, if you are caching a list of all the groups, and
at start you want to both add new groups and remove deleted groups,
you would need a fast, easy way to do that.  You've told us how to
find and add all the new groups.  But I don't see a way to find and
remove all the old groups via nntp.  We can wait until the user tries
to access one and then throw an error, but that isn't so nice.

My original idea would solve this.  Create the array of what the user
thinks is there.  Retrieve the server's list (via nntp list command)
into another array.  Compare the arrays to find groups to add and
delete.

Of course, we could just wait for the user to access the group, find it
missing, remove it from their list, and report the error.  No problem.
And would still be needed for groups which are removed while you are already
in troll.  But if we wanted to make sure the initial list is correct at
the time of building, we'd need to add/delete at that time.

-- 
Eric Rostetter
The Department of Physics
The University of Texas at Austin

Why get even? Get odd!

-- 
Troll mailing list
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: [email protected]