cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco Data Storage

draxor
Champ in-the-making
Champ in-the-making
I would like to know where alfresco keeps the content of the folders.

To clearify: If I upload a document to an alfresco folder where is it stored? In his (mysql)database, in the alf_data folder, somewhere else??
5 REPLIES 5

draxor
Champ in-the-making
Champ in-the-making
nvm, found the post that gave me the answer
http://forums.alfresco.com/viewtopic.php?t=975

but is there any information about the structure of it?
beside the map where i can figure out that its the year where the documents  were added to alfresco

frederick
Champ in-the-making
Champ in-the-making
Here's the code that generates the URLs of new content (located in the AbstractContentStore class):


    public static String createNewUrl()
    {
        Calendar calendar = new GregorianCalendar();
        int year = calendar.get(Calendar.YEAR);
        int month = calendar.get(Calendar.MONTH) + 1;  // 0-based
        int day = calendar.get(Calendar.DAY_OF_MONTH);
        int hour = calendar.get(Calendar.HOUR_OF_DAY);
        int minute = calendar.get(Calendar.MINUTE);
        // create the URL
        StringBuilder sb = new StringBuilder(20);
        sb.append(STORE_PROTOCOL)
          .append(year).append('/')
          .append(month).append('/')
          .append(day).append('/')
          .append(hour).append('/')
          .append(minute).append('/')
          .append(GUID.generate()).append(".bin");
        String newContentUrl = sb.toString();
        // done
        return newContentUrl;
    }

Since alfresco uses FileContentStore as its default implementation of ContentStore, the part after STORE_PROTOCOL is mapped to a regular directory structure under \alf_data\contentstore.

draxor
Champ in-the-making
Champ in-the-making
What about his metadata? like author etc?

frederick
Champ in-the-making
Champ in-the-making
The answer is in the topic you linked  :wink:

The node resides in the database, as do most of its properties (including author, title, creation date etc).
Properties of the type "content" (i.e. binary data) are the exception: these are stored on the file system.

draxor
Champ in-the-making
Champ in-the-making
aight, thnx, Just what i needed to known :lol: