Hello, 

we are using the DB#with_server method to connect to different databases. 
Currently sequel disconnect from the server after every query execution. 
On every new query execution it reconnects to the database server. This is 
while the release method in Sequel::ArbitraryServers disconnects and 
deletes the connection cache if the server is a Hash, like it is in our 
case. 

    # If server is a hash, delete the thread from the allocated
    # connections for that server.  Additionally, if this was the last 
thread
    # using that server, delete the server from the @allocated hash.
    def release(thread, conn, server)
      if server.is_a?(Hash)
        a = @allocated[thread]
        a.delete(server)
        @allocated.delete(thread) if a.empty?
        disconnect_connection(conn)
      else  
        super
      end
    end


Is there the possibility to keep the connection open for future requests?



-- 
 <http://info.metoda.com/metoda--researchresults>

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to