> The current ruby-pg gem does support async indeed, but for example
> Rails doesn't use it. It requires a completely different way of
> programming, because the asynchronous handling is not abstracted away,
> but directly exposed to the programmer.
you can specify to rails in database.yml to use its 'async_query'
method instead of the normal 'query' method
# * <tt>:allow_concurrency</tt> - If true, use async query methods
so Ruby threads don't deadlock; otherwise, use blocking query methods.
Only problem being that until rails 2.2 comes around, this doesn't
actually get you any gain since you can still only process one request
at a time. :)
Re: mysqlplus: it's basically a clone of the normal Ruby C Mysql
adapter with an added 'async_query' function.
Thanks for your help in this.
-=R
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"DataMapper" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---