|
|
|
|
|
by duped
990 days ago
|
|
In your example you're kind of mixing a DB within a DB (the index.json file is a separate database contained within the main database). A better structure would be something like users/<user>/projects/<name>/data/... etc
Now your file system is just a NoSQL database. All that data you would dump into an index.json can be stored in the file tree.That would actually work pretty well as long as you limit operations that are kind of meaningless and disable features like symlinks. Mounting hierarchical data as a pseudo file system is actually pretty common. EG procfs, devfs, sysfs are all pseudo file system that present structured data to applications on Linux through the guise of a file tree. |
|
I think it is only good to use directory as data table to store JSON data files, but not for JSON data properties.