3 ms·
Using the file system, but combining multiple json files into a single file might be an option. - Open ‘current.json’ for append, - write the new json, -
by Someone 4y ago
Using the file system, but combining multiple json files into a single file might be an option.
- Open ‘current.json’ for append,
- write the new json,
- check file size,
- if it’s over a threshold (say 100MB):
- rename file (use UUID or timestamp)
Your tooling would have to support that, of course (writing each json in a single line might be needed)