I have 2 huge files. One of them contains original DB with transactions line by line sorted alphabetically, the second one contains an incremental DB also with transactions sorted alphabetically. What I need is to get all of the common transactions in both files. Is there a fast and optimized way of doing this in Java? Thanks.
Asked
Active
Viewed 59 times
0
-
How big are the files? (Will one of them load into memory?) – Nicholas Jul 26 '12 at 10:43
-
the files are not that big and can be fit into the memory – Ahmadov Aug 06 '12 at 04:45