> Subject: storage-discuss] Honeycomb
> From: Liviu Joita <[EMAIL PROTECTED]>
> Date: Tue, 25 Mar 2008 15:42:59 +0000
> To: [email protected]
> 
>  Hi,
> 
> I have the following scenario: I store an object into the Honeycomb and 
> retrieve its OID and store it externally for future reference. I want 
> now to retrieve the object back from the Honeycomb using the OID I 
> stored to the external repository. Is it possible to check (How do I 
> check) that the OID actually exist into the Honeycomb before using it to 
> retrieve the object?
> 
> thanks for help.
> Liviu

One way to do this would be to fetch the metadata. (Even if you didn't 
store user metadata there is system metadata.) E.g. using the SDK 
example program to illustrate at a command-line level:

$ RetrieveMetadata.sh dev313-data 
020000254e277545d3fa8a11dcbf9300e08159845e000003560200000000
SystemRecord: 
<oid=020000254e277545d3fa8a11dcbf9300e08159845e000003560200000000, 
size=305, ctime=1206463221318, isIndexed=false>

The other possibility is to use query:

$ ./Query.sh dev313-data system.object_id="{objectid 
'020000254e277545d3fa8a11dcbf9300e08159845e000003560200000000'}"
020000254e277545d3fa8a11dcbf9300e08159845e000003560200000000
Query Integrity Status: true at time 1206420034920

The times taken:

RetrieveMetadata  1.59u 0.14s 0:01.67 103.5%
Query             2.02u 0.14s 0:02.57 84.0%

Since retrieving metadata is not dependent on the state of the query 
engine and is a little faster here, that's what I would use.

Bill Ross
_______________________________________________
storage-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/storage-discuss

Reply via email to