From: Muhammad Ali Date: 2008-08-25T18:41:47+09:00 Subject: Re: [ANN] NeverBlock support for ActiveRecord Erik Hollensbe wrote: > How does this differ from libpq's (and, by association, the pg driver's) > native support for this? > It builds on top of pg's async interfaces. But allows you to use them in a semi transparent manner. Your code will look like usual (i.e. no callbacks for processing results), thanks to Ruby1.9 Fibers. The async facilities currently found in pg require that you send the query, poll on the socket and may be run a call back after the data arrives With NeverBlock you are able to write: @user = User.find(:first) @user_favorite_hobbies = @user.hobbies.find(:conditions=>["favorite = true"]) NeverBlock will be doing the fiber pause/resume for you in the background. regards oldmoe www.espace.com.eg oldmoe.blogspot.com -- Posted via http://www.ruby-forum.com/.