Answer the question
In order to leave comments, you need to log in
How to choose from a large log file?
Hello, friends.
There is a company that sells banner views on the Internet.
For all the time, 300 million records have accumulated in the log. The log consists of the following entries:
Answer the question
In order to leave comments, you need to log in
The problem sounds like a description of a segment tree, since the operation of union of sets is associative.
www.e-maxx-ru.1gb.ru/algo/segment_tree
I think you can make its implementation with data storage on disk, and keep only offsets of the beginning/end of daily ranges in memory. There will be only about a thousand of them in 3 years.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question