in reply to How to do session times The Right Way
How about something like this? You want to avoid having to parse the whole log to find an instant in time, but you don't want to save all the instants in time that you could possibly need.
A compromise would be to have a process that follows the log (or parses it from the start), saving checkpoints once in a while. So say, once a day, the process says that "Right now, the following 12 people are online, and they logged on at the corresponding times: ...report...".
Then, when you want to find a specific interval, you only need to parse from the preceeding checkpoint, until the end of the interval. Depending on how frequently you checkpoint, this could be very simple.
-- Dan
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (z) Re: How to do session times The Right Way
by strider corinth (Friar) on Oct 31, 2002 at 18:54 UTC | |
by zigdon (Deacon) on Oct 31, 2002 at 19:27 UTC | |
by strider corinth (Friar) on Oct 31, 2002 at 21:48 UTC |