I use a python dictionary to store key value pairs and the dictionary gets too large(>100GB) and hits a memory limit.
What is a better memory efficient data structure to store key value pairs in python? E.g. we can use generators to replace lists
Maybe that could help: https://github.com/dagnelies/pysos
It keeps only the index in memory and keeps the data on disk.