开发者

In memory database with fallback to disk on OOM

开发者 https://www.devze.com 2023-03-25 17:04 出处:网络
I have lots of data to operate on (write, sort, read). This data can potentially be larger than the main memory and doesn\'t need to be stored permanently.

I have lots of data to operate on (write, sort, read). This data can potentially be larger than the main memory and doesn't need to be stored permanently.

Is there any kind of library/database that can store these data for me in memory and that does have and automagically fallback to disk if system runs in a OOM situation? The开发者_Python百科 API and storage type is unimportant as long as it can store basic Python types (str, int, list, date and ideally dict).


Python's built-in sqlite3 caches file-system writes.


I will go for the in memory solution and let the OS swap. I can still replace the storage component if this will be really a problem. Thanks agf.

0

精彩评论

暂无评论...
验证码 换一张
取 消