Natterings about history files

Forrest J. Cavalier III mibsoft at epix.net
Sat Mar 3 17:14:28 UTC 2001


> The drawback here is that you're making a strong assumption about the
> correlation between the article Date header and the arrival time that
> could be inaccurate in the case of articles dated into the future, and the
> failure mode is to accept a duplicate.
> 

Great observation. You can't assume any correlation between article
Date header and arrival time.  

I thought of that, but forgot to mention something....

You have to make sure that when you are sweeping entries out of the
in-memory cache, they go out to the approprate date history file.

In other words, you can't write the entry until you receive the
article and look at the date header.  There are a couple of ways
to do this, but one way of looking at is there is not one history
file you are writing to. You probably need 2 or 3 open always, 
because it is common to get articles delayed by a while.  Most
will go into the "current" day, but some will go in the -1 day.

And you may have to rarely open stuff even earlier.




More information about the inn-workers mailing list