Marking entries as having no rank sounds like a nice idea, but I don't think
it's feasible in the long run. In order to erase ranking effectively from
previous entries, the content provider needs to double their feed size
potentially. And if a user misses out on a "rank update" they could end up
with news items from the distant past sitting at the top of their ranking
forever. Admittedly you already have the problem of losing items that have
fallen off the bottom of a feed, but at least the feed remains readable.
With a corrupted ranking system, the ranking effectively becomes useless.
One possible solution may be the use of a rank-offset tag. Let's say you
have three items A, B and C with A being the most important (rank 1) and C
being the least important (rank 3). You start with a rank-offset of 0 and
your feed looks like this:
A:1 B:2 C:3 (rank-offset = 0)
Now say you want to add a new item D that falls between A and B, but you
still only want to include 4 items in your feed. You increment the
rank-offset to 1 and reconstruct the feed with new ranks which now look like
this:
A:1 D:2 B:3 (rank-offset = 1)
When the client receives that feed, it automatically subtracts the
rank-offset from each item's rank value before adding them to its database.
So internally its list of items now look like this:
A:0 D:1 B:2 C:3
A's rank has been updated. D has been inserted. B and C remain unchanged.
From the client's point of view the ranking numbers will start going
negative almost immediately, but as long as you treat the lowest (signed)
value as having the highest priority it shouldn't be a problem. And the
rankings that actually appear in the feed are always nice small positive
integers. The rank-offset will get large over time (and I don't see how it
can be reset), but that's just one tag.
Eric Scheid wrote:
The only way out of this conundrum is that bbc.co.uk will have to update
the
original #1 and #2 stories and re-rank them as much lower. If they re-rank
them as #46 and #47 then they will need to re-rank any previous entry at
those ranks to lower positions, and similarly for any other entries with
ranks which get pushed down. Eventually the entire history of the feed
needs
to be re-ranked.
Unless entries can be marked as having no rank. Can they?