CSV or DB is quicker to read several lines from a file with 1,5 billion lines
Two great and very fast tools for structured text files are:


xsv https://github.com/BurntSushi/xsv
tsv-utils https://github.com/eBay/tsv-utils