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

Eclipse and EGit

eclipse git egit

I have installed EGit plugin on my Eclipse Helios SR2 Installation. I also have a initialize a GIT repository in one of my projects. But unlike SVN EGIT doesn't show me visiual indications when I m...

Object reference not set to an instance of an object in mvc webgrid

c# asp.net asp.net-mvc

Im binding data from database to webgrid, i want to keep an actionlink edit in every row of webgrid, tried the below one but getting error as Object reference not set to an instance of an object ne...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.