advanced_connection 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. checksums.yaml +7 -0
  2. data/.document +5 -0
  3. data/.gitignore +8 -0
  4. data/.rspec +2 -0
  5. data/.travis.yml +63 -0
  6. data/Gemfile +3 -0
  7. data/Gemfile.lock +218 -0
  8. data/MIT-LICENSE +20 -0
  9. data/README.rdoc +3 -0
  10. data/Rakefile +165 -0
  11. data/advanced_connection.gemspec +49 -0
  12. data/gemfiles/jruby/rails4_1.gemfile +7 -0
  13. data/gemfiles/jruby/rails4_2.gemfile +7 -0
  14. data/gemfiles/ruby/rails4_1.gemfile +7 -0
  15. data/gemfiles/ruby/rails4_2.gemfile +7 -0
  16. data/lib/advanced_connection/active_record_ext/abstract_adapter/statement_pooling.rb +121 -0
  17. data/lib/advanced_connection/active_record_ext/abstract_adapter.rb +48 -0
  18. data/lib/advanced_connection/active_record_ext/connection_pool/idle_manager.rb +271 -0
  19. data/lib/advanced_connection/active_record_ext/connection_pool/queues.rb +60 -0
  20. data/lib/advanced_connection/active_record_ext/connection_pool/statement_pooling.rb +42 -0
  21. data/lib/advanced_connection/active_record_ext/connection_pool/without_connection.rb +93 -0
  22. data/lib/advanced_connection/active_record_ext/connection_pool.rb +38 -0
  23. data/lib/advanced_connection/active_record_ext/without_connection.rb +30 -0
  24. data/lib/advanced_connection/active_record_ext.rb +59 -0
  25. data/lib/advanced_connection/config.rb +247 -0
  26. data/lib/advanced_connection/error.rb +27 -0
  27. data/lib/advanced_connection/railtie.rb +40 -0
  28. data/lib/advanced_connection/version.rb +29 -0
  29. data/lib/advanced_connection.rb +65 -0
  30. data/lib/generators/advanced_connection/install/USAGE +5 -0
  31. data/lib/generators/advanced_connection/install/install_generator.rb +30 -0
  32. data/lib/generators/advanced_connection/install/templates/advanced_connection.rb +142 -0
  33. data/lib/tasks/advanced_connection_tasks.rake +25 -0
  34. data/spec/config/database.yml +18 -0
  35. data/spec/config/database.yml.erb +54 -0
  36. data/spec/dummy/.gitignore +1 -0
  37. data/spec/dummy/README.rdoc +28 -0
  38. data/spec/dummy/Rakefile +6 -0
  39. data/spec/dummy/app/assets/images/.keep +0 -0
  40. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  41. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  42. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  43. data/spec/dummy/app/controllers/concerns/.keep +0 -0
  44. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  45. data/spec/dummy/app/mailers/.keep +0 -0
  46. data/spec/dummy/app/models/.keep +0 -0
  47. data/spec/dummy/app/models/book.rb +2 -0
  48. data/spec/dummy/app/models/concerns/.keep +0 -0
  49. data/spec/dummy/app/views/layouts/application.html.erb +13 -0
  50. data/spec/dummy/bin/bundle +3 -0
  51. data/spec/dummy/bin/rails +4 -0
  52. data/spec/dummy/bin/rake +4 -0
  53. data/spec/dummy/bin/setup +29 -0
  54. data/spec/dummy/config/application.rb +32 -0
  55. data/spec/dummy/config/boot.rb +5 -0
  56. data/spec/dummy/config/database.yml +17 -0
  57. data/spec/dummy/config/environment.rb +5 -0
  58. data/spec/dummy/config/environments/development.rb +48 -0
  59. data/spec/dummy/config/environments/production.rb +79 -0
  60. data/spec/dummy/config/environments/test.rb +42 -0
  61. data/spec/dummy/config/initializers/advanced_connection.rb +142 -0
  62. data/spec/dummy/config/initializers/assets.rb +11 -0
  63. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  64. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  65. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  66. data/spec/dummy/config/initializers/inflections.rb +16 -0
  67. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  68. data/spec/dummy/config/initializers/session_store.rb +3 -0
  69. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  70. data/spec/dummy/config/locales/en.yml +23 -0
  71. data/spec/dummy/config/routes.rb +56 -0
  72. data/spec/dummy/config/secrets.yml +22 -0
  73. data/spec/dummy/config.ru +4 -0
  74. data/spec/dummy/db/migrate/20160222045238_create_books.rb +10 -0
  75. data/spec/dummy/db/schema.rb +23 -0
  76. data/spec/dummy/lib/assets/.keep +0 -0
  77. data/spec/dummy/log/.keep +0 -0
  78. data/spec/dummy/log/test.log +327 -0
  79. data/spec/dummy/public/404.html +67 -0
  80. data/spec/dummy/public/422.html +67 -0
  81. data/spec/dummy/public/500.html +66 -0
  82. data/spec/dummy/public/favicon.ico +0 -0
  83. data/spec/dummy/test/fixtures/books.yml +9 -0
  84. data/spec/dummy/test/models/book_test.rb +7 -0
  85. data/spec/idle_manager_spec.rb +16 -0
  86. data/spec/spec_helper.rb +25 -0
  87. data/spec/support/db_config.rb +61 -0
  88. metadata +399 -0
