You can only list a single tag (either for sub-tags or for objects). Atmos is first and foremost an object store, not a database. Generally speaking, if you require complex searching, then yes, you should put your metadata in a separate database and store the object identifier there. The vast majority of customers do this.
However, many of our customers also asign one or two listable tags to their objects so they may be located by a 3rd party tool, for debugging, or just in case their primary database fails for some reason so they can re-associate the objects.
To my knowledge there is no current plan to add key-value searching as a feature of Atmos.
Be sure to read the notes on ListOptions to make sure you get all the results back.
To read back an object stored in the namespace, use
byte[] data = atmosApi.readObject( new ObjectPath( "/billing/2013/file1.txt" ), byte[].class );
- or -
byte[] data = esuApi.readObject( new ObjectPath( "/billing/2013/file1.txt" ), null, null );
The new AtmosApi is generic, so you can specify the object type you want (byte[], String, etc.) in the readObject() call. EsuApi is deprecated as of 2.1.
I thinkthe conceptof associatingmanytagsisonly useful if youcansearchformultiple tags, my companyneeds to storemore than10mlfilesrelating to700,000 customersand create manysubtagis not powerful.
In the roadmapofEMC2is scheduledthis option?
Alternativelyshould I createa databasewhere to storethe values of thetagandtheobjectId.
chris_arnett
1 Rookie
•
110 Posts
1841
0
Posted February 5th, 2013 12:00
You can only list a single tag (either for sub-tags or for objects). Atmos is first and foremost an object store, not a database. Generally speaking, if you require complex searching, then yes, you should put your metadata in a separate database and store the object identifier there. The vast majority of customers do this.
However, many of our customers also asign one or two listable tags to their objects so they may be located by a 3rd party tool, for debugging, or just in case their primary database fails for some reason so they can re-associate the objects.
To my knowledge there is no current plan to add key-value searching as a feature of Atmos.