SimpleDB consistent reads

6 views
Skip to first unread message

adamwtw

unread,
Jul 22, 2010, 9:40:36 AM7/22/10
to typica
Hello,

I was looking at (both) APIs, and it seems to me that there's no way
to perform a consistent attribute read - am I right? You can do a
consistent query, or a conditional put/delete, but for reads there
seems to be an option missing.

Adam

David Kavanagh

unread,
Jul 23, 2010, 9:47:05 AM7/23/10
to typ...@googlegroups.com
In both cases, if you call selectItems, look for the boolean called "consistent", which invokes consistent read.

David


--
You received this message because you are subscribed to the Google Groups "typica" group.
To post to this group, send email to typ...@googlegroups.com.
To unsubscribe from this group, send email to typica+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/typica?hl=en.


adamwtw

unread,
Jul 29, 2010, 6:53:13 AM7/29/10
to typica
Yes, but what about a consistent getItem?

Adam

On Jul 23, 3:47 pm, David Kavanagh <dkavan...@gmail.com> wrote:
> In both cases, if you call selectItems, look for the boolean called
> "consistent", which invokes consistent read.
>
> David
>
>
>
> On Thu, Jul 22, 2010 at 9:40 AM, adamwtw <adam...@gmail.com> wrote:
> > Hello,
>
> > I was looking at (both) APIs, and it seems to me that there's no way
> > to perform a consistent attribute read - am I right? You can do a
> > consistent query, or a conditional put/delete, but for reads there
> > seems to be an option missing.
>
> > Adam
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "typica" group.
> > To post to this group, send email to typ...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > typica+un...@googlegroups.com<typica%2Bunsu...@googlegroups.com>
> > .

David Kavanagh

unread,
Jul 29, 2010, 11:08:34 AM7/29/10
to typ...@googlegroups.com
I just had another look and it seems that I overlooked the ConsistentRead flag GetAttributes. Drat!
I'll write a bug report so I don't forget to fix that. I'm a semi-vacation week right now, but will see what I can do as this won't take much time to fix.

David

To unsubscribe from this group, send email to typica+un...@googlegroups.com.

adamwtw

unread,
Aug 2, 2010, 3:48:05 AM8/2/10
to typica
Fantastic, thanks!
And please take your time at the vacations ;)

Adam
> > <typica%2Bunsu...@googlegroups.com<typica%252Bunsubscribe@googlegroups. com>

adamwtw

unread,
Aug 16, 2010, 2:46:56 AM8/16/10
to typica
Here's a patch adding a getItem(String, boolean) method:

http://www.warski.org/get_item_using_consistent_read.patch

Adam
Reply all
Reply to author
Forward
0 new messages