xyheme
Joined 6 years ago
Joined 6 years ago
One big JSON file is harder.
I am not fancy, and the aim is to simply use file system as database.
Not fancy stuff like "database as file system as database".
Which is "database as file system".
Not even complicated to implement.
See couchDB for how to handle "what if two people are editing a file at once".
I think it is only good to use directory as data table to store JSON data files, but not for JSON data properties.
I am using Btrfs.
Btrfs inode limits is in a whole different league (whereas ext4's inodes are allocated at filesystem creation time and cannot be resized after creation, typically at 1-2 million, with a hard limit of 4 billion, btrfs's inodes are dynamically allocated as needed, and the hard limit is 2^64, around 18.4 quintillion.
> -- https://unix.stackexchange.com/questions/18388/what-are-the-...
This is also the reason I am researching this old "What if" problem.
Because I think comparing to some version of MySQL or PostgreSQL, files are stable, open and timeless.