seamless_database_pool | Add support for master/slave database clusters | Database library

 by   bdurand Ruby Version: Current License: MIT

kandi X-RAY | seamless_database_pool Summary

kandi X-RAY | seamless_database_pool Summary

seamless_database_pool is a Ruby library typically used in Database, Ruby On Rails applications. seamless_database_pool has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Add support for master/slave database clusters in ActiveRecord to improve performance.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              seamless_database_pool has a low active ecosystem.
              It has 222 star(s) with 55 fork(s). There are 13 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 10 open issues and 16 have been closed. On average issues are closed in 292 days. There are 4 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of seamless_database_pool is current.

            kandi-Quality Quality

              seamless_database_pool has 0 bugs and 9 code smells.

            kandi-Security Security

              seamless_database_pool has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              seamless_database_pool code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              seamless_database_pool is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              seamless_database_pool releases are not available. You will need to build from source code and install.
              seamless_database_pool saves you 666 person hours of effort in developing the same functionality from scratch.
              It has 1544 lines of code, 102 functions and 14 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of seamless_database_pool
            Get all kandi verified functions for this library.

            seamless_database_pool Key Features

            No Key Features are available at this moment for seamless_database_pool.

            seamless_database_pool Examples and Code Snippets

            No Code Snippets are available at this moment for seamless_database_pool.

            Community Discussions

            Trending Discussions on seamless_database_pool

            QUESTION

            ActiveRecord read replica for reporting queries
            Asked 2017-Feb-24 at 15:59

            I have a Rails/ActiveRecord application that occasionally executes some heavy read-only queries against the application's models for ad-hoc admin/reporting purposes. I currently send these queries to a separate read-replica database endpoint using the seamless_database_pool gem so these queries do not add load to the primary database. However, this setup adds a constant runtime dependency on the replica, reducing my application's availability - whenever the replica goes offline for maintenance, the entire site returns 503 errors on any request, even though most requests never query the read-replica at all.

            How can I connect to a read replica for ad-hoc reporting queries on ActiveRecord models without affecting the availability of my application? Is there another database-adapter gem that handles this use-case explicitly?

            Or, (even better) is it possible to accomplish this directly using ActiveRecord? I know that it's possible to connect to a separate database by calling #establish_connection in order to direct a specific model to a separate database across all controller actions, but for my use case I need to connect to a separate database across all models, but only for specific controller actions.

            ...

            ANSWER

            Answered 2017-Feb-24 at 15:59

            I managed to work around this issue by modifying the seamless_database_pool gem to relax the runtime dependency on the read-replica when only the master connection is being used. See the relevant issue and PR.

            Source https://stackoverflow.com/questions/41558229

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install seamless_database_pool

            You can download it from GitHub.
            On a UNIX-like operating system, using your system’s package manager is easiest. However, the packaged Ruby version may not be the newest one. There is also an installer for Windows. Managers help you to switch between multiple Ruby versions on your system. Installers can be used to install a specific or multiple Ruby versions. Please refer ruby-lang.org for more information.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/bdurand/seamless_database_pool.git

          • CLI

            gh repo clone bdurand/seamless_database_pool

          • sshUrl

            git@github.com:bdurand/seamless_database_pool.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link