Indexing columns in a csv file
问题 I have a large csv file which each row has different columns, such as ID, username, email, job position, etc. I want to search for a row by exact matches (username == David), or wildcard (jobPosition == %admin). I want to index columns in this file to make searches faster, but I don't know which algorithm should I choose (specially for wildcards). 回答1: You can index the file. But you need to read it as a binary file instead of a text file. Use 128 or 256 block size. To build the index, you