Last update
: Wed, Sep 28, 2011 at 1:22 PM.
Garbage collector for feeds
undefined
Algorithm
Create an empty table called t.
Loop over all users.
loop over all feeds the user is subscribed to
if the feed is not in t, add it
t now contains all the feeds and lists that are subscribed to
loop over t
is the url a list?
yes
loop over all the feeds in the list
if the feed is not in t, add it
t now contains the feeds from lists that are subscribed to
loop over the feeds table
is the feed in t?
no
goodbye!
loop over the lists table
is the list in t?
no
goodbye!
Parts
river2Suite.utilities.feedGarbageCollector