Efficient way to read a specific line number of a file. (BONUS: Python Manual Misprint)

前端 未结 5 675
醉梦人生
醉梦人生 2021-02-09 17:02

I have a 100 GB text file, which is a BCP dump from a database. When I try to import it with BULK INSERT, I get a cryptic error on line number 219506324. Before sol

5条回答
  •  情歌与酒
    2021-02-09 17:48

    Not a elegant but a faster solution would be to use multiple threads (or tasks in .NET 4.0) to read & process multiple chunks of a file at the same time.

提交回复
热议问题