Ask HN: How do you save data structures on disk?
One approach is to convert them to json and serialize it and save it as a string or binary file. But then if you are dealing with TB of data, or just large amount of data, now your program needs to load the entire thing in ram/memory first.
So Second approach I think could be like regular databases, on-disk. Are there on-disk data structures? Can you make any data structure to exist on disk.
Suppose I have a huge decision tree, terabytes of data. How can I use it without loading the entire thing in memory.