Finally some progress on this issue. The new following table displays
the list of rolons being followed in reverse chronological order based
on the date when following was elected. The process is fast and
scalable, but a bit indirect.
When a following link is created, the journal entry for this change is
added to the ark, to the user, to the rolon being followed and to the
following relation. In addition, the timestamp of the journal entry is
saved in the link connecting the user's rolon with the rolon being
followed.
The following table is produced by iterating through the intersection
of the user journal and the following relation rolon. (The
intersection search is very fast--it does NOT use a sequential scan!)
Any journal entries are checked to see if the rolon of any journals
containing that journal entry is being followed by the user--this
becomes a candidate for display. However the link to that rolon must
contain the timestamp of the journal entry, as otherwise duplicates
will be displayed.
That's how far I've progressed. Next I want to include in the table a
link to the journal entry. This way users can see how the results are
ordered, i.e. the timestamp of the journal entry, and by clicking on
the journal entry they can also see who created the link. (Though this
is a bit redundant for following links.)
This then will be a model for other tables.