php - simpledb - can't get consistent read to work

I'm using AWS SimpleDB for my site, however if I udpate an attribute with something completely different, searching that property with either the new value or the old value are both returning the same record.

Let's say the 'login' property's current value is 'dev'. I then change that value to 'myvar'.

$response = $this->simpledb->select(vsprintf(select * from mydomain where login='%s',array('myvar')),array('ConsistentRead' => 'true'));
# returns the newly updated row

$response = $this->simpledb->select(vsprintf(select * from mydomain where login='%s',array('dev')),array('ConsistentRead' => 'true'));
# returns the same row even though 'login' has changed

Am I doing something wrong with the consistent read argument? I have no clue why this is happening. Also, it's been about a half hour and this issue is still happening, I highly doubt it takes AWS that long to propagate changes across servers.

Anyone have any ideas?

Answers


I did not realize this at the time, but I was using v1 of the SDK, after updating to V2 all consistency issues were solved.


Need Your Help

Easy way to make an ImageView that is underneath a GridView match the GridView's size exactly?

java android android-imageview android-gridview

My ImageView is displaying an image of a chess style board for a little game I'm making. It is covered by a GridView that displays the images of my pieces. I have it displaying underneath but it is...

Automatic text wrapping in listbox

c# xaml windows-8 windows-runtime

I have a DataTemplate for my ListBox and want to wrap a TextBlock, so the message will be displayed in the next line... So I've written this code: