in reply to faster with threads?
You're better off keeping your code simple and leveraging OS scheduling, pipes and the databases bulk load utils.