design a system supporting massive data storage and query

前端 未结 4 1058
情歌与酒
情歌与酒 2020-12-23 08:47

I was asked by the interviewer to design a system to store gigabytes of data and the system also has to support some kind of query.

Description:

4条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-23 09:01

    In my opinion, create a B+ tree using time as the key to help you quickly locate the range of records during given time period (t1,t2) in disk. Then using the records during (t1,t2) to build IP and URL hash table respectively.

提交回复
热议问题