search for: read_connection_pool

Displaying 1 result from an estimated 1 matches for "read_connection_pool".

2006 Jul 24
7
[PATCH] Support for DB Clusters/Replication in ActiveRecord (RFC)
...nd @config, @adapter_method = config, adapter_method end end @@ -20,6 +31,16 @@ # The class -> thread id -> adapter cache. (class -> adapter if not allow_concurrency) @@active_connections = {} + # Define a connection pool for doing database reads. + @@read_connection_pool = {} + + # Define a connection pool for doing database reads. + @@write_connection_pool = {} + + # Used in looping the connection pools. + @@last_read_connection = {} + @@last_write_connection = {} + class << self # Retrieve the connection cache. def thr...