I must have missed something obvious, but I can't get it to work asynchronously.
I've got a blank Rails 3.1 application here : https://github.com/isc/async-rails-pg , on which I applied the steps from the readme of em-postgresql-adapter.
The application starts and answers requests, however there is no concurrency ; 5 requests to a 1 second action take 5 seconds. Is there something implicit in the readme that I didn't get ?
Thanks in advance for your help.
I can confirm I am experiencing the same here.
Ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11.2.0]
I am looking into it atm and will hopefully have a fix ready soon.
Thanks for reporting this :)
Support for ActiveRecord 3.1 added in #44ead510611af7d20ad1d2e197bb0934f6e3c8bc
Also make sure to read the updated README :)
It works now, thanks a lot.
Following your updated README I had to add em-http-request to the Gemfile because of the require 'em-synchrony/em-http', however is this require really necessary ? It seems to also be working without it.
As a matter of fact, em-http is completely unnecessary -- I'll remove it from the README to avoid confusion.