How to find common strings among two very large files?

后端 未结 8 1912
天涯浪人
天涯浪人 2021-02-06 07:08

I have two very large files (and neither of them would fit in memory). Each file has one string (which doesn\'t have spaces in

8条回答
  •  情深已故
    2021-02-06 07:30

    I would load both files into two database tables so that each string in the file became a row in the table and use SQL queries to find duplicate rows using a join.

提交回复
热议问题