Interview Question: How to search through 100 1GB files
Anonymous User
348

I saw this question, while interview preparation. I need some input on how can this be done

Given 100 log files locally, each 1GB on your server. Quickly search for the exception

Reading through each file is going to take up the memory space.
can we stream the files? or have multiple threads to read the file.

Since the file is large, it can take up the memory space.

Any thoughts on how can we read this files to search for the exception efficiently

Thank You

Comments (1)