This post is more than 5 years old

2208

November 19th, 2009 00:00

XAM - Storage content in "directory like" structure

Hi,

Is it possible to store binary content in Centera (using XAM) in a "directory like" structure ?

Example:

If I want to store file by month, is it possible to store them all under "/2009/11/" , maybe using a field property for all xset?

Then, can all these file (in "/2009/11"can be delete at once ? Maybe, they can be individually delete using a XAM query on the field used to store "/2209/11" and the delete each results seperately ?

Thanks,

David.

2 Intern

 • 

417 Posts

November 19th, 2009 02:00

David - data written to an XSystem is only ever stored as an XSet with a corresponding XUID. The metadata is added via fields on the XSet, and you can store anything there that might help you model your data in a hierarchical fashion.

You could use the field naming scheme within an XSet to do this e.g. create your XStreams as fields named year.month.day.second.data. You could then store all data for a particular day (or week, month, etc) within the same XSet.

I am not suggesting that you make these fields nonbinding and continually add to the XSet, rather that a whole set of data (e.g. for a particular day) could be written within a single XSet when that data is all ready to be archived and if it shares the same retention properties.

Your idea of using Query to test for the value of a date attribute that you store is also possible, but each individual XSet would need to be deleted using the XUIDs that get returned in the Query result set. There is no bulk "delete what you find" option available. 

November 19th, 2009 02:00

Hi,

thanks for the quick response. It helps me a lot.

Regards,

David.

No Events found!

Top