Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document the purpose of the physical/virtual file abstraction #19

Open
abeforgit opened this issue Feb 28, 2024 · 1 comment
Open

Document the purpose of the physical/virtual file abstraction #19

abeforgit opened this issue Feb 28, 2024 · 1 comment

Comments

@abeforgit
Copy link

The model is just posited as self-obvious, but it's very much not. The idea of "file on disk, metadata in database" is fairly easy to grasp, but "file on disk, metadata in database, meta-metadata also in database" is not.

It doesn't help that the virtual file has essentially an identical model to the physical file. The dual layer makes the model unwieldy in development, so it would be nice to know the reason why.

@nvdk
Copy link
Member

nvdk commented Feb 29, 2024

For me one of the main values of this split is that you can safe both the filename a user expects to see (my-file-1.pdf) vs how it's stored xyz.pdf. It also allows you to store the file in multiple locations. This is a very common pattern in describing assets (an abstract form and then an "item" form which describes how 1 instance of the asset is stored) and as such was not deemed necessary to explain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants