|
|
|
|
|
by anacrolix
11 days ago
|
|
I spent years trying to squeeze this use case out of sqlite. All roads lead to tears, it is not made for this use case. I wrote https://github.com/anacrolix/possum for this exact use case. It has a few rough edges but it absolutely hauls ass for caching on disk. Incidentally it uses sqlite for transaction/TTL metadata which is more suited to sqlite but it's still the bottleneck. sqlite transaction commit overhead is too high and uncompetitive without batching but it's a design flaw specific to being multiprocess. |
|
Or is there a better way?