csv-partial-cache
Csv index with partially cached columns
It meant to allow a performant access to immutable csv data without importing it to database. The idea is to keep line offsets with frequently used columns in memory, while accessing the full line following the offset.
Usage
Let's say we have a table of http statuses:
code | name | description |
---|---|---|
100 | Continue | Status code 100 Continue tells you that a part ... |
101 | Switching Protocols | There have been many HTTP protocols created since ... |
And we'd like to cache short code
and name
columns.
use ;
/// Full table row representation
/// Columns `code` and `name` are essential and small, so we'd like to keep them and memory
// We should tell a little more about the cached representation
block_on
Contributing
Please run .pre-commit.sh before submitting a pull request to ensure all checks pass.
License
This project is licensed under the MIT license.