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

popups from embedded .swf cross-browser

javascript actionscript-3 safari popup

Situation: you've got a .swf embedded in an html page, and when you click on something in the .swf, it needs to popup a chromeless window. Normally this would be fairly easy - but consider Safari, ...

Windows Phone: How to stay in the Current page rather than navigating to another page?

c# windows-phone-7 windows-phone-8

I have two pages (MainPage and page1). when the user is in the page1, if the user press back key, following message should pop up : "Are you sure that you want to exit? "

Rails 3.1: The public directory no longer serves js assets. How to load an additional js file after page is loaded?

ruby-on-rails sprockets

I use a JQuery plugin that loads another js file from the server after the initial page load. Since all js assets are concatenated in Rails 3.1 and the pubic directory is not used to serve js asse...

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.