On another note, if I had to update the value of such a row key, can
this be done without two operations ?

i.e I don't know the exact timestamp of when the record was created,
but I do know the event_type and event_id.

The only way I see to update a value for a given event_type and
event_id is to first do a GET or a Scan to get the value, determine
the exact timestamp for the record and then write the updated value.
Is there a better way to do this in one server call ?

Thanks !

Sam


On Thu, Sep 29, 2011 at 6:27 PM, Sam Seigal <[email protected]> wrote:
> Hi,
>
> I am wondering what is the best way to query a record when only the
> leading and trailing letters of a row are known.
>
> For example, if my row looks something like:
>
> event_type-timestamp-eventid
>
> If i know the event_type and eventid, but do not really care about the
> timestamp, what is the most efficient way to get this record ?
>
> I know that the eventid and event_type combination will be unique.
>
> I see that the RegExpRowFilter has been deprecated, so I cannot query
> for something like event_type*event_id. What are other options ?
>
> Thank you,
>
> Sam
>

Reply via email to