On 08/05/2010 10:32 PM, Jeremy Evans wrote:
On May 8, 2:07 pm, Gary Doades<[email protected]> wrote:
We're using Sinatra but with the "lock" option set to only process one
request at a time as we have other libraries that are not entirely
thread safe. We then use a cluster of Sinatras fed by nginx at the front
end, so it should be thread safe in that sense.
I assume you are using the sharded single connection pool and
disconnecting after every request?
Yes, I'm doing a:
DEFAULT_DB.add_servers(:current=> {<some connect uri>})
at the start of each request
and a:
DEFAULT_DB.remove_servers(:current)
at the end of each request.
You should have your bases covered then. If you do run into anything
weird with regards to Sequel, please let me know.
Will do....
Cheers,
Gary.
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" 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/sequel-talk?hl=en.