My scenario: A Minecraft like game with a theroretical unlimited orld. The chunks need to be stored and retrieved from filesystem in realtime as the game runs.
The size of one chunk is from a couple of bytes up to theoretical maximum of 65kb.
How can I efficiently manage such data on harddisk, given the fact that chunks may change their size when the player modifies it, so I cannot simply overwrite its old position in my level file.
Is it maybe better to use a database for this, something like SqLite?