General question: Filesystem or database?
- by poeschlorn
Hey guys,
i want to create a small document management system. there are several users who store their files.
each file which is uploaded contains an info which user uploaded it and the document content itself.
In a view there are displayed all files of ONE specific user, ordered by date.
What would be better:
1) giving the documents a name or metadata(XML) which contain the date and user (and iterate through them to get the metadata)
or
2) giving the files a random/unique name and store metadata in a DB? something like this:
date | user | filename
What would you say and why?
The used programming language is java and the DB is MySQL.