in reply to Re^3: search through hash for date in a range
in thread search through hash for date in a range
Yes, sorry; The date ranges can overlap each other. The search sub just returns when it find the first match of a date in any range.
My example should have shown this.
The ranges are more like this:
2018-03-05 06:00:00 -> 2018-03-06 01:00:00 2018-03-05 06:00:00 -> 2018-03-06 02:00:00 2018-03-05 06:00:00 -> 2018-03-06 03:00:00 2018-03-05 06:00:00 -> 2018-03-06 04:00:00 2018-03-05 06:00:00 -> 2018-03-06 05:00:00 2018-03-05 06:00:00 -> 2018-03-06 06:00:00 2018-03-06 06:00:00 -> 2018-03-06 07:00:00 2018-03-06 06:00:00 -> 2018-03-06 08:00:00 2018-03-06 06:00:00 -> 2018-03-06 10:00:00 2018-03-06 06:00:00 -> 2018-03-06 11:00:00 2018-03-06 06:00:00 -> 2018-03-06 12:00:00 2018-03-06 06:00:00 -> 2018-03-06 13:00:00
It is of operational assumption given the above set of ranges (notice 06:00 -> 09:00 is missing which happens often) that we are "normally" processing hour 13 (06:00 -> 14:00 but that is no guarantee ... (Around 6:30 am the log is rotated so the range stars over ...)
If my next load is from 08:00 -> 09:00 then I can skip loading the dates that are already loaded in the 06:00 -> 10:00 data set.
I know, complicated ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: search through hash for date in a range
by poj (Abbot) on Mar 06, 2018 at 19:15 UTC | |
by bfdi533 (Friar) on Mar 06, 2018 at 20:13 UTC | |
by bfdi533 (Friar) on Mar 06, 2018 at 20:16 UTC | |
by bfdi533 (Friar) on Mar 06, 2018 at 19:36 UTC |