@@ -0,0 +1,11 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Version of your assets, change this if you want to expire all your assets.
4
+ Rails.application.config.assets.version = '1.0'
5
+
6
+ # Add additional assets to the asset load path
7
+ # Rails.application.config.assets.paths << Emoji.images_path
8
+
9
+ # Precompile additional assets.
10
+ # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
11
+ # Rails.application.config.assets.precompile += %w( search.js )
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Configure sensitive parameters which will be filtered from the log file.
4
+ Rails.application.config.filter_parameters += [:password]
@@ -0,0 +1,16 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format. Inflections
4
+ # are locale specific, and you may define rules for as many different
5
+ # locales as you wish. All of these examples are active by default:
6
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
+ # inflect.plural /^(ox)$/i, '\1en'
8
+ # inflect.singular /^(ox)en/i, '\1'
9
+ # inflect.irregular 'person', 'people'
10
+ # inflect.uncountable %w( fish sheep )
11
+ # end
12
+
13
+ # These inflection rules are supported but not enabled by default:
14
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
+ # inflect.acronym 'RESTful'
16
+ # end
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.session_store :cookie_store, key: '_dummy_session'
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
+ end
10
+
11
+ # To enable root element in JSON for ActiveRecord objects.
12
+ # ActiveSupport.on_load(:active_record) do
13
+ # self.include_root_in_json = true
14
+ # end
@@ -0,0 +1,23 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # To learn more, please read the Rails Internationalization guide
20
+ # available at http://guides.rubyonrails.org/i18n.html.
21
+
22
+ en:
23
+ hello: "Hello world"
@@ -0,0 +1,56 @@
1
+ Rails.application.routes.draw do
2
+ # The priority is based upon order of creation: first created -> highest priority.
3
+ # See how all your routes lay out with "rake routes".
4
+
5
+ # You can have the root of your site routed with "root"
6
+ # root 'welcome#index'
7
+
8
+ # Example of regular route:
9
+ # get 'products/:id' => 'catalog#view'
10
+
11
+ # Example of named route that can be invoked with purchase_url(id: product.id)
12
+ # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
13
+
14
+ # Example resource route (maps HTTP verbs to controller actions automatically):
15
+ # resources :products
16
+
17
+ # Example resource route with options:
18
+ # resources :products do
19
+ # member do
20
+ # get 'short'
21
+ # post 'toggle'
22
+ # end
23
+ #
24
+ # collection do
25
+ # get 'sold'
26
+ # end
27
+ # end
28
+
29
+ # Example resource route with sub-resources:
30
+ # resources :products do
31
+ # resources :comments, :sales
32
+ # resource :seller
33
+ # end
34
+
35
+ # Example resource route with more complex sub-resources:
36
+ # resources :products do
37
+ # resources :comments
38
+ # resources :sales do
39
+ # get 'recent', on: :collection
40
+ # end
41
+ # end
42
+
43
+ # Example resource route with concerns:
44
+ # concern :toggleable do
45
+ # post 'toggle'
46
+ # end
47
+ # resources :posts, concerns: :toggleable
48
+ # resources :photos, concerns: :toggleable
49
+
50
+ # Example resource route within a namespace:
51
+ # namespace :admin do
52
+ # # Directs /admin/products/* to Admin::ProductsController
53
+ # # (app/controllers/admin/products_controller.rb)
54
+ # resources :products
55
+ # end
56
+ end
@@ -0,0 +1,22 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure the secrets in this file are kept private
11
+ # if you're sharing your code publicly.
12
+
13
+ development:
14
+ secret_key_base: 5866741232a770ee82a877326a5636bb8a0b3644e641c250d7095ff3dbef7c07b84f42abbbbd19b43ae3e2f3f69a36b325430f089d01ee760b9eb4792411ca78
15
+
16
+ test:
17
+ secret_key_base: 44ab1cf914eb7dee87c4650fc1de96012ea95c5cb11f9a79e99e0a55eada680fbfac8002c3909bfc4ed75b9ba78fb1123aa903615c0f8027749aae18df0185ac
18
+
19
+ # Do not keep production secrets in the repository,
20
+ # instead read values from the environment.
21
+ production:
22
+ secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Rails.application
@@ -0,0 +1,10 @@
1
+ class CreateBooks < ActiveRecord::Migration
2
+ def change
3
+ create_table :books do |t|
4
+ t.string :name
5
+ t.date :publish_date
6
+
7
+ t.timestamps null: false
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,23 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 20160222045238) do
15
+
16
+ create_table "books", force: :cascade do |t|
17
+ t.string "name"
18
+ t.date "publish_date"
19
+ t.datetime "created_at", null: false
20
+ t.datetime "updated_at", null: false
21
+ end
22
+
23
+ end
File without changes
File without changes
@@ -0,0 +1,327 @@
1
+ Assigning without_connection callback before checkin
2
+ Assigning without_connection callback after checkin
3
+ Assigning without_connection callback before checkout
4
+ Assigning without_connection callback after checkout
5
+ [5772 (active:0)]: Warming up 10 connections
6
+  (30.0ms) SELECT version()
7
+  (1.0ms) SELECT version()
8
+  (1.0ms) SELECT version()
9
+  (1.0ms) SELECT version()
10
+  (1.0ms) SELECT version()
11
+  (1.0ms) SELECT version()
12
+  (1.0ms) SELECT version()
13
+  (2.0ms) SELECT version()
14
+  (1.0ms) SELECT version()
15
+  (0.0ms) SELECT version()
16
+ ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
17
+ ----------------------------------
18
+ AdvancedConnectionTest: test_truth
19
+ ----------------------------------
20
+ Assigning without_connection callback before checkin
21
+ Assigning without_connection callback after checkin
22
+ Assigning without_connection callback before checkout
23
+ Assigning without_connection callback after checkout
24
+ [6086 (active:0)]: Warming up 10 connections
25
+  (27.0ms) SELECT version()
26
+  (1.0ms) SELECT version()
27
+  (1.0ms) SELECT version()
28
+  (1.0ms) SELECT version()
29
+  (1.0ms) SELECT version()
30
+  (1.0ms) SELECT version()
31
+  (1.0ms) SELECT version()
32
+  (1.0ms) SELECT version()
33
+  (1.0ms) SELECT version()
34
+  (1.0ms) SELECT version()
35
+ Assigning without_connection callback before checkin
36
+ Assigning without_connection callback after checkin
37
+ Assigning without_connection callback before checkout
38
+ Assigning without_connection callback after checkout
39
+ [6086 (active:0)]: Warming up 10 connections
40
+  (30.0ms) SELECT version()
41
+  (1.0ms) SELECT version()
42
+  (1.0ms) SELECT version()
43
+  (9.0ms) SELECT version()
44
+  (1.0ms) SELECT version()
45
+  (1.0ms) SELECT version()
46
+  (1.0ms) SELECT version()
47
+  (2.0ms) SELECT version()
48
+  (1.0ms) SELECT version()
49
+  (1.0ms) SELECT version()
50
+ ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
51
+ Assigning without_connection callback before checkin
52
+ Assigning without_connection callback after checkin
53
+ Assigning without_connection callback before checkout
54
+ Assigning without_connection callback after checkout
55
+ [6086 (active:0)]: Warming up 10 connections
56
+  (40.0ms) SELECT version()
57
+  (1.0ms) SELECT version()
58
+  (1.0ms) SELECT version()
59
+  (1.0ms) SELECT version()
60
+  (1.0ms) SELECT version()
61
+  (1.0ms) SELECT version()
62
+  (1.0ms) SELECT version()
63
+  (2.0ms) SELECT version()
64
+  (1.0ms) SELECT version()
65
+  (1.0ms) SELECT version()
66
+ ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
67
+ Assigning without_connection callback before checkin
68
+ Assigning without_connection callback after checkin
69
+ Assigning without_connection callback before checkout
70
+ Assigning without_connection callback after checkout
71
+ [6086 (active:0)]: Warming up 10 connections
72
+  (33.0ms) SELECT version()
73
+  (1.0ms) SELECT version()
74
+  (1.0ms) SELECT version()
75
+  (2.0ms) SELECT version()
76
+  (1.0ms) SELECT version()
77
+  (0.0ms) SELECT version()
78
+  (1.0ms) SELECT version()
79
+  (2.0ms) SELECT version()
80
+  (1.0ms) SELECT version()
81
+  (1.0ms) SELECT version()
82
+ ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
83
+ Assigning without_connection callback before checkin
84
+ Assigning without_connection callback after checkin
85
+ Assigning without_connection callback before checkout
86
+ Assigning without_connection callback after checkout
87
+ [6086 (active:0)]: Warming up 10 connections
88
+  (39.0ms) SELECT version()
89
+  (1.0ms) SELECT version()
90
+  (2.0ms) SELECT version()
91
+  (13.0ms) SELECT version()
92
+  (2.0ms) SELECT version()
93
+  (2.0ms) SELECT version()
94
+  (2.0ms) SELECT version()
95
+  (2.0ms) SELECT version()
96
+  (1.0ms) SELECT version()
97
+  (1.0ms) SELECT version()
98
+ ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
99
+ Assigning without_connection callback before checkin
100
+ Assigning without_connection callback after checkin
101
+ Assigning without_connection callback before checkout
102
+ Assigning without_connection callback after checkout
103
+ [6086 (active:0)]: Warming up 10 connections
104
+  (25.0ms) SELECT version()
105
+  (1.0ms) SELECT version()
106
+  (1.0ms) SELECT version()
107
+  (10.0ms) SELECT version()
108
+  (1.0ms) SELECT version()
109
+  (1.0ms) SELECT version()
110
+  (0.0ms) SELECT version()
111
+  (1.0ms) SELECT version()
112
+  (1.0ms) SELECT version()
113
+  (1.0ms) SELECT version()
114
+ ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
115
+ Assigning without_connection callback before checkin
116
+ Assigning without_connection callback after checkin
117
+ Assigning without_connection callback before checkout
118
+ Assigning without_connection callback after checkout
119
+ [6086 (active:0)]: Warming up 10 connections
120
+  (45.0ms) SELECT version()
121
+  (1.0ms) SELECT version()
122
+  (1.0ms) SELECT version()
123
+  (1.0ms) SELECT version()
124
+  (1.0ms) SELECT version()
125
+  (2.0ms) SELECT version()
126
+  (1.0ms) SELECT version()
127
+  (1.0ms) SELECT version()
128
+  (1.0ms) SELECT version()
129
+  (1.0ms) SELECT version()
130
+ ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
131
+ Assigning without_connection callback before checkin
132
+ Assigning without_connection callback after checkin
133
+ Assigning without_connection callback before checkout
134
+ Assigning without_connection callback after checkout
135
+ [6202 (active:0)]: Warming up 10 connections
136
+  (44.0ms) SELECT version()
137
+  (1.0ms) SELECT version()
138
+  (1.0ms) SELECT version()
139
+  (1.0ms) SELECT version()
140
+  (1.0ms) SELECT version()
141
+  (1.0ms) SELECT version()
142
+  (1.0ms) SELECT version()
143
+  (1.0ms) SELECT version()
144
+  (1.0ms) SELECT version()
145
+  (1.0ms) SELECT version()
146
+ ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
147
+ Assigning without_connection callback before checkin
148
+ Assigning without_connection callback after checkin
149
+ Assigning without_connection callback before checkout
150
+ Assigning without_connection callback after checkout
151
+ [6202 (active:0)]: Warming up 10 connections
152
+  (28.0ms) SELECT version()
153
+  (1.0ms) SELECT version()
154
+  (1.0ms) SELECT version()
155
+  (1.0ms) SELECT version()
156
+  (1.0ms) SELECT version()
157
+  (1.0ms) SELECT version()
158
+  (0.0ms) SELECT version()
159
+  (1.0ms) SELECT version()
160
+  (1.0ms) SELECT version()
161
+  (1.0ms) SELECT version()
162
+ ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
163
+ Assigning without_connection callback before checkin
164
+ Assigning without_connection callback after checkin
165
+ Assigning without_connection callback before checkout
166
+ Assigning without_connection callback after checkout
167
+ [6202 (active:0)]: Warming up 10 connections
168
+  (27.0ms) SELECT version()
169
+  (1.0ms) SELECT version()
170
+  (1.0ms) SELECT version()
171
+  (1.0ms) SELECT version()
172
+  (1.0ms) SELECT version()
173
+  (1.0ms) SELECT version()
174
+  (1.0ms) SELECT version()
175
+  (1.0ms) SELECT version()
176
+  (1.0ms) SELECT version()
177
+  (1.0ms) SELECT version()
178
+ ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
179
+ [6202 (active:1)]: Warming up 5 connections
180
+  (1.0ms) SELECT version()
181
+  (1.0ms) SELECT version()
182
+  (1.0ms) SELECT version()
183
+  (1.0ms) SELECT version()
184
+  (1.0ms) SELECT version()
185
+ Assigning without_connection callback before checkin
186
+ Assigning without_connection callback after checkin
187
+ Assigning without_connection callback before checkout
188
+ Assigning without_connection callback after checkout
189
+ [6202 (active:0)]: Warming up 10 connections
190
+  (35.0ms) SELECT version()
191
+  (1.0ms) SELECT version()
192
+  (1.0ms) SELECT version()
193
+  (1.0ms) SELECT version()
194
+  (1.0ms) SELECT version()
195
+  (1.0ms) SELECT version()
196
+  (1.0ms) SELECT version()
197
+  (1.0ms) SELECT version()
198
+  (1.0ms) SELECT version()
199
+  (1.0ms) SELECT version()
200
+ ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
201
+ [6202 (active:1)]: Warming up 5 connections
202
+  (1.0ms) SELECT version()
203
+  (1.0ms) SELECT version()
204
+  (2.0ms) SELECT version()
205
+  (1.0ms) SELECT version()
206
+  (1.0ms) SELECT version()
207
+ Assigning without_connection callback before checkin
208
+ Assigning without_connection callback after checkin
209
+ Assigning without_connection callback before checkout
210
+ Assigning without_connection callback after checkout
211
+ [6202 (active:0)]: Warming up 10 connections
212
+  (27.0ms) SELECT version()
213
+  (0.0ms) SELECT version()
214
+  (1.0ms) SELECT version()
215
+  (1.0ms) SELECT version()
216
+  (1.0ms) SELECT version()
217
+  (1.0ms) SELECT version()
218
+  (1.0ms) SELECT version()
219
+  (2.0ms) SELECT version()
220
+  (2.0ms) SELECT version()
221
+  (1.0ms) SELECT version()
222
+ ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
223
+ [6202 (active:0)]: Warming up 5 connections
224
+  (1.0ms) SELECT version()
225
+  (1.0ms) SELECT version()
226
+  (1.0ms) SELECT version()
227
+  (1.0ms) SELECT version()
228
+  (1.0ms) SELECT version()
229
+ Assigning without_connection callback before checkin
230
+ Assigning without_connection callback after checkin
231
+ Assigning without_connection callback before checkout
232
+ Assigning without_connection callback after checkout
233
+ [6202 (active:0)]: Warming up 10 connections
234
+  (40.0ms) SELECT version()
235
+  (1.0ms) SELECT version()
236
+  (1.0ms) SELECT version()
237
+  (2.0ms) SELECT version()
238
+  (1.0ms) SELECT version()
239
+  (1.0ms) SELECT version()
240
+  (1.0ms) SELECT version()
241
+  (2.0ms) SELECT version()
242
+  (1.0ms) SELECT version()
243
+  (1.0ms) SELECT version()
244
+ ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
245
+ [6202 (active:0)]: Warming up 16 connections
246
+  (1.0ms) SELECT version()
247
+  (1.0ms) SELECT version()
248
+  (1.0ms) SELECT version()
249
+  (1.0ms) SELECT version()
250
+  (1.0ms) SELECT version()
251
+  (1.0ms) SELECT version()
252
+  (1.0ms) SELECT version()
253
+  (0.0ms) SELECT version()
254
+  (1.0ms) SELECT version()
255
+  (0.0ms) SELECT version()
256
+  (1.0ms) SELECT version()
257
+  (1.0ms) SELECT version()
258
+  (1.0ms) SELECT version()
259
+  (1.0ms) SELECT version()
260
+  (1.0ms) SELECT version()
261
+  (2.0ms) SELECT version()
262
+ Assigning without_connection callback before checkin
263
+ Assigning without_connection callback after checkin
264
+ Assigning without_connection callback before checkout
265
+ Assigning without_connection callback after checkout
266
+ [6202 (active:0)]: Warming up 10 connections
267
+  (27.0ms) SELECT version()
268
+  (1.0ms) SELECT version()
269
+  (1.0ms) SELECT version()
270
+  (1.0ms) SELECT version()
271
+  (1.0ms) SELECT version()
272
+  (0.0ms) SELECT version()
273
+  (1.0ms) SELECT version()
274
+  (2.0ms) SELECT version()
275
+  (1.0ms) SELECT version()
276
+  (1.0ms) SELECT version()
277
+ ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
278
+ [6202 (active:0)]: Warming up 5 connections
279
+  (1.0ms) SELECT version()
280
+  (1.0ms) SELECT version()
281
+  (2.0ms) SELECT version()
282
+  (1.0ms) SELECT version()
283
+  (1.0ms) SELECT version()
284
+ Assigning without_connection callback before checkin
285
+ Assigning without_connection callback after checkin
286
+ Assigning without_connection callback before checkout
287
+ Assigning without_connection callback after checkout
288
+ [6202 (active:0)]: Warming up 10 connections
289
+  (29.0ms) SELECT version()
290
+  (1.0ms) SELECT version()
291
+  (1.0ms) SELECT version()
292
+  (1.0ms) SELECT version()
293
+  (1.0ms) SELECT version()
294
+  (1.0ms) SELECT version()
295
+  (0.0ms) SELECT version()
296
+  (2.0ms) SELECT version()
297
+  (1.0ms) SELECT version()
298
+  (1.0ms) SELECT version()
299
+ ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
300
+ [6202 (active:0)]: Warming up 5 connections
301
+  (1.0ms) SELECT version()
302
+  (1.0ms) SELECT version()
303
+  (1.0ms) SELECT version()
304
+  (0.0ms) SELECT version()
305
+  (1.0ms) SELECT version()
306
+ Assigning without_connection callback before checkin
307
+ Assigning without_connection callback after checkin
308
+ Assigning without_connection callback before checkout
309
+ Assigning without_connection callback after checkout
310
+ [6202 (active:0)]: Warming up 10 connections
311
+  (27.0ms) SELECT version()
312
+  (1.0ms) SELECT version()
313
+  (1.0ms) SELECT version()
314
+  (1.0ms) SELECT version()
315
+  (1.0ms) SELECT version()
316
+  (1.0ms) SELECT version()
317
+  (1.0ms) SELECT version()
318
+  (1.0ms) SELECT version()
319
+  (1.0ms) SELECT version()
320
+  (1.0ms) SELECT version()
321
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
322
+ [6202 (active:0)]: Warming up 5 connections
323
+  (1.0ms) SELECT version()
324
+  (1.0ms) SELECT version()
325
+  (1.0ms) SELECT version()
326
+  (1.0ms) SELECT version()
327
+  (1.0ms) SELECT version()