How do I write a python program to read csv file, in multiple threads each of which starts consuming from a random line, stop once 1million lines are read. and then parse the format and insert into a SQLite db using SQLAlchemy?
valid question