Skip to content

How to index files larger than RAM? #42

Answered by zeux
marcin-github asked this question in Q&A
Discussion options

You must be logged in to vote

Do you know how many lines the file has? I looked into large files before; it’s possible to support but the line counters are 32-bit and on a use case I was aware of before the file had something like 7B lines; handling that required changing file formats and more code than I was comfortable with.

My general advice is to split files like this into more manageable chunks.

Using compressed input files isn’t planned; it would require integrating more external libraries and for anything but single file .gz compression it’s structurally cumbersome to implement, as a single file becomes a folder hierarchy.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by marcin-github
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants