seamless_database_pool
seamless_database_pool copied to clipboard
Add support for master/slave database clusters in ActiveRecord to improve performance.
This is a fix for the tests failing with Ruby 3.0 due to ``` Failures: 1) SeamlessDatabasePoolAdapter selecting a connection from the pool should use the master connection inside a...
Role.first Role Load (3130.9ms) SELECT `roles`.* FROM `roles` ORDER BY `roles`.`id` ASC LIMIT ? ActiveRecord::StatementInvalid: Mysql2::Error: You have an error in your SQL syntax; check the manual that corresponds to...
`"Database adapter seamless_database_pool not supported. Use:\nForeigner::Adapter.register 'seamless_database_pool', 'path/to/adapter'"` After update gem i start geting Database adapter not supported seamless_database_pool use for postgress Please help to resolve this.
Consider the following setup of database.yml: ``` development: database: my_development adapter: seamless_database_pool password: my_secret_password pool_adapter: mysql2 pool: 25 username: root master: weight: 0 password: my_production_password read_pool: - host: xyz.rds.amazonaws.com database:...
Currently SDP returns `nil` for `#raw_connection` of the standard adapter. This makes it incompatible with gems like Upsert (https://github.com/seamusabshere/upsert) due to the fact that Upsert tries to grab the raw_connection...
Running the following code in Rails 5.0.0.1 will cause warning. `include SeamlessDatabasePool::ControllerFilter` DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using...
I have a monkey patch for mysql active record adapter using the mysql2 gem to add the multi statement flag. seamless database pool ignores the monkey patch. Could it be...
Looking at the example yml file for the pool_weight configuration: master: host: master-db.example.com port: 6000 username: master_user password: 567pass read_pool: - host: read-db-1.example.com pool_weight: 2 - host: read-db-2.example.com The explanation...
I want set master only for wirte operations,so i set pool_weight is zero my database.yml like this ``` javascript development: adapter: seamless_database_pool database: mydb_development username: read_user password: abc123 pool_adapter: mysql2...
On an application that I've been working on, we have a need for high availability and after discovering this gem I thought that it would be easy to implement, however...