I have a list of strings of 1.9-2 MILLION elements .
The following code:
items = [...]
item_in_list = items[-1] in items
takes 0.1 seconds
With sqlite3 it takes 0.7 seconds
Now the problem is that I need to perform this check 1 million times , and I would like to complete it in minutes, not days.
More precisely, I am trying to synchronize the contents of a CSV file with the calculated values in the database.
Any ideas? It would be great:)
source
share