You just use mmap. If it become bigger than the disk capacity of single machine, you can still mount a distributed filesystem and use mmap.
In more extreme situations, you to learn all about materialized views, cache invalidation, etc.