我们拥有大量与这些文件有关的文件和元数据。 如何最好地组织这些建议?
目前,我们建立了司级:
/repository/category/date(when they were loaded into our db)/document_number.pdf and .xml
We use the path as a unique identifier for the document in our system. Having a flat structure doesn t seem to a good option. Also using the path as an id helps to keep our data independent from our database/application logic, so we can reload them easily in case of failure, and all documents will maintain their old ids. Yet, it introduces some limitations. for example we can t move the files once they ve been placed in this structure, also it takes work to put them this way. What is the best practice? How websites such as Scribd deal with this problem?