The Subscription Watchlist Update Algorithm

The results of dbms watchlist queries are sorted in contract id order, and merge traversal is used to match for adds and deletes:

Once the current watchlist is read from the dbms, copy subscriptions from the watchlist vector to a temporary, clear the watchlist, and then traverse the old and new watch lists, queueing subscription cancellations and requests to the router.

Bill Pippin 2010-01-14