Python: storing big data structures

后端 未结 5 1163
南方客
南方客 2021-01-15 12:04

I\'m currently doing a project in python that uses dictionaries that are relatively big (around 800 MB). I tried to store one of this dictionaries by using pickle, but got a

5条回答
  •  北荒
    北荒 (楼主)
    2021-01-15 12:09

    Perhaps you could use sqlite3? Unless you have a real old version of Python, it ought to be available: https://docs.python.org/2/library/sqlite3.html

    I have not checked the limitations of sqlite3, and I have no knowledge of its usefulness in your situation, but it would be worth checking out.

提交回复
热议问题