bulk_insert 1.4.0 → 1.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,10 +20,24 @@ class BulkInsertTest < ActiveSupport::TestCase
20
20
  end
21
21
  end
22
22
 
23
+ test "worker should not have any result sets without option for returning primary keys" do
24
+ worker = Testing.bulk_insert
25
+ worker.add greeting: "hello"
26
+ worker.save!
27
+ assert_empty worker.result_sets
28
+ end
29
+
30
+ test "with option to return primary keys, worker should have result sets" do
31
+ worker = Testing.bulk_insert(return_primary_keys: true)
32
+ worker.add greeting: "yo"
33
+ worker.save!
34
+ assert_equal 1, worker.result_sets.count
35
+ end
36
+
23
37
  test "bulk_insert with array should save the array immediately" do
24
38
  assert_difference "Testing.count", 2 do
25
39
  Testing.bulk_insert values: [
26
- [ "Hello", 15, true, "green" ],
40
+ [ "Hello", 15, true ],
27
41
  { greeting: "Hey", age: 20, happy: false }
28
42
  ]
29
43
  end
@@ -19,8 +19,6 @@ module Dummy
19
19
  # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
20
20
  # config.i18n.default_locale = :de
21
21
 
22
- # Do not swallow errors in after_commit/after_rollback callbacks.
23
- config.active_record.raise_in_transactional_callbacks = true
22
+ config.active_record.sqlite3.represent_boolean_as_integer = true
24
23
  end
25
24
  end
26
-
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bulk_insert
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamis Buck
8
+ - Mauro Berlanda
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2017-02-11 00:00:00.000000000 Z
12
+ date: 2020-05-25 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: activerecord
@@ -16,14 +17,14 @@ dependencies:
16
17
  requirements:
17
18
  - - ">="
18
19
  - !ruby/object:Gem::Version
19
- version: 4.1.0
20
+ version: 3.2.0
20
21
  type: :runtime
21
22
  prerelease: false
22
23
  version_requirements: !ruby/object:Gem::Requirement
23
24
  requirements:
24
25
  - - ">="
25
26
  - !ruby/object:Gem::Version
26
- version: 4.1.0
27
+ version: 3.2.0
27
28
  - !ruby/object:Gem::Dependency
28
29
  name: sqlite3
29
30
  requirement: !ruby/object:Gem::Requirement
@@ -44,17 +45,18 @@ dependencies:
44
45
  requirements:
45
46
  - - ">="
46
47
  - !ruby/object:Gem::Version
47
- version: 4.2.0
48
+ version: 3.2.0
48
49
  type: :development
49
50
  prerelease: false
50
51
  version_requirements: !ruby/object:Gem::Requirement
51
52
  requirements:
52
53
  - - ">="
53
54
  - !ruby/object:Gem::Version
54
- version: 4.2.0
55
+ version: 3.2.0
55
56
  description: Faster inserts! Insert N records in a single statement.
56
57
  email:
57
58
  - jamis@jamisbuck.org
59
+ - mauro.berlanda@gmail.com
58
60
  executables: []
59
61
  extensions: []
60
62
  extra_rdoc_files: []
@@ -63,6 +65,12 @@ files:
63
65
  - README.md
64
66
  - Rakefile
65
67
  - lib/bulk_insert.rb
68
+ - lib/bulk_insert/statement_adapters.rb
69
+ - lib/bulk_insert/statement_adapters/base_adapter.rb
70
+ - lib/bulk_insert/statement_adapters/generic_adapter.rb
71
+ - lib/bulk_insert/statement_adapters/mysql_adapter.rb
72
+ - lib/bulk_insert/statement_adapters/postgresql_adapter.rb
73
+ - lib/bulk_insert/statement_adapters/sqlite_adapter.rb
66
74
  - lib/bulk_insert/version.rb
67
75
  - lib/bulk_insert/worker.rb
68
76
  - test/bulk_insert/worker_test.rb
@@ -98,13 +106,9 @@ files:
98
106
  - test/dummy/config/locales/en.yml
99
107
  - test/dummy/config/routes.rb
100
108
  - test/dummy/config/secrets.yml
101
- - test/dummy/db/development.sqlite3
102
109
  - test/dummy/db/migrate/20151008181535_create_testings.rb
103
110
  - test/dummy/db/migrate/20151028194232_add_default_value.rb
104
111
  - test/dummy/db/schema.rb
105
- - test/dummy/db/test.sqlite3
106
- - test/dummy/log/development.log
107
- - test/dummy/log/test.log
108
112
  - test/dummy/public/404.html
109
113
  - test/dummy/public/422.html
110
114
  - test/dummy/public/500.html
@@ -129,54 +133,49 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
133
  - !ruby/object:Gem::Version
130
134
  version: '0'
131
135
  requirements: []
132
- rubyforge_project:
133
- rubygems_version: 2.5.1
136
+ rubygems_version: 3.0.3
134
137
  signing_key:
135
138
  specification_version: 4
136
139
  summary: An helper for doing batch (single-statement) inserts in ActiveRecord
137
140
  test_files:
138
- - test/bulk_insert/worker_test.rb
139
- - test/bulk_insert_test.rb
140
- - test/dummy/app/assets/javascripts/application.js
141
- - test/dummy/app/assets/stylesheets/application.css
142
- - test/dummy/app/controllers/application_controller.rb
143
- - test/dummy/app/helpers/application_helper.rb
144
- - test/dummy/app/models/testing.rb
145
- - test/dummy/app/views/layouts/application.html.erb
141
+ - test/test_helper.rb
146
142
  - test/dummy/bin/bundle
147
143
  - test/dummy/bin/rails
148
144
  - test/dummy/bin/rake
149
145
  - test/dummy/bin/setup
150
- - test/dummy/config/application.rb
151
- - test/dummy/config/boot.rb
152
- - test/dummy/config/database.yml
153
- - test/dummy/config/environment.rb
154
- - test/dummy/config/environments/development.rb
155
- - test/dummy/config/environments/production.rb
156
- - test/dummy/config/environments/test.rb
146
+ - test/dummy/app/views/layouts/application.html.erb
147
+ - test/dummy/app/models/testing.rb
148
+ - test/dummy/app/helpers/application_helper.rb
149
+ - test/dummy/app/controllers/application_controller.rb
150
+ - test/dummy/app/assets/stylesheets/application.css
151
+ - test/dummy/app/assets/javascripts/application.js
152
+ - test/dummy/config/initializers/mime_types.rb
153
+ - test/dummy/config/initializers/inflections.rb
154
+ - test/dummy/config/initializers/filter_parameter_logging.rb
157
155
  - test/dummy/config/initializers/assets.rb
158
- - test/dummy/config/initializers/backtrace_silencers.rb
159
156
  - test/dummy/config/initializers/cookies_serializer.rb
160
- - test/dummy/config/initializers/filter_parameter_logging.rb
161
- - test/dummy/config/initializers/inflections.rb
162
- - test/dummy/config/initializers/mime_types.rb
163
- - test/dummy/config/initializers/session_store.rb
164
157
  - test/dummy/config/initializers/wrap_parameters.rb
165
- - test/dummy/config/locales/en.yml
158
+ - test/dummy/config/initializers/session_store.rb
159
+ - test/dummy/config/initializers/backtrace_silencers.rb
166
160
  - test/dummy/config/routes.rb
161
+ - test/dummy/config/environment.rb
162
+ - test/dummy/config/locales/en.yml
163
+ - test/dummy/config/application.rb
164
+ - test/dummy/config/environments/test.rb
165
+ - test/dummy/config/environments/development.rb
166
+ - test/dummy/config/environments/production.rb
167
+ - test/dummy/config/database.yml
168
+ - test/dummy/config/boot.rb
167
169
  - test/dummy/config/secrets.yml
168
- - test/dummy/config.ru
169
- - test/dummy/db/development.sqlite3
170
- - test/dummy/db/migrate/20151008181535_create_testings.rb
171
- - test/dummy/db/migrate/20151028194232_add_default_value.rb
172
- - test/dummy/db/schema.rb
173
- - test/dummy/db/test.sqlite3
174
- - test/dummy/log/development.log
175
- - test/dummy/log/test.log
176
- - test/dummy/public/404.html
170
+ - test/dummy/Rakefile
177
171
  - test/dummy/public/422.html
178
172
  - test/dummy/public/500.html
173
+ - test/dummy/public/404.html
179
174
  - test/dummy/public/favicon.ico
180
- - test/dummy/Rakefile
175
+ - test/dummy/db/schema.rb
176
+ - test/dummy/db/migrate/20151008181535_create_testings.rb
177
+ - test/dummy/db/migrate/20151028194232_add_default_value.rb
178
+ - test/dummy/config.ru
181
179
  - test/dummy/README.rdoc
182
- - test/test_helper.rb
180
+ - test/bulk_insert/worker_test.rb
181
+ - test/bulk_insert_test.rb
Binary file
@@ -1,17 +0,0 @@
1
-  (2.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
2
-  (0.1ms) select sqlite_version(*)
3
-  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5
- Migrating to CreateTestings (20151008181535)
6
-  (0.1ms) begin transaction
7
-  (0.4ms) CREATE TABLE "testings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "greeting" varchar, "age" integer, "happy" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
8
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151008181535"]]
9
-  (0.8ms) commit transaction
10
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
11
- ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
12
- Migrating to AddDefaultValue (20151028194232)
13
-  (0.1ms) begin transaction
14
-  (0.4ms) ALTER TABLE "testings" ADD "color" varchar DEFAULT 'chartreuse'
15
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151028194232"]]
16
-  (2.1ms) commit transaction
17
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
@@ -1,3396 +0,0 @@
1
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2
-  (0.1ms) begin transaction
3
- ----------------------------------------------------------------------------------------------
4
- BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
5
- ----------------------------------------------------------------------------------------------
6
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","color","created_at","updated_at") VALUES ('Hello',15,'t','chartreuse','2015-10-28 19:56:12.010467','2015-10-28 19:56:12.010467'),('Howdy',20,'f','chartreuse','2015-10-28 19:56:12.010467','2015-10-28 19:56:12.010467')
7
- Testing Load (0.1ms) SELECT "testings".* FROM "testings"
8
-  (2.2ms) rollback transaction
9
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
10
-  (0.1ms) begin transaction
11
- ------------------------------------------------------------------------------
12
- BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
13
- ------------------------------------------------------------------------------
14
-  (0.0ms) rollback transaction
15
-  (0.1ms) begin transaction
16
- -------------------------------------------------------------------
17
- BulkInsertTest: test_bulk_insert_without_block_should_return_worker
18
- -------------------------------------------------------------------
19
-  (0.0ms) rollback transaction
20
-  (0.0ms) begin transaction
21
- ---------------------------------------------------------------
22
- BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
23
- ---------------------------------------------------------------
24
-  (0.0ms) SAVEPOINT active_record_1
25
-  (0.0ms) RELEASE SAVEPOINT active_record_1
26
-  (0.0ms) rollback transaction
27
-  (0.1ms) begin transaction
28
- ---------------------------------------------------------------------
29
- BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
30
- ---------------------------------------------------------------------
31
-  (0.1ms) SELECT COUNT(*) FROM "testings"
32
-  (0.0ms) SAVEPOINT active_record_1
33
-  (0.8ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2015-10-28 19:58:04.040969','2015-10-28 19:58:04.040969','chartreuse')
34
-  (0.0ms) RELEASE SAVEPOINT active_record_1
35
-  (0.1ms) SELECT COUNT(*) FROM "testings"
36
-  (0.5ms) rollback transaction
37
-  (0.0ms) begin transaction
38
- --------------------------------------------------------
39
- BulkInsertWorkerTest: test_save!_inserts_pending_records
40
- --------------------------------------------------------
41
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","color","created_at","updated_at") VALUES ('Yo',15,'f','2015-10-28 19:58:04.045737','2015-10-28 19:58:04.045737','2015-10-28 19:58:04.045767'),('Hello',25,'t','2015-10-28 19:58:04.045737','2015-10-28 19:58:04.045737','2015-10-28 19:58:04.045767')
42
- Testing Load (0.2ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
43
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
44
-  (0.5ms) rollback transaction
45
-  (0.1ms) begin transaction
46
- ----------------------------------------------------------------------------------
47
- BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
48
- ----------------------------------------------------------------------------------
49
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","color","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-28 19:58:04.065706','2015-10-28 19:58:04.065706','2015-10-28 19:58:04.065732')
50
-  (0.0ms) SELECT COUNT(*) FROM "testings"
51
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
52
-  (0.4ms) rollback transaction
53
-  (0.1ms) begin transaction
54
- -------------------------------------------------------------------
55
- BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
56
- -------------------------------------------------------------------
57
-  (0.1ms) SELECT COUNT(*) FROM "testings"
58
-  (0.1ms) SELECT COUNT(*) FROM "testings"
59
-  (0.1ms) rollback transaction
60
-  (0.0ms) begin transaction
61
- -------------------------------------------------------------------------------
62
- BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
63
- -------------------------------------------------------------------------------
64
-  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","color","created_at","updated_at") VALUES ('Hello',15,'t','chartreuse','2015-10-28 19:58:04.071406','2015-10-28 19:58:04.071406')
65
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
66
-  (0.4ms) rollback transaction
67
-  (0.1ms) begin transaction
68
- ------------------------------------------------------------------------------
69
- BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
70
- ------------------------------------------------------------------------------
71
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","color","created_at","updated_at") VALUES ('Hello',20,'f','chartreuse','2015-10-28 19:58:04.074184','2015-10-28 19:58:04.074184')
72
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
73
-  (0.4ms) rollback transaction
74
-  (0.1ms) begin transaction
75
- ---------------------------------------------------------
76
- BulkInsertWorkerTest: test_save!_makes_insert_not_pending
77
- ---------------------------------------------------------
78
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","color","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-28 19:58:04.076665','2015-10-28 19:58:04.076665','2015-10-28 19:58:04.076706')
79
-  (0.4ms) rollback transaction
80
-  (0.1ms) begin transaction
81
- ----------------------------------------------------------------------------------------------
82
- BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
83
- ----------------------------------------------------------------------------------------------
84
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","color","created_at","updated_at") VALUES ('Hello',15,'t','chartreuse','2015-10-28 19:58:04.079884','2015-10-28 19:58:04.079884'),('Howdy',20,'f','chartreuse','2015-10-28 19:58:04.079884','2015-10-28 19:58:04.079884')
85
- Testing Load (0.1ms) SELECT "testings".* FROM "testings"
86
-  (0.4ms) rollback transaction
87
-  (0.1ms) begin transaction
88
- ----------------------------------------------------------------
89
- BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
90
- ----------------------------------------------------------------
91
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","color","created_at","updated_at") VALUES ('Yo',20,'f','chartreuse','2015-10-28 19:58:04.082441','2015-10-28 19:58:04.082441')
92
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
93
-  (0.4ms) rollback transaction
94
-  (0.1ms) begin transaction
95
- --------------------------------------------------------------------
96
- BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
97
- --------------------------------------------------------------------
98
-  (0.0ms) rollback transaction
99
-  (0.1ms) begin transaction
100
- ------------------------------------------------------
101
- BulkInsertWorkerTest: test_empty_insert_is_not_pending
102
- ------------------------------------------------------
103
-  (0.0ms) rollback transaction
104
-  (0.1ms) begin transaction
105
- ----------------------------------------------------------------
106
- BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
107
- ----------------------------------------------------------------
108
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","color","created_at","updated_at") VALUES ('Hello',20,'f',NULL,'2015-10-28 19:58:04.085934','2015-10-28 19:58:04.085934')
109
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
110
-  (0.5ms) rollback transaction
111
-  (0.1ms) begin transaction
112
- -------------------------------------------
113
- BulkInsertWorkerTest: test_default_set_size
114
- -------------------------------------------
115
-  (0.1ms) rollback transaction
116
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
117
-  (0.1ms) begin transaction
118
- ------------------------------------------------------------------------------
119
- BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
120
- ------------------------------------------------------------------------------
121
-  (0.0ms) rollback transaction
122
-  (0.1ms) begin transaction
123
- -------------------------------------------------------------------
124
- BulkInsertTest: test_bulk_insert_without_block_should_return_worker
125
- -------------------------------------------------------------------
126
-  (0.0ms) rollback transaction
127
-  (0.0ms) begin transaction
128
- ---------------------------------------------------------------------
129
- BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
130
- ---------------------------------------------------------------------
131
-  (0.1ms) SELECT COUNT(*) FROM "testings"
132
-  (0.0ms) SAVEPOINT active_record_1
133
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2015-10-28 20:01:54.280213','2015-10-28 20:01:54.280213','chartreuse')
134
-  (0.1ms) RELEASE SAVEPOINT active_record_1
135
-  (0.1ms) SELECT COUNT(*) FROM "testings"
136
-  (1.8ms) rollback transaction
137
-  (0.1ms) begin transaction
138
- ---------------------------------------------------------------
139
- BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
140
- ---------------------------------------------------------------
141
-  (0.0ms) SAVEPOINT active_record_1
142
-  (0.0ms) RELEASE SAVEPOINT active_record_1
143
-  (0.0ms) rollback transaction
144
-  (0.0ms) begin transaction
145
- ----------------------------------------------------------------------------------------------
146
- BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
147
- ----------------------------------------------------------------------------------------------
148
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","color","created_at","updated_at") VALUES ('Hello',15,'t','chartreuse','2015-10-28 20:01:54.287981','2015-10-28 20:01:54.287981'),('Howdy',20,'f','chartreuse','2015-10-28 20:01:54.287981','2015-10-28 20:01:54.287981')
149
- Testing Load (0.1ms) SELECT "testings".* FROM "testings"
150
-  (0.5ms) rollback transaction
151
-  (0.1ms) begin transaction
152
- ------------------------------------------------------------------------------
153
- BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
154
- ------------------------------------------------------------------------------
155
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","color","created_at","updated_at") VALUES ('Hello',20,'f','chartreuse','2015-10-28 20:01:54.304735','2015-10-28 20:01:54.304735')
156
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
157
-  (0.4ms) rollback transaction
158
-  (0.0ms) begin transaction
159
- --------------------------------------------------------------------
160
- BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
161
- --------------------------------------------------------------------
162
-  (0.0ms) rollback transaction
163
-  (0.1ms) begin transaction
164
- ----------------------------------------------------------------------------------
165
- BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
166
- ----------------------------------------------------------------------------------
167
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","color","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-28 20:01:54.308089','2015-10-28 20:01:54.308089','2015-10-28 20:01:54.308108')
168
-  (0.1ms) SELECT COUNT(*) FROM "testings"
169
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
170
-  (0.9ms) rollback transaction
171
-  (0.1ms) begin transaction
172
- ------------------------------------------------------
173
- BulkInsertWorkerTest: test_empty_insert_is_not_pending
174
- ------------------------------------------------------
175
-  (0.1ms) rollback transaction
176
-  (0.0ms) begin transaction
177
- -------------------------------------------
178
- BulkInsertWorkerTest: test_default_set_size
179
- -------------------------------------------
180
-  (0.0ms) rollback transaction
181
-  (0.1ms) begin transaction
182
- -------------------------------------------------------------------------------
183
- BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
184
- -------------------------------------------------------------------------------
185
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","color","created_at","updated_at") VALUES ('Hello',15,'t','chartreuse','2015-10-28 20:01:54.313502','2015-10-28 20:01:54.313502')
186
- Testing Load (0.2ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
187
-  (0.4ms) rollback transaction
188
-  (0.1ms) begin transaction
189
- ---------------------------------------------------------
190
- BulkInsertWorkerTest: test_save!_makes_insert_not_pending
191
- ---------------------------------------------------------
192
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","color","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-28 20:01:54.316472','2015-10-28 20:01:54.316472','2015-10-28 20:01:54.316496')
193
-  (0.3ms) rollback transaction
194
-  (0.1ms) begin transaction
195
- -------------------------------------------------------------------
196
- BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
197
- -------------------------------------------------------------------
198
-  (0.5ms) SELECT COUNT(*) FROM "testings"
199
-  (0.1ms) SELECT COUNT(*) FROM "testings"
200
-  (0.1ms) rollback transaction
201
-  (0.1ms) begin transaction
202
- ----------------------------------------------------------------
203
- BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
204
- ----------------------------------------------------------------
205
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","color","created_at","updated_at") VALUES ('Yo',20,'f','chartreuse','2015-10-28 20:01:54.320417','2015-10-28 20:01:54.320417')
206
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
207
-  (0.4ms) rollback transaction
208
-  (0.1ms) begin transaction
209
- ----------------------------------------------------------------
210
- BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
211
- ----------------------------------------------------------------
212
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","color","created_at","updated_at") VALUES ('Hello',20,'f',NULL,'2015-10-28 20:01:54.322459','2015-10-28 20:01:54.322459')
213
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
214
-  (0.4ms) rollback transaction
215
-  (0.1ms) begin transaction
216
- --------------------------------------------------------
217
- BulkInsertWorkerTest: test_save!_inserts_pending_records
218
- --------------------------------------------------------
219
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","color","created_at","updated_at") VALUES ('Yo',15,'f','2015-10-28 20:01:54.324109','2015-10-28 20:01:54.324109','2015-10-28 20:01:54.324131'),('Hello',25,'t','2015-10-28 20:01:54.324109','2015-10-28 20:01:54.324109','2015-10-28 20:01:54.324131')
220
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
221
- Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
222
-  (0.5ms) rollback transaction
223
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
224
-  (0.1ms) begin transaction
225
- ---------------------------------------------------------------------
226
- BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
227
- ---------------------------------------------------------------------
228
-  (0.1ms) SELECT COUNT(*) FROM "testings"
229
-  (0.0ms) SAVEPOINT active_record_1
230
-  (0.5ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2015-10-28 20:04:24.830190','2015-10-28 20:04:24.830190','chartreuse')
231
-  (0.0ms) RELEASE SAVEPOINT active_record_1
232
-  (0.1ms) SELECT COUNT(*) FROM "testings"
233
-  (1.9ms) rollback transaction
234
-  (0.1ms) begin transaction
235
- -------------------------------------------------------------------
236
- BulkInsertTest: test_bulk_insert_without_block_should_return_worker
237
- -------------------------------------------------------------------
238
-  (0.0ms) rollback transaction
239
-  (0.1ms) begin transaction
240
- ------------------------------------------------------------------------------
241
- BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
242
- ------------------------------------------------------------------------------
243
-  (0.0ms) rollback transaction
244
-  (0.0ms) begin transaction
245
- ---------------------------------------------------------------
246
- BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
247
- ---------------------------------------------------------------
248
-  (0.0ms) SAVEPOINT active_record_1
249
-  (0.0ms) RELEASE SAVEPOINT active_record_1
250
-  (0.0ms) rollback transaction
251
-  (0.1ms) begin transaction
252
- -----------------------------------------------------------------------------
253
- BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
254
- -----------------------------------------------------------------------------
255
-  (0.1ms) SELECT COUNT(*) FROM "testings"
256
-  (0.2ms) SELECT COUNT(*) FROM "testings"
257
-  (0.0ms) rollback transaction
258
-  (0.0ms) begin transaction
259
- ----------------------------------------------------------------
260
- BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
261
- ----------------------------------------------------------------
262
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","color","created_at","updated_at") VALUES ('Yo',20,'f','chartreuse','2015-10-28 20:04:24.840586','2015-10-28 20:04:24.840586')
263
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
264
-  (0.5ms) rollback transaction
265
-  (0.1ms) begin transaction
266
- --------------------------------------------------------------------
267
- BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
268
- --------------------------------------------------------------------
269
-  (0.0ms) rollback transaction
270
-  (0.1ms) begin transaction
271
- -------------------------------------------
272
- BulkInsertWorkerTest: test_default_set_size
273
- -------------------------------------------
274
-  (0.0ms) rollback transaction
275
-  (0.1ms) begin transaction
276
- -------------------------------------------------------------------------------
277
- BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
278
- -------------------------------------------------------------------------------
279
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","color","created_at","updated_at") VALUES ('Hello',15,'t','chartreuse','2015-10-28 20:04:24.851291','2015-10-28 20:04:24.851291')
280
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
281
-  (0.4ms) rollback transaction
282
-  (0.1ms) begin transaction
283
- --------------------------------------------------------
284
- BulkInsertWorkerTest: test_save!_inserts_pending_records
285
- --------------------------------------------------------
286
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","color","created_at","updated_at") VALUES ('Yo',15,'f','2015-10-28 20:04:24.853653','2015-10-28 20:04:24.853653','2015-10-28 20:04:24.853678'),('Hello',25,'t','2015-10-28 20:04:24.853653','2015-10-28 20:04:24.853653','2015-10-28 20:04:24.853678')
287
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
288
- Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
289
-  (0.5ms) rollback transaction
290
-  (0.1ms) begin transaction
291
- ------------------------------------------------------
292
- BulkInsertWorkerTest: test_empty_insert_is_not_pending
293
- ------------------------------------------------------
294
-  (1.3ms) rollback transaction
295
-  (0.1ms) begin transaction
296
- ------------------------------------------------------------------------------
297
- BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
298
- ------------------------------------------------------------------------------
299
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","color","created_at","updated_at") VALUES ('Hello',20,'f','chartreuse','2015-10-28 20:04:24.862415','2015-10-28 20:04:24.862415')
300
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
301
-  (0.4ms) rollback transaction
302
-  (0.1ms) begin transaction
303
- ----------------------------------------------------------------
304
- BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
305
- ----------------------------------------------------------------
306
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","color","created_at","updated_at") VALUES ('Hello',20,'f',NULL,'2015-10-28 20:04:24.864939','2015-10-28 20:04:24.864939')
307
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
308
-  (0.4ms) rollback transaction
309
-  (0.1ms) begin transaction
310
- ----------------------------------------------------------------------------------
311
- BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
312
- ----------------------------------------------------------------------------------
313
-  (0.8ms) INSERT INTO "testings" ("greeting","age","happy","color","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-28 20:04:24.867103','2015-10-28 20:04:24.867103','2015-10-28 20:04:24.867135')
314
-  (0.1ms) SELECT COUNT(*) FROM "testings"
315
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
316
-  (0.4ms) rollback transaction
317
-  (0.1ms) begin transaction
318
- -------------------------------------------------------------------
319
- BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
320
- -------------------------------------------------------------------
321
-  (0.1ms) SELECT COUNT(*) FROM "testings"
322
-  (0.1ms) SELECT COUNT(*) FROM "testings"
323
-  (0.1ms) rollback transaction
324
-  (0.1ms) begin transaction
325
- ---------------------------------------------------------
326
- BulkInsertWorkerTest: test_save!_makes_insert_not_pending
327
- ---------------------------------------------------------
328
-  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","color","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-28 20:04:24.873964','2015-10-28 20:04:24.873964','2015-10-28 20:04:24.874001')
329
-  (0.4ms) rollback transaction
330
-  (0.0ms) begin transaction
331
- ----------------------------------------------------------------------------------------------
332
- BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
333
- ----------------------------------------------------------------------------------------------
334
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","color","created_at","updated_at") VALUES ('Hello',15,'t','chartreuse','2015-10-28 20:04:24.876104','2015-10-28 20:04:24.876104'),('Howdy',20,'f','chartreuse','2015-10-28 20:04:24.876104','2015-10-28 20:04:24.876104')
335
- Testing Load (0.1ms) SELECT "testings".* FROM "testings"
336
-  (0.4ms) rollback transaction
337
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
338
-  (0.1ms) begin transaction
339
- --------------------------------------------------------
340
- BulkInsertWorkerTest: test_save!_inserts_pending_records
341
- --------------------------------------------------------
342
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","color","created_at","updated_at") VALUES ('Yo',15,'f','2015-10-28 20:04:55.313829','2015-10-28 20:04:55.313829','2015-10-28 20:04:55.313868'),('Hello',25,'t','2015-10-28 20:04:55.313829','2015-10-28 20:04:55.313829','2015-10-28 20:04:55.313868')
343
- Testing Load (0.2ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
344
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
345
-  (2.1ms) rollback transaction
346
-  (0.1ms) begin transaction
347
- -------------------------------------------------------------------------------
348
- BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
349
- -------------------------------------------------------------------------------
350
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","color","created_at","updated_at") VALUES ('Hello',15,'t','chartreuse','2015-10-28 20:04:55.338817','2015-10-28 20:04:55.338817')
351
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
352
-  (0.5ms) rollback transaction
353
-  (0.1ms) begin transaction
354
- ----------------------------------------------------------------------------------------------
355
- BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
356
- ----------------------------------------------------------------------------------------------
357
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","color","created_at","updated_at") VALUES ('Hello',15,'t','chartreuse','2015-10-28 20:04:55.341256','2015-10-28 20:04:55.341256'),('Howdy',20,'f','chartreuse','2015-10-28 20:04:55.341256','2015-10-28 20:04:55.341256')
358
- Testing Load (0.1ms) SELECT "testings".* FROM "testings"
359
-  (0.5ms) rollback transaction
360
-  (0.1ms) begin transaction
361
- -------------------------------------------
362
- BulkInsertWorkerTest: test_default_set_size
363
- -------------------------------------------
364
-  (0.0ms) rollback transaction
365
-  (0.1ms) begin transaction
366
- -------------------------------------------------------------------
367
- BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
368
- -------------------------------------------------------------------
369
-  (0.1ms) SELECT COUNT(*) FROM "testings"
370
-  (0.1ms) SELECT COUNT(*) FROM "testings"
371
-  (0.0ms) rollback transaction
372
-  (0.1ms) begin transaction
373
- ------------------------------------------------------
374
- BulkInsertWorkerTest: test_empty_insert_is_not_pending
375
- ------------------------------------------------------
376
-  (0.1ms) rollback transaction
377
-  (0.1ms) begin transaction
378
- ----------------------------------------------------------------------------------
379
- BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
380
- ----------------------------------------------------------------------------------
381
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","color","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-28 20:04:55.348661','2015-10-28 20:04:55.348661','2015-10-28 20:04:55.348700')
382
-  (0.1ms) SELECT COUNT(*) FROM "testings"
383
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
384
-  (0.5ms) rollback transaction
385
-  (0.1ms) begin transaction
386
- ----------------------------------------------------------------
387
- BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
388
- ----------------------------------------------------------------
389
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","color","created_at","updated_at") VALUES ('Yo',20,'f','chartreuse','2015-10-28 20:04:55.352140','2015-10-28 20:04:55.352140')
390
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
391
-  (0.5ms) rollback transaction
392
-  (0.1ms) begin transaction
393
- ----------------------------------------------------------------
394
- BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
395
- ----------------------------------------------------------------
396
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","color","created_at","updated_at") VALUES ('Hello',20,'f',NULL,'2015-10-28 20:04:55.355649','2015-10-28 20:04:55.355649')
397
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
398
-  (0.4ms) rollback transaction
399
-  (0.1ms) begin transaction
400
- --------------------------------------------------------------------
401
- BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
402
- --------------------------------------------------------------------
403
-  (0.0ms) rollback transaction
404
-  (0.1ms) begin transaction
405
- ---------------------------------------------------------
406
- BulkInsertWorkerTest: test_save!_makes_insert_not_pending
407
- ---------------------------------------------------------
408
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","color","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-28 20:04:55.358415','2015-10-28 20:04:55.358415','2015-10-28 20:04:55.358437')
409
-  (0.4ms) rollback transaction
410
-  (0.2ms) begin transaction
411
- ------------------------------------------------------------------------------
412
- BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
413
- ------------------------------------------------------------------------------
414
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","color","created_at","updated_at") VALUES ('Hello',20,'f','chartreuse','2015-10-28 20:04:55.360282','2015-10-28 20:04:55.360282')
415
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
416
-  (0.4ms) rollback transaction
417
-  (0.0ms) begin transaction
418
- -------------------------------------------------------------------
419
- BulkInsertTest: test_bulk_insert_without_block_should_return_worker
420
- -------------------------------------------------------------------
421
-  (0.0ms) rollback transaction
422
-  (0.1ms) begin transaction
423
- ---------------------------------------------------------------------
424
- BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
425
- ---------------------------------------------------------------------
426
-  (0.1ms) SELECT COUNT(*) FROM "testings"
427
-  (0.0ms) SAVEPOINT active_record_1
428
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2015-10-28 20:04:55.365420','2015-10-28 20:04:55.365420','chartreuse')
429
-  (0.0ms) RELEASE SAVEPOINT active_record_1
430
-  (0.1ms) SELECT COUNT(*) FROM "testings"
431
-  (0.4ms) rollback transaction
432
-  (0.1ms) begin transaction
433
- ------------------------------------------------------------------------------
434
- BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
435
- ------------------------------------------------------------------------------
436
-  (0.0ms) rollback transaction
437
-  (0.1ms) begin transaction
438
- -----------------------------------------------------------------------------
439
- BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
440
- -----------------------------------------------------------------------------
441
-  (0.2ms) SELECT COUNT(*) FROM "testings"
442
-  (0.1ms) rollback transaction
443
-  (0.1ms) begin transaction
444
- ---------------------------------------------------------------
445
- BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
446
- ---------------------------------------------------------------
447
-  (0.1ms) SAVEPOINT active_record_1
448
-  (0.1ms) RELEASE SAVEPOINT active_record_1
449
-  (0.1ms) rollback transaction
450
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
451
-  (0.1ms) begin transaction
452
- ---------------------------------------------------------------
453
- BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
454
- ---------------------------------------------------------------
455
-  (0.1ms) SAVEPOINT active_record_1
456
-  (0.0ms) RELEASE SAVEPOINT active_record_1
457
-  (0.1ms) rollback transaction
458
-  (0.1ms) begin transaction
459
- -----------------------------------------------------------------------------
460
- BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
461
- -----------------------------------------------------------------------------
462
-  (0.1ms) SELECT COUNT(*) FROM "testings"
463
-  (0.1ms) SELECT COUNT(*) FROM "testings"
464
-  (0.1ms) rollback transaction
465
-  (0.1ms) begin transaction
466
- -------------------------------------------------------------------
467
- BulkInsertTest: test_bulk_insert_without_block_should_return_worker
468
- -------------------------------------------------------------------
469
-  (0.1ms) rollback transaction
470
-  (0.1ms) begin transaction
471
- ---------------------------------------------------------------------
472
- BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
473
- ---------------------------------------------------------------------
474
-  (0.1ms) SELECT COUNT(*) FROM "testings"
475
-  (0.0ms) SAVEPOINT active_record_1
476
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2015-10-28 20:05:11.145797','2015-10-28 20:05:11.145797','chartreuse')
477
-  (0.0ms) RELEASE SAVEPOINT active_record_1
478
-  (0.1ms) SELECT COUNT(*) FROM "testings"
479
-  (1.5ms) rollback transaction
480
-  (0.2ms) begin transaction
481
- ------------------------------------------------------------------------------
482
- BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
483
- ------------------------------------------------------------------------------
484
-  (0.1ms) rollback transaction
485
-  (0.0ms) begin transaction
486
- ----------------------------------------------------------------------------------------------
487
- BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
488
- ----------------------------------------------------------------------------------------------
489
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","color","created_at","updated_at") VALUES ('Hello',15,'t','chartreuse','2015-10-28 20:05:11.153186','2015-10-28 20:05:11.153186'),('Howdy',20,'f','chartreuse','2015-10-28 20:05:11.153186','2015-10-28 20:05:11.153186')
490
- Testing Load (0.1ms) SELECT "testings".* FROM "testings"
491
-  (0.5ms) rollback transaction
492
-  (0.1ms) begin transaction
493
- ----------------------------------------------------------------
494
- BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
495
- ----------------------------------------------------------------
496
-  (1.7ms) INSERT INTO "testings" ("greeting","age","happy","color","created_at","updated_at") VALUES ('Yo',20,'f','chartreuse','2015-10-28 20:05:11.171453','2015-10-28 20:05:11.171453')
497
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
498
-  (0.5ms) rollback transaction
499
-  (0.1ms) begin transaction
500
- --------------------------------------------------------------------
501
- BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
502
- --------------------------------------------------------------------
503
-  (0.0ms) rollback transaction
504
-  (0.1ms) begin transaction
505
- --------------------------------------------------------
506
- BulkInsertWorkerTest: test_save!_inserts_pending_records
507
- --------------------------------------------------------
508
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","color","created_at","updated_at") VALUES ('Yo',15,'f','2015-10-28 20:05:11.178283','2015-10-28 20:05:11.178283','2015-10-28 20:05:11.178323'),('Hello',25,'t','2015-10-28 20:05:11.178283','2015-10-28 20:05:11.178283','2015-10-28 20:05:11.178323')
509
- Testing Load (0.2ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
510
- Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
511
-  (0.4ms) rollback transaction
512
-  (0.1ms) begin transaction
513
- ------------------------------------------------------------------------------
514
- BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
515
- ------------------------------------------------------------------------------
516
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","color","created_at","updated_at") VALUES ('Hello',20,'f','chartreuse','2015-10-28 20:05:11.186006','2015-10-28 20:05:11.186006')
517
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
518
-  (0.4ms) rollback transaction
519
-  (0.1ms) begin transaction
520
- ---------------------------------------------------------
521
- BulkInsertWorkerTest: test_save!_makes_insert_not_pending
522
- ---------------------------------------------------------
523
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","color","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-28 20:05:11.187879','2015-10-28 20:05:11.187879','2015-10-28 20:05:11.187899')
524
-  (0.4ms) rollback transaction
525
-  (0.1ms) begin transaction
526
- -------------------------------------------------------------------------------
527
- BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
528
- -------------------------------------------------------------------------------
529
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","color","created_at","updated_at") VALUES ('Hello',15,'t','chartreuse','2015-10-28 20:05:11.189483','2015-10-28 20:05:11.189483')
530
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
531
-  (0.4ms) rollback transaction
532
-  (0.1ms) begin transaction
533
- -------------------------------------------------------------------
534
- BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
535
- -------------------------------------------------------------------
536
-  (0.2ms) SELECT COUNT(*) FROM "testings"
537
-  (0.1ms) SELECT COUNT(*) FROM "testings"
538
-  (0.1ms) rollback transaction
539
-  (0.0ms) begin transaction
540
- -------------------------------------------
541
- BulkInsertWorkerTest: test_default_set_size
542
- -------------------------------------------
543
-  (0.1ms) rollback transaction
544
-  (0.1ms) begin transaction
545
- ----------------------------------------------------------------
546
- BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
547
- ----------------------------------------------------------------
548
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","color","created_at","updated_at") VALUES ('Hello',20,'f',NULL,'2015-10-28 20:05:11.195762','2015-10-28 20:05:11.195762')
549
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
550
-  (0.5ms) rollback transaction
551
-  (0.1ms) begin transaction
552
- ----------------------------------------------------------------------------------
553
- BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
554
- ----------------------------------------------------------------------------------
555
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","color","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-28 20:05:11.197966','2015-10-28 20:05:11.197966','2015-10-28 20:05:11.197996')
556
-  (0.0ms) SELECT COUNT(*) FROM "testings"
557
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
558
-  (0.4ms) rollback transaction
559
-  (0.0ms) begin transaction
560
- ------------------------------------------------------
561
- BulkInsertWorkerTest: test_empty_insert_is_not_pending
562
- ------------------------------------------------------
563
-  (0.0ms) rollback transaction
564
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
565
-  (0.1ms) begin transaction
566
- -------------------------------------------------------------------
567
- BulkInsertTest: test_bulk_insert_without_block_should_return_worker
568
- -------------------------------------------------------------------
569
-  (0.0ms) rollback transaction
570
-  (0.1ms) begin transaction
571
- ---------------------------------------------------------------------
572
- BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
573
- ---------------------------------------------------------------------
574
-  (0.1ms) SELECT COUNT(*) FROM "testings"
575
-  (0.0ms) SAVEPOINT active_record_1
576
-  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2015-10-28 20:08:36.160464','2015-10-28 20:08:36.160464','chartreuse')
577
-  (0.0ms) RELEASE SAVEPOINT active_record_1
578
-  (0.1ms) SELECT COUNT(*) FROM "testings"
579
-  (1.4ms) rollback transaction
580
-  (0.1ms) begin transaction
581
- -----------------------------------------------------------------------------
582
- BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
583
- -----------------------------------------------------------------------------
584
-  (0.2ms) SELECT COUNT(*) FROM "testings"
585
-  (0.1ms) SELECT COUNT(*) FROM "testings"
586
-  (0.0ms) rollback transaction
587
-  (0.1ms) begin transaction
588
- ---------------------------------------------------------------
589
- BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
590
- ---------------------------------------------------------------
591
-  (0.0ms) SAVEPOINT active_record_1
592
-  (0.0ms) RELEASE SAVEPOINT active_record_1
593
-  (0.0ms) rollback transaction
594
-  (0.1ms) begin transaction
595
- ------------------------------------------------------------------------------
596
- BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
597
- ------------------------------------------------------------------------------
598
-  (0.0ms) rollback transaction
599
-  (0.0ms) begin transaction
600
- -------------------------------------------------------------------------------
601
- BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
602
- -------------------------------------------------------------------------------
603
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2015-10-28 20:08:36.168789','2015-10-28 20:08:36.168789','chartreuse')
604
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
605
-  (0.5ms) rollback transaction
606
-  (0.1ms) begin transaction
607
- ----------------------------------------------------------------
608
- BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
609
- ----------------------------------------------------------------
610
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2015-10-28 20:08:36.185961','2015-10-28 20:08:36.185961',NULL)
611
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
612
-  (0.4ms) rollback transaction
613
-  (0.1ms) begin transaction
614
- --------------------------------------------------------
615
- BulkInsertWorkerTest: test_save!_inserts_pending_records
616
- --------------------------------------------------------
617
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2015-10-28 20:08:36.187970','2015-10-28 20:08:36.187970','chartreuse'),('Hello',25,'t','2015-10-28 20:08:36.187970','2015-10-28 20:08:36.187970','chartreuse')
618
- Testing Load (0.2ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
619
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
620
-  (0.4ms) rollback transaction
621
-  (0.0ms) begin transaction
622
- --------------------------------------------------------------------
623
- BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
624
- --------------------------------------------------------------------
625
-  (0.0ms) rollback transaction
626
-  (0.0ms) begin transaction
627
- ----------------------------------------------------------------------------------------------
628
- BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
629
- ----------------------------------------------------------------------------------------------
630
-  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2015-10-28 20:08:36.196327','2015-10-28 20:08:36.196327','chartreuse'),('Howdy',20,'f','2015-10-28 20:08:36.196327','2015-10-28 20:08:36.196327','chartreuse')
631
- Testing Load (0.1ms) SELECT "testings".* FROM "testings"
632
-  (0.4ms) rollback transaction
633
-  (0.0ms) begin transaction
634
- ------------------------------------------------------------------------------
635
- BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
636
- ------------------------------------------------------------------------------
637
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2015-10-28 20:08:36.199777','2015-10-28 20:08:36.199777','chartreuse')
638
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
639
-  (0.4ms) rollback transaction
640
-  (0.1ms) begin transaction
641
- ----------------------------------------------------------------------------------
642
- BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
643
- ----------------------------------------------------------------------------------
644
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2015-10-28 20:08:36.201884','2015-10-28 20:08:36.201884','chartreuse')
645
-  (0.0ms) SELECT COUNT(*) FROM "testings"
646
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
647
-  (0.4ms) rollback transaction
648
-  (0.1ms) begin transaction
649
- ---------------------------------------------------------
650
- BulkInsertWorkerTest: test_save!_makes_insert_not_pending
651
- ---------------------------------------------------------
652
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2015-10-28 20:08:36.204178','2015-10-28 20:08:36.204178','chartreuse')
653
-  (0.4ms) rollback transaction
654
-  (0.0ms) begin transaction
655
- ------------------------------------------------------
656
- BulkInsertWorkerTest: test_empty_insert_is_not_pending
657
- ------------------------------------------------------
658
-  (0.0ms) rollback transaction
659
-  (0.0ms) begin transaction
660
- -------------------------------------------------------------------
661
- BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
662
- -------------------------------------------------------------------
663
-  (0.1ms) SELECT COUNT(*) FROM "testings"
664
-  (0.0ms) SELECT COUNT(*) FROM "testings"
665
-  (0.0ms) rollback transaction
666
-  (0.1ms) begin transaction
667
- ----------------------------------------------------------------
668
- BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
669
- ----------------------------------------------------------------
670
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2015-10-28 20:08:36.207778','2015-10-28 20:08:36.207778','chartreuse')
671
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
672
-  (0.4ms) rollback transaction
673
-  (0.1ms) begin transaction
674
- -------------------------------------------
675
- BulkInsertWorkerTest: test_default_set_size
676
- -------------------------------------------
677
-  (0.0ms) rollback transaction
678
-  (0.1ms) begin transaction
679
- ---------------------------------------------------------------------
680
- BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
681
- ---------------------------------------------------------------------
682
-  (0.0ms) rollback transaction
683
-  (0.0ms) begin transaction
684
- ----------------------------------------------------------------------------
685
- BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
686
- ----------------------------------------------------------------------------
687
-  (0.0ms) rollback transaction
688
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
689
-  (0.1ms) begin transaction
690
- ------------------------------------------------------------------------------
691
- BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
692
- ------------------------------------------------------------------------------
693
-  (0.0ms) rollback transaction
694
-  (0.1ms) begin transaction
695
- -------------------------------------------------------------------
696
- BulkInsertTest: test_bulk_insert_without_block_should_return_worker
697
- -------------------------------------------------------------------
698
-  (0.1ms) rollback transaction
699
-  (0.1ms) begin transaction
700
- ---------------------------------------------------------------
701
- BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
702
- ---------------------------------------------------------------
703
-  (0.1ms) SAVEPOINT active_record_1
704
-  (0.1ms) RELEASE SAVEPOINT active_record_1
705
-  (0.1ms) rollback transaction
706
-  (0.1ms) begin transaction
707
- ---------------------------------------------------------------------
708
- BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
709
- ---------------------------------------------------------------------
710
-  (0.2ms) SELECT COUNT(*) FROM "testings"
711
-  (0.0ms) SAVEPOINT active_record_1
712
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2015-10-28 20:09:27.946829','2015-10-28 20:09:27.946829','chartreuse')
713
-  (0.0ms) RELEASE SAVEPOINT active_record_1
714
-  (0.1ms) SELECT COUNT(*) FROM "testings"
715
-  (1.8ms) rollback transaction
716
-  (0.4ms) begin transaction
717
- -----------------------------------------------------------------------------
718
- BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
719
- -----------------------------------------------------------------------------
720
-  (0.1ms) SELECT COUNT(*) FROM "testings"
721
-  (0.0ms) SELECT COUNT(*) FROM "testings"
722
-  (0.0ms) rollback transaction
723
-  (0.0ms) begin transaction
724
- ----------------------------------------------------------------------------------------------
725
- BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
726
- ----------------------------------------------------------------------------------------------
727
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2015-10-28 20:09:27.954680','2015-10-28 20:09:27.954680','chartreuse'),('Howdy',20,'f','2015-10-28 20:09:27.954680','2015-10-28 20:09:27.954680','chartreuse')
728
- Testing Load (0.1ms) SELECT "testings".* FROM "testings"
729
-  (0.5ms) rollback transaction
730
-  (0.1ms) begin transaction
731
- ------------------------------------------------------
732
- BulkInsertWorkerTest: test_empty_insert_is_not_pending
733
- ------------------------------------------------------
734
-  (0.0ms) rollback transaction
735
-  (0.1ms) begin transaction
736
- ------------------------------------------------------------------------------
737
- BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
738
- ------------------------------------------------------------------------------
739
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2015-10-28 20:09:27.963276','2015-10-28 20:09:27.963276','chartreuse')
740
- Testing Load (0.2ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
741
-  (0.5ms) rollback transaction
742
-  (0.0ms) begin transaction
743
- ---------------------------------------------------------------------
744
- BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
745
- ---------------------------------------------------------------------
746
-  (0.0ms) rollback transaction
747
-  (0.1ms) begin transaction
748
- --------------------------------------------------------------------
749
- BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
750
- --------------------------------------------------------------------
751
-  (0.0ms) rollback transaction
752
-  (0.1ms) begin transaction
753
- -------------------------------------------------------------------
754
- BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
755
- -------------------------------------------------------------------
756
-  (0.0ms) SELECT COUNT(*) FROM "testings"
757
-  (0.0ms) SELECT COUNT(*) FROM "testings"
758
-  (0.0ms) rollback transaction
759
-  (0.1ms) begin transaction
760
- ----------------------------------------------------------------------------------
761
- BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
762
- ----------------------------------------------------------------------------------
763
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2015-10-28 20:09:27.969154','2015-10-28 20:09:27.969154','chartreuse')
764
-  (0.1ms) SELECT COUNT(*) FROM "testings"
765
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
766
-  (0.4ms) rollback transaction
767
-  (0.1ms) begin transaction
768
- -------------------------------------------
769
- BulkInsertWorkerTest: test_default_set_size
770
- -------------------------------------------
771
-  (0.1ms) rollback transaction
772
-  (0.0ms) begin transaction
773
- ----------------------------------------------------------------
774
- BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
775
- ----------------------------------------------------------------
776
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2015-10-28 20:09:27.974010','2015-10-28 20:09:27.974010',NULL)
777
- Testing Load (0.2ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
778
-  (0.4ms) rollback transaction
779
-  (0.1ms) begin transaction
780
- ----------------------------------------------------------------
781
- BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
782
- ----------------------------------------------------------------
783
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2015-10-28 20:09:27.976276','2015-10-28 20:09:27.976276','chartreuse')
784
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
785
-  (0.4ms) rollback transaction
786
-  (0.1ms) begin transaction
787
- -------------------------------------------------------------------------------
788
- BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
789
- -------------------------------------------------------------------------------
790
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2015-10-28 20:09:27.979366','2015-10-28 20:09:27.979366','chartreuse')
791
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
792
-  (0.4ms) rollback transaction
793
-  (0.1ms) begin transaction
794
- ----------------------------------------------------------------------------
795
- BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
796
- ----------------------------------------------------------------------------
797
-  (0.0ms) rollback transaction
798
-  (0.1ms) begin transaction
799
- ---------------------------------------------------------
800
- BulkInsertWorkerTest: test_save!_makes_insert_not_pending
801
- ---------------------------------------------------------
802
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2015-10-28 20:09:27.982136','2015-10-28 20:09:27.982136','chartreuse')
803
-  (0.4ms) rollback transaction
804
-  (0.1ms) begin transaction
805
- --------------------------------------------------------
806
- BulkInsertWorkerTest: test_save!_inserts_pending_records
807
- --------------------------------------------------------
808
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2015-10-28 20:09:27.983507','2015-10-28 20:09:27.983507','chartreuse'),('Hello',25,'t','2015-10-28 20:09:27.983507','2015-10-28 20:09:27.983507','chartreuse')
809
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
810
- Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
811
-  (0.5ms) rollback transaction
812
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
813
-  (0.1ms) begin transaction
814
- ------------------------------------------------------------------------------
815
- BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
816
- ------------------------------------------------------------------------------
817
-  (0.0ms) rollback transaction
818
-  (0.1ms) begin transaction
819
- -------------------------------------------------------------------
820
- BulkInsertTest: test_bulk_insert_without_block_should_return_worker
821
- -------------------------------------------------------------------
822
-  (0.0ms) rollback transaction
823
-  (0.1ms) begin transaction
824
- -----------------------------------------------------------------------------
825
- BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
826
- -----------------------------------------------------------------------------
827
-  (0.1ms) SELECT COUNT(*) FROM "testings"
828
-  (0.0ms) SELECT COUNT(*) FROM "testings"
829
-  (0.0ms) rollback transaction
830
-  (0.1ms) begin transaction
831
- ---------------------------------------------------------------
832
- BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
833
- ---------------------------------------------------------------
834
-  (0.1ms) SAVEPOINT active_record_1
835
-  (0.1ms) RELEASE SAVEPOINT active_record_1
836
-  (0.1ms) rollback transaction
837
-  (0.1ms) begin transaction
838
- ---------------------------------------------------------------------
839
- BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
840
- ---------------------------------------------------------------------
841
-  (0.1ms) SELECT COUNT(*) FROM "testings"
842
-  (0.0ms) SAVEPOINT active_record_1
843
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2015-10-28 20:09:47.625618','2015-10-28 20:09:47.625618','chartreuse')
844
-  (0.0ms) RELEASE SAVEPOINT active_record_1
845
-  (0.1ms) SELECT COUNT(*) FROM "testings"
846
-  (1.9ms) rollback transaction
847
-  (0.1ms) begin transaction
848
- -------------------------------------------
849
- BulkInsertWorkerTest: test_default_set_size
850
- -------------------------------------------
851
-  (0.0ms) rollback transaction
852
-  (0.1ms) begin transaction
853
- ---------------------------------------------------------------------
854
- BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
855
- ---------------------------------------------------------------------
856
-  (0.0ms) rollback transaction
857
-  (0.1ms) begin transaction
858
- -------------------------------------------------------------------------------
859
- BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
860
- -------------------------------------------------------------------------------
861
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2015-10-28 20:09:47.633058','2015-10-28 20:09:47.633058','chartreuse')
862
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
863
-  (0.5ms) rollback transaction
864
-  (0.1ms) begin transaction
865
- ----------------------------------------------------------------
866
- BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
867
- ----------------------------------------------------------------
868
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2015-10-28 20:09:47.649491','2015-10-28 20:09:47.649491',NULL)
869
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
870
-  (0.5ms) rollback transaction
871
-  (0.1ms) begin transaction
872
- ----------------------------------------------------------------
873
- BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
874
- ----------------------------------------------------------------
875
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2015-10-28 20:09:47.652846','2015-10-28 20:09:47.652846','chartreuse')
876
- Testing Load (0.2ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
877
-  (0.5ms) rollback transaction
878
-  (0.0ms) begin transaction
879
- ----------------------------------------------------------------------------
880
- BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
881
- ----------------------------------------------------------------------------
882
-  (0.0ms) rollback transaction
883
-  (0.1ms) begin transaction
884
- -------------------------------------------------------------------
885
- BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
886
- -------------------------------------------------------------------
887
-  (0.1ms) SELECT COUNT(*) FROM "testings"
888
-  (0.1ms) SELECT COUNT(*) FROM "testings"
889
-  (0.1ms) rollback transaction
890
-  (0.0ms) begin transaction
891
- --------------------------------------------------------------------
892
- BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
893
- --------------------------------------------------------------------
894
-  (0.1ms) rollback transaction
895
-  (0.1ms) begin transaction
896
- ------------------------------------------------------------------------------
897
- BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
898
- ------------------------------------------------------------------------------
899
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2015-10-28 20:09:47.660440','2015-10-28 20:09:47.660440','chartreuse')
900
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
901
-  (0.4ms) rollback transaction
902
-  (0.1ms) begin transaction
903
- ----------------------------------------------------------------------------------
904
- BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
905
- ----------------------------------------------------------------------------------
906
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2015-10-28 20:09:47.662496','2015-10-28 20:09:47.662496','chartreuse')
907
-  (0.0ms) SELECT COUNT(*) FROM "testings"
908
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
909
-  (0.4ms) rollback transaction
910
-  (0.1ms) begin transaction
911
- ------------------------------------------------------
912
- BulkInsertWorkerTest: test_empty_insert_is_not_pending
913
- ------------------------------------------------------
914
-  (0.0ms) rollback transaction
915
-  (0.1ms) begin transaction
916
- ----------------------------------------------------------------------------------------------
917
- BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
918
- ----------------------------------------------------------------------------------------------
919
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2015-10-28 20:09:47.665254','2015-10-28 20:09:47.665254','chartreuse'),('Howdy',20,'f','2015-10-28 20:09:47.665254','2015-10-28 20:09:47.665254','chartreuse')
920
- Testing Load (0.1ms) SELECT "testings".* FROM "testings"
921
-  (0.4ms) rollback transaction
922
-  (0.1ms) begin transaction
923
- ---------------------------------------------------------
924
- BulkInsertWorkerTest: test_save!_makes_insert_not_pending
925
- ---------------------------------------------------------
926
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2015-10-28 20:09:47.667102','2015-10-28 20:09:47.667102','chartreuse')
927
-  (0.4ms) rollback transaction
928
-  (0.1ms) begin transaction
929
- --------------------------------------------------------
930
- BulkInsertWorkerTest: test_save!_inserts_pending_records
931
- --------------------------------------------------------
932
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2015-10-28 20:09:47.668436','2015-10-28 20:09:47.668436','chartreuse'),('Hello',25,'t','2015-10-28 20:09:47.668436','2015-10-28 20:09:47.668436','chartreuse')
933
- Testing Load (0.3ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
934
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
935
-  (0.5ms) rollback transaction
936
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
937
-  (0.1ms) begin transaction
938
- ----------------------------------------------------------------------------------------------
939
- BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
940
- ----------------------------------------------------------------------------------------------
941
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2015-10-28 20:11:03.358340','2015-10-28 20:11:03.358340','chartreuse'),('Howdy',20,'f','2015-10-28 20:11:03.358340','2015-10-28 20:11:03.358340','chartreuse')
942
- Testing Load (0.2ms) SELECT "testings".* FROM "testings"
943
-  (2.2ms) rollback transaction
944
-  (0.1ms) begin transaction
945
- -------------------------------------------
946
- BulkInsertWorkerTest: test_default_set_size
947
- -------------------------------------------
948
-  (0.1ms) rollback transaction
949
-  (0.0ms) begin transaction
950
- -------------------------------------------------------------------
951
- BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
952
- -------------------------------------------------------------------
953
-  (0.1ms) SELECT COUNT(*) FROM "testings"
954
-  (0.1ms) SELECT COUNT(*) FROM "testings"
955
-  (0.1ms) rollback transaction
956
-  (0.0ms) begin transaction
957
- ---------------------------------------------------------------------
958
- BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
959
- ---------------------------------------------------------------------
960
-  (0.0ms) rollback transaction
961
-  (0.1ms) begin transaction
962
- ------------------------------------------------------
963
- BulkInsertWorkerTest: test_empty_insert_is_not_pending
964
- ------------------------------------------------------
965
-  (0.0ms) rollback transaction
966
-  (0.1ms) begin transaction
967
- ----------------------------------------------------------------------------------
968
- BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
969
- ----------------------------------------------------------------------------------
970
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2015-10-28 20:11:03.381652','2015-10-28 20:11:03.381652','chartreuse')
971
-  (0.0ms) SELECT COUNT(*) FROM "testings"
972
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
973
-  (0.4ms) rollback transaction
974
-  (0.1ms) begin transaction
975
- ----------------------------------------------------------------
976
- BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
977
- ----------------------------------------------------------------
978
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2015-10-28 20:11:03.384868','2015-10-28 20:11:03.384868',NULL)
979
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
980
-  (0.4ms) rollback transaction
981
-  (0.1ms) begin transaction
982
- ---------------------------------------------------------
983
- BulkInsertWorkerTest: test_save!_makes_insert_not_pending
984
- ---------------------------------------------------------
985
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2015-10-28 20:11:03.386677','2015-10-28 20:11:03.386677','chartreuse')
986
-  (0.4ms) rollback transaction
987
-  (0.1ms) begin transaction
988
- --------------------------------------------------------------------
989
- BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
990
- --------------------------------------------------------------------
991
-  (0.0ms) rollback transaction
992
-  (0.1ms) begin transaction
993
- --------------------------------------------------------
994
- BulkInsertWorkerTest: test_save!_inserts_pending_records
995
- --------------------------------------------------------
996
-  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2015-10-28 20:11:03.390135','2015-10-28 20:11:03.390135','chartreuse'),('Hello',25,'t','2015-10-28 20:11:03.390135','2015-10-28 20:11:03.390135','chartreuse')
997
- Testing Load (0.2ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
998
- Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
999
-  (0.4ms) rollback transaction
1000
-  (0.1ms) begin transaction
1001
- ----------------------------------------------------------------------------
1002
- BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
1003
- ----------------------------------------------------------------------------
1004
-  (0.0ms) rollback transaction
1005
-  (0.1ms) begin transaction
1006
- ----------------------------------------------------------------
1007
- BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
1008
- ----------------------------------------------------------------
1009
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2015-10-28 20:11:03.398277','2015-10-28 20:11:03.398277','chartreuse')
1010
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
1011
-  (0.4ms) rollback transaction
1012
-  (0.1ms) begin transaction
1013
- -------------------------------------------------------------------------------
1014
- BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
1015
- -------------------------------------------------------------------------------
1016
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2015-10-28 20:11:03.400450','2015-10-28 20:11:03.400450','chartreuse')
1017
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
1018
-  (0.5ms) rollback transaction
1019
-  (0.1ms) begin transaction
1020
- ------------------------------------------------------------------------------
1021
- BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
1022
- ------------------------------------------------------------------------------
1023
-  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2015-10-28 20:11:03.403756','2015-10-28 20:11:03.403756','chartreuse')
1024
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
1025
-  (0.4ms) rollback transaction
1026
-  (0.1ms) begin transaction
1027
- ------------------------------------------------------------------------------
1028
- BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
1029
- ------------------------------------------------------------------------------
1030
-  (0.0ms) rollback transaction
1031
-  (0.1ms) begin transaction
1032
- ---------------------------------------------------------------
1033
- BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
1034
- ---------------------------------------------------------------
1035
-  (0.0ms) SAVEPOINT active_record_1
1036
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1037
-  (0.0ms) rollback transaction
1038
-  (0.1ms) begin transaction
1039
- -----------------------------------------------------------------------------
1040
- BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
1041
- -----------------------------------------------------------------------------
1042
-  (0.1ms) SELECT COUNT(*) FROM "testings"
1043
-  (0.0ms) SAVEPOINT active_record_1
1044
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2015-10-28 20:11:03.408978','chartreuse'),('Hey',20,'f','2015-10-28 20:11:03.408978','2015-10-28 20:11:03.408978','chartreuse')
1045
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1046
-  (0.0ms) SELECT COUNT(*) FROM "testings"
1047
-  (0.4ms) rollback transaction
1048
-  (0.1ms) begin transaction
1049
- ---------------------------------------------------------------------
1050
- BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
1051
- ---------------------------------------------------------------------
1052
-  (0.1ms) SELECT COUNT(*) FROM "testings"
1053
-  (0.0ms) SAVEPOINT active_record_1
1054
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2015-10-28 20:11:03.411309','2015-10-28 20:11:03.411309','chartreuse')
1055
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1056
-  (0.1ms) SELECT COUNT(*) FROM "testings"
1057
-  (0.4ms) rollback transaction
1058
-  (0.1ms) begin transaction
1059
- -------------------------------------------------------------------
1060
- BulkInsertTest: test_bulk_insert_without_block_should_return_worker
1061
- -------------------------------------------------------------------
1062
-  (0.0ms) rollback transaction
1063
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1064
-  (0.1ms) begin transaction
1065
- ---------------------------------------------------------------------
1066
- BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
1067
- ---------------------------------------------------------------------
1068
-  (0.0ms) rollback transaction
1069
-  (0.0ms) begin transaction
1070
- ----------------------------------------------------------------------------------
1071
- BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
1072
- ----------------------------------------------------------------------------------
1073
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2015-10-28 20:12:47.479586','2015-10-28 20:12:47.479586','chartreuse')
1074
-  (0.1ms) SELECT COUNT(*) FROM "testings"
1075
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
1076
-  (2.4ms) rollback transaction
1077
-  (0.1ms) begin transaction
1078
- -------------------------------------------------------------------
1079
- BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
1080
- -------------------------------------------------------------------
1081
-  (0.1ms) SELECT COUNT(*) FROM "testings"
1082
-  (0.1ms) SELECT COUNT(*) FROM "testings"
1083
-  (0.1ms) rollback transaction
1084
-  (0.0ms) begin transaction
1085
- --------------------------------------------------------
1086
- BulkInsertWorkerTest: test_save!_inserts_pending_records
1087
- --------------------------------------------------------
1088
-  (0.5ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2015-10-28 20:12:47.502465','2015-10-28 20:12:47.502465','chartreuse'),('Hello',25,'t','2015-10-28 20:12:47.502465','2015-10-28 20:12:47.502465','chartreuse')
1089
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
1090
- Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
1091
-  (0.5ms) rollback transaction
1092
-  (0.1ms) begin transaction
1093
- -------------------------------------------------------------------------------
1094
- BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
1095
- -------------------------------------------------------------------------------
1096
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2015-10-28 20:12:47.511412','2015-10-28 20:12:47.511412','chartreuse')
1097
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
1098
-  (0.4ms) rollback transaction
1099
-  (0.0ms) begin transaction
1100
- ----------------------------------------------------------------------------------------------
1101
- BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
1102
- ----------------------------------------------------------------------------------------------
1103
-  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2015-10-28 20:12:47.514036','2015-10-28 20:12:47.514036','chartreuse'),('Howdy',20,'f','2015-10-28 20:12:47.514036','2015-10-28 20:12:47.514036','chartreuse')
1104
- Testing Load (0.1ms) SELECT "testings".* FROM "testings"
1105
-  (0.4ms) rollback transaction
1106
-  (0.1ms) begin transaction
1107
- ----------------------------------------------------------------
1108
- BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
1109
- ----------------------------------------------------------------
1110
-  (0.7ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2015-10-28 20:12:47.516777','2015-10-28 20:12:47.516777',NULL)
1111
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
1112
-  (0.4ms) rollback transaction
1113
-  (0.1ms) begin transaction
1114
- ---------------------------------------------------------
1115
- BulkInsertWorkerTest: test_save!_makes_insert_not_pending
1116
- ---------------------------------------------------------
1117
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2015-10-28 20:12:47.519576','2015-10-28 20:12:47.519576','chartreuse')
1118
-  (0.4ms) rollback transaction
1119
-  (0.1ms) begin transaction
1120
- ------------------------------------------------------------------------------
1121
- BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
1122
- ------------------------------------------------------------------------------
1123
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2015-10-28 20:12:47.521107','2015-10-28 20:12:47.521107','chartreuse')
1124
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
1125
-  (0.3ms) rollback transaction
1126
-  (0.1ms) begin transaction
1127
- ----------------------------------------------------------------
1128
- BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
1129
- ----------------------------------------------------------------
1130
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2015-10-28 20:12:47.522973','2015-10-28 20:12:47.522973','chartreuse')
1131
- Testing Load (0.2ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
1132
-  (0.5ms) rollback transaction
1133
-  (0.1ms) begin transaction
1134
- ----------------------------------------------------------------------------
1135
- BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
1136
- ----------------------------------------------------------------------------
1137
-  (0.0ms) rollback transaction
1138
-  (0.0ms) begin transaction
1139
- --------------------------------------------------------------------
1140
- BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
1141
- --------------------------------------------------------------------
1142
-  (0.0ms) rollback transaction
1143
-  (0.0ms) begin transaction
1144
- -------------------------------------------
1145
- BulkInsertWorkerTest: test_default_set_size
1146
- -------------------------------------------
1147
-  (0.0ms) rollback transaction
1148
-  (0.1ms) begin transaction
1149
- ------------------------------------------------------
1150
- BulkInsertWorkerTest: test_empty_insert_is_not_pending
1151
- ------------------------------------------------------
1152
-  (0.0ms) rollback transaction
1153
-  (0.0ms) begin transaction
1154
- -----------------------------------------------------------------------------
1155
- BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
1156
- -----------------------------------------------------------------------------
1157
-  (0.1ms) SELECT COUNT(*) FROM "testings"
1158
-  (0.0ms) SAVEPOINT active_record_1
1159
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2015-10-28 20:12:47.530685','chartreuse'),('Hey',20,'f','2015-10-28 20:12:47.530685','2015-10-28 20:12:47.530685','chartreuse')
1160
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1161
-  (0.1ms) SELECT COUNT(*) FROM "testings"
1162
-  (0.3ms) rollback transaction
1163
-  (0.1ms) begin transaction
1164
- ---------------------------------------------------------------------
1165
- BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
1166
- ---------------------------------------------------------------------
1167
-  (0.1ms) SELECT COUNT(*) FROM "testings"
1168
-  (0.0ms) SAVEPOINT active_record_1
1169
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2015-10-28 20:12:47.533152','2015-10-28 20:12:47.533152','chartreuse')
1170
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1171
-  (0.1ms) SELECT COUNT(*) FROM "testings"
1172
-  (0.4ms) rollback transaction
1173
-  (0.1ms) begin transaction
1174
- -------------------------------------------------------------------
1175
- BulkInsertTest: test_bulk_insert_without_block_should_return_worker
1176
- -------------------------------------------------------------------
1177
-  (0.0ms) rollback transaction
1178
-  (0.1ms) begin transaction
1179
- ---------------------------------------------------------------
1180
- BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
1181
- ---------------------------------------------------------------
1182
-  (0.1ms) SAVEPOINT active_record_1
1183
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1184
-  (0.0ms) rollback transaction
1185
-  (0.1ms) begin transaction
1186
- ------------------------------------------------------------------------------
1187
- BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
1188
- ------------------------------------------------------------------------------
1189
-  (0.0ms) rollback transaction
1190
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1191
-  (0.1ms) begin transaction
1192
- -----------------------------------------------------------------------------
1193
- BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
1194
- -----------------------------------------------------------------------------
1195
-  (0.1ms) SELECT COUNT(*) FROM "testings"
1196
-  (0.0ms) SAVEPOINT active_record_1
1197
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2015-10-28 20:13:22.448075','chartreuse'),('Hey',20,'f','2015-10-28 20:13:22.448075','2015-10-28 20:13:22.448075','chartreuse')
1198
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1199
-  (0.1ms) SELECT COUNT(*) FROM "testings"
1200
-  (2.0ms) rollback transaction
1201
-  (0.1ms) begin transaction
1202
- ------------------------------------------------------------------------------
1203
- BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
1204
- ------------------------------------------------------------------------------
1205
-  (0.0ms) rollback transaction
1206
-  (0.1ms) begin transaction
1207
- ---------------------------------------------------------------------
1208
- BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
1209
- ---------------------------------------------------------------------
1210
-  (0.1ms) SELECT COUNT(*) FROM "testings"
1211
-  (0.0ms) SAVEPOINT active_record_1
1212
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2015-10-28 20:13:22.454687','2015-10-28 20:13:22.454687','chartreuse')
1213
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1214
-  (0.0ms) SELECT COUNT(*) FROM "testings"
1215
-  (0.4ms) rollback transaction
1216
-  (0.1ms) begin transaction
1217
- -------------------------------------------------------------------
1218
- BulkInsertTest: test_bulk_insert_without_block_should_return_worker
1219
- -------------------------------------------------------------------
1220
-  (0.0ms) rollback transaction
1221
-  (0.0ms) begin transaction
1222
- ---------------------------------------------------------------
1223
- BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
1224
- ---------------------------------------------------------------
1225
-  (0.0ms) SAVEPOINT active_record_1
1226
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1227
-  (0.0ms) rollback transaction
1228
-  (0.0ms) begin transaction
1229
- ---------------------------------------------------------------------
1230
- BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
1231
- ---------------------------------------------------------------------
1232
-  (0.0ms) rollback transaction
1233
-  (0.1ms) begin transaction
1234
- ---------------------------------------------------------
1235
- BulkInsertWorkerTest: test_save!_makes_insert_not_pending
1236
- ---------------------------------------------------------
1237
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2015-10-28 20:13:22.460810','2015-10-28 20:13:22.460810','chartreuse')
1238
-  (0.3ms) rollback transaction
1239
-  (0.1ms) begin transaction
1240
- ----------------------------------------------------------------
1241
- BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
1242
- ----------------------------------------------------------------
1243
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2015-10-28 20:13:22.462862','2015-10-28 20:13:22.462862','chartreuse')
1244
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
1245
-  (0.5ms) rollback transaction
1246
-  (0.1ms) begin transaction
1247
- -------------------------------------------------------------------------------
1248
- BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
1249
- -------------------------------------------------------------------------------
1250
-  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2015-10-28 20:13:22.479273','2015-10-28 20:13:22.479273','chartreuse')
1251
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
1252
-  (0.4ms) rollback transaction
1253
-  (0.0ms) begin transaction
1254
- ----------------------------------------------------------------------------------------------
1255
- BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
1256
- ----------------------------------------------------------------------------------------------
1257
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2015-10-28 20:13:22.481957','2015-10-28 20:13:22.481957','chartreuse'),('Howdy',20,'f','2015-10-28 20:13:22.481957','2015-10-28 20:13:22.481957','chartreuse')
1258
- Testing Load (0.1ms) SELECT "testings".* FROM "testings"
1259
-  (0.4ms) rollback transaction
1260
-  (0.1ms) begin transaction
1261
- -------------------------------------------------------------------
1262
- BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
1263
- -------------------------------------------------------------------
1264
-  (0.1ms) SELECT COUNT(*) FROM "testings"
1265
-  (0.1ms) SELECT COUNT(*) FROM "testings"
1266
-  (0.1ms) rollback transaction
1267
-  (0.1ms) begin transaction
1268
- ----------------------------------------------------------------
1269
- BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
1270
- ----------------------------------------------------------------
1271
-  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2015-10-28 20:13:22.486828','2015-10-28 20:13:22.486828',NULL)
1272
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
1273
-  (0.4ms) rollback transaction
1274
-  (0.1ms) begin transaction
1275
- --------------------------------------------------------------------
1276
- BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
1277
- --------------------------------------------------------------------
1278
-  (0.0ms) rollback transaction
1279
-  (0.0ms) begin transaction
1280
- ------------------------------------------------------
1281
- BulkInsertWorkerTest: test_empty_insert_is_not_pending
1282
- ------------------------------------------------------
1283
-  (0.0ms) rollback transaction
1284
-  (0.1ms) begin transaction
1285
- -------------------------------------------
1286
- BulkInsertWorkerTest: test_default_set_size
1287
- -------------------------------------------
1288
-  (0.0ms) rollback transaction
1289
-  (0.1ms) begin transaction
1290
- --------------------------------------------------------
1291
- BulkInsertWorkerTest: test_save!_inserts_pending_records
1292
- --------------------------------------------------------
1293
-  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2015-10-28 20:13:22.491382','2015-10-28 20:13:22.491382','chartreuse'),('Hello',25,'t','2015-10-28 20:13:22.491382','2015-10-28 20:13:22.491382','chartreuse')
1294
- Testing Load (0.2ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
1295
- Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
1296
-  (0.5ms) rollback transaction
1297
-  (0.1ms) begin transaction
1298
- ------------------------------------------------------------------------------
1299
- BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
1300
- ------------------------------------------------------------------------------
1301
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2015-10-28 20:13:22.498646','2015-10-28 20:13:22.498646','chartreuse')
1302
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
1303
-  (0.4ms) rollback transaction
1304
-  (0.1ms) begin transaction
1305
- ----------------------------------------------------------------------------------
1306
- BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
1307
- ----------------------------------------------------------------------------------
1308
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2015-10-28 20:13:22.500561','2015-10-28 20:13:22.500561','chartreuse')
1309
-  (0.1ms) SELECT COUNT(*) FROM "testings"
1310
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
1311
-  (0.4ms) rollback transaction
1312
-  (0.1ms) begin transaction
1313
- ----------------------------------------------------------------------------
1314
- BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
1315
- ----------------------------------------------------------------------------
1316
-  (0.1ms) rollback transaction
1317
- ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
1318
-  (0.1ms) begin transaction
1319
- --------------------------------------------------------
1320
- BulkInsertWorkerTest: test_save!_inserts_pending_records
1321
- --------------------------------------------------------
1322
-  (1.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2016-03-20 19:58:37.248792','2016-03-20 19:58:37.248792','chartreuse'),('Hello',25,'t','2016-03-20 19:58:37.248792','2016-03-20 19:58:37.248792','chartreuse')
1323
- Testing Load (0.2ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
1324
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
1325
-  (0.8ms) rollback transaction
1326
-  (0.1ms) begin transaction
1327
- ---------------------------------------------------------------------
1328
- BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
1329
- ---------------------------------------------------------------------
1330
-  (0.0ms) rollback transaction
1331
-  (0.1ms) begin transaction
1332
- ----------------------------------------------------------------------------------------------
1333
- BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
1334
- ----------------------------------------------------------------------------------------------
1335
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-03-20 19:58:37.266113','2016-03-20 19:58:37.266113','chartreuse'),('Howdy',20,'f','2016-03-20 19:58:37.266113','2016-03-20 19:58:37.266113','chartreuse')
1336
- Testing Load (0.1ms) SELECT "testings".* FROM "testings"
1337
-  (0.4ms) rollback transaction
1338
-  (0.1ms) begin transaction
1339
- --------------------------------------------------------------------
1340
- BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
1341
- --------------------------------------------------------------------
1342
-  (0.1ms) rollback transaction
1343
-  (0.1ms) begin transaction
1344
- ------------------------------------------------------------------------------
1345
- BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
1346
- ------------------------------------------------------------------------------
1347
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-03-20 19:58:37.268988','2016-03-20 19:58:37.268988','chartreuse')
1348
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
1349
-  (0.4ms) rollback transaction
1350
-  (0.1ms) begin transaction
1351
- ---------------------------------------------------------
1352
- BulkInsertWorkerTest: test_save!_makes_insert_not_pending
1353
- ---------------------------------------------------------
1354
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-03-20 19:58:37.270984','2016-03-20 19:58:37.270984','chartreuse')
1355
-  (0.4ms) rollback transaction
1356
-  (0.1ms) begin transaction
1357
- -------------------------------------------
1358
- BulkInsertWorkerTest: test_default_set_size
1359
- -------------------------------------------
1360
-  (0.0ms) rollback transaction
1361
-  (0.1ms) begin transaction
1362
- ----------------------------------------------------------------
1363
- BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
1364
- ----------------------------------------------------------------
1365
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-03-20 19:58:37.273126','2016-03-20 19:58:37.273126',NULL)
1366
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
1367
-  (0.4ms) rollback transaction
1368
-  (0.1ms) begin transaction
1369
- ----------------------------------------------------------------------------------
1370
- BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
1371
- ----------------------------------------------------------------------------------
1372
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-03-20 19:58:37.275191','2016-03-20 19:58:37.275191','chartreuse')
1373
-  (0.1ms) SELECT COUNT(*) FROM "testings"
1374
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
1375
-  (0.4ms) rollback transaction
1376
-  (0.0ms) begin transaction
1377
- -------------------------------------------------------------------
1378
- BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
1379
- -------------------------------------------------------------------
1380
-  (0.1ms) SELECT COUNT(*) FROM "testings"
1381
-  (0.0ms) SELECT COUNT(*) FROM "testings"
1382
-  (0.0ms) rollback transaction
1383
-  (0.1ms) begin transaction
1384
- ----------------------------------------------------------------
1385
- BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
1386
- ----------------------------------------------------------------
1387
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2016-03-20 19:58:37.279127','2016-03-20 19:58:37.279127','chartreuse')
1388
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
1389
-  (0.3ms) rollback transaction
1390
-  (0.1ms) begin transaction
1391
- -------------------------------------------------------------------------------
1392
- BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
1393
- -------------------------------------------------------------------------------
1394
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-03-20 19:58:37.282420','2016-03-20 19:58:37.282420','chartreuse')
1395
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
1396
-  (0.5ms) rollback transaction
1397
-  (0.0ms) begin transaction
1398
- ----------------------------------------------------------------------------
1399
- BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
1400
- ----------------------------------------------------------------------------
1401
-  (0.0ms) rollback transaction
1402
-  (0.1ms) begin transaction
1403
- ------------------------------------------------------
1404
- BulkInsertWorkerTest: test_empty_insert_is_not_pending
1405
- ------------------------------------------------------
1406
-  (0.1ms) rollback transaction
1407
-  (0.1ms) begin transaction
1408
- -------------------------------------------------------------------
1409
- BulkInsertTest: test_bulk_insert_without_block_should_return_worker
1410
- -------------------------------------------------------------------
1411
-  (0.0ms) rollback transaction
1412
-  (0.0ms) begin transaction
1413
- -----------------------------------------------------------------------------
1414
- BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
1415
- -----------------------------------------------------------------------------
1416
-  (0.2ms) SELECT COUNT(*) FROM "testings"
1417
-  (0.0ms) SAVEPOINT active_record_1
1418
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2016-03-20 19:58:37.290869','chartreuse'),('Hey',20,'f','2016-03-20 19:58:37.290869','2016-03-20 19:58:37.290869','chartreuse')
1419
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1420
-  (0.0ms) SELECT COUNT(*) FROM "testings"
1421
-  (0.5ms) rollback transaction
1422
-  (0.1ms) begin transaction
1423
- ---------------------------------------------------------------
1424
- BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
1425
- ---------------------------------------------------------------
1426
-  (0.1ms) SAVEPOINT active_record_1
1427
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1428
-  (0.1ms) rollback transaction
1429
-  (0.1ms) begin transaction
1430
- ------------------------------------------------------------------------------
1431
- BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
1432
- ------------------------------------------------------------------------------
1433
-  (0.1ms) rollback transaction
1434
-  (0.1ms) begin transaction
1435
- ---------------------------------------------------------------------
1436
- BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
1437
- ---------------------------------------------------------------------
1438
-  (0.2ms) SELECT COUNT(*) FROM "testings"
1439
-  (0.1ms) SAVEPOINT active_record_1
1440
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2016-03-20 19:58:37.296764','2016-03-20 19:58:37.296764','chartreuse')
1441
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1442
-  (0.1ms) SELECT COUNT(*) FROM "testings"
1443
-  (0.4ms) rollback transaction
1444
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1445
-  (0.1ms) begin transaction
1446
- ----------------------------------------------------------------------------
1447
- BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
1448
- ----------------------------------------------------------------------------
1449
-  (0.0ms) rollback transaction
1450
-  (0.1ms) begin transaction
1451
- ---------------------------------------------------------------------
1452
- BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
1453
- ---------------------------------------------------------------------
1454
-  (0.0ms) rollback transaction
1455
-  (0.1ms) begin transaction
1456
- --------------------------------------------------------
1457
- BulkInsertWorkerTest: test_save!_inserts_pending_records
1458
- --------------------------------------------------------
1459
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2016-03-20 19:59:08.351204','2016-03-20 19:59:08.351204','chartreuse'),('Hello',25,'t','2016-03-20 19:59:08.351204','2016-03-20 19:59:08.351204','chartreuse')
1460
- Testing Load (0.3ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
1461
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
1462
-  (2.4ms) rollback transaction
1463
-  (0.1ms) begin transaction
1464
- ------------------------------------------------------
1465
- BulkInsertWorkerTest: test_empty_insert_is_not_pending
1466
- ------------------------------------------------------
1467
-  (0.0ms) rollback transaction
1468
-  (0.1ms) begin transaction
1469
- --------------------------------------------------------------------
1470
- BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
1471
- --------------------------------------------------------------------
1472
-  (0.0ms) rollback transaction
1473
-  (0.1ms) begin transaction
1474
- ----------------------------------------------------------------------------------------------
1475
- BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
1476
- ----------------------------------------------------------------------------------------------
1477
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-03-20 19:59:08.369272','2016-03-20 19:59:08.369272','chartreuse'),('Howdy',20,'f','2016-03-20 19:59:08.369272','2016-03-20 19:59:08.369272','chartreuse')
1478
- Testing Load (0.1ms) SELECT "testings".* FROM "testings"
1479
-  (0.5ms) rollback transaction
1480
-  (0.1ms) begin transaction
1481
- -------------------------------------------
1482
- BulkInsertWorkerTest: test_default_set_size
1483
- -------------------------------------------
1484
-  (0.0ms) rollback transaction
1485
-  (0.1ms) begin transaction
1486
- ------------------------------------------------------------------------------
1487
- BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
1488
- ------------------------------------------------------------------------------
1489
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-03-20 19:59:08.372173','2016-03-20 19:59:08.372173','chartreuse')
1490
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
1491
-  (0.4ms) rollback transaction
1492
-  (0.0ms) begin transaction
1493
- ----------------------------------------------------------------------------------
1494
- BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
1495
- ----------------------------------------------------------------------------------
1496
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-03-20 19:59:08.374123','2016-03-20 19:59:08.374123','chartreuse')
1497
-  (0.1ms) SELECT COUNT(*) FROM "testings"
1498
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
1499
-  (0.4ms) rollback transaction
1500
-  (0.1ms) begin transaction
1501
- -------------------------------------------------------------------------------
1502
- BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
1503
- -------------------------------------------------------------------------------
1504
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-03-20 19:59:08.376668','2016-03-20 19:59:08.376668','chartreuse')
1505
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
1506
-  (0.4ms) rollback transaction
1507
-  (0.1ms) begin transaction
1508
- -------------------------------------------------------------------
1509
- BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
1510
- -------------------------------------------------------------------
1511
-  (0.0ms) SELECT COUNT(*) FROM "testings"
1512
-  (0.0ms) SELECT COUNT(*) FROM "testings"
1513
-  (0.0ms) rollback transaction
1514
-  (0.1ms) begin transaction
1515
- ----------------------------------------------------------------
1516
- BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
1517
- ----------------------------------------------------------------
1518
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2016-03-20 19:59:08.380222','2016-03-20 19:59:08.380222','chartreuse')
1519
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
1520
-  (1.1ms) rollback transaction
1521
-  (0.1ms) begin transaction
1522
- ---------------------------------------------------------
1523
- BulkInsertWorkerTest: test_save!_makes_insert_not_pending
1524
- ---------------------------------------------------------
1525
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-03-20 19:59:08.383364','2016-03-20 19:59:08.383364','chartreuse')
1526
-  (0.6ms) rollback transaction
1527
-  (0.1ms) begin transaction
1528
- ----------------------------------------------------------------
1529
- BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
1530
- ----------------------------------------------------------------
1531
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-03-20 19:59:08.385585','2016-03-20 19:59:08.385585',NULL)
1532
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
1533
-  (0.3ms) rollback transaction
1534
-  (0.1ms) begin transaction
1535
- -------------------------------------------------------------------
1536
- BulkInsertTest: test_bulk_insert_without_block_should_return_worker
1537
- -------------------------------------------------------------------
1538
-  (0.0ms) rollback transaction
1539
-  (0.0ms) begin transaction
1540
- ---------------------------------------------------------------------
1541
- BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
1542
- ---------------------------------------------------------------------
1543
-  (0.1ms) SELECT COUNT(*) FROM "testings"
1544
-  (0.1ms) SAVEPOINT active_record_1
1545
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2016-03-20 19:59:08.391123','2016-03-20 19:59:08.391123','chartreuse')
1546
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1547
-  (0.1ms) SELECT COUNT(*) FROM "testings"
1548
-  (0.4ms) rollback transaction
1549
-  (0.1ms) begin transaction
1550
- -----------------------------------------------------------------------------
1551
- BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
1552
- -----------------------------------------------------------------------------
1553
-  (0.1ms) SELECT COUNT(*) FROM "testings"
1554
-  (0.0ms) SAVEPOINT active_record_1
1555
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2016-03-20 19:59:08.394761','chartreuse'),('Hey',20,'f','2016-03-20 19:59:08.394761','2016-03-20 19:59:08.394761','chartreuse')
1556
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1557
-  (0.0ms) SELECT COUNT(*) FROM "testings"
1558
-  (0.5ms) rollback transaction
1559
-  (0.1ms) begin transaction
1560
- ---------------------------------------------------------------
1561
- BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
1562
- ---------------------------------------------------------------
1563
-  (0.0ms) SAVEPOINT active_record_1
1564
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1565
-  (0.1ms) rollback transaction
1566
-  (0.1ms) begin transaction
1567
- ------------------------------------------------------------------------------
1568
- BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
1569
- ------------------------------------------------------------------------------
1570
-  (0.1ms) rollback transaction
1571
- ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
1572
-  (0.1ms) begin transaction
1573
- ------------------------------------------------------------------------------
1574
- BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
1575
- ------------------------------------------------------------------------------
1576
-  (0.1ms) rollback transaction
1577
-  (0.1ms) begin transaction
1578
- ---------------------------------------------------------------------
1579
- BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
1580
- ---------------------------------------------------------------------
1581
-  (0.5ms) SELECT COUNT(*) FROM "testings"
1582
-  (0.0ms) SAVEPOINT active_record_1
1583
-  (0.6ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2016-05-03 16:36:29.664634','2016-05-03 16:36:29.664634','chartreuse')
1584
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1585
-  (0.1ms) SELECT COUNT(*) FROM "testings"
1586
-  (0.8ms) rollback transaction
1587
-  (0.1ms) begin transaction
1588
- ---------------------------------------------------------------
1589
- BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
1590
- ---------------------------------------------------------------
1591
-  (0.0ms) SAVEPOINT active_record_1
1592
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1593
-  (0.0ms) rollback transaction
1594
-  (0.0ms) begin transaction
1595
- -----------------------------------------------------------------------------
1596
- BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
1597
- -----------------------------------------------------------------------------
1598
-  (0.1ms) SELECT COUNT(*) FROM "testings"
1599
-  (0.0ms) SAVEPOINT active_record_1
1600
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2016-05-03 16:36:29.672404','chartreuse'),('Hey',20,'f','2016-05-03 16:36:29.672404','2016-05-03 16:36:29.672404','chartreuse')
1601
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1602
-  (0.1ms) SELECT COUNT(*) FROM "testings"
1603
-  (0.4ms) rollback transaction
1604
-  (0.1ms) begin transaction
1605
- -------------------------------------------------------------------
1606
- BulkInsertTest: test_bulk_insert_without_block_should_return_worker
1607
- -------------------------------------------------------------------
1608
-  (0.1ms) rollback transaction
1609
-  (0.0ms) begin transaction
1610
- --------------------------------------------------------------------
1611
- BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
1612
- --------------------------------------------------------------------
1613
-  (0.0ms) rollback transaction
1614
-  (0.1ms) begin transaction
1615
- ----------------------------------------------------------------
1616
- BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
1617
- ----------------------------------------------------------------
1618
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:36:29.677247','2016-05-03 16:36:29.677247',NULL)
1619
- Testing Load (0.2ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
1620
-  (0.5ms) rollback transaction
1621
-  (0.1ms) begin transaction
1622
- ------------------------------------------------------
1623
- BulkInsertWorkerTest: test_empty_insert_is_not_pending
1624
- ------------------------------------------------------
1625
-  (0.0ms) rollback transaction
1626
-  (0.1ms) begin transaction
1627
- -------------------------------------------
1628
- BulkInsertWorkerTest: test_default_set_size
1629
- -------------------------------------------
1630
-  (0.0ms) rollback transaction
1631
-  (0.1ms) begin transaction
1632
- -------------------------------------------------------------------
1633
- BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
1634
- -------------------------------------------------------------------
1635
-  (0.0ms) SELECT COUNT(*) FROM "testings"
1636
-  (0.0ms) SELECT COUNT(*) FROM "testings"
1637
-  (0.0ms) rollback transaction
1638
-  (0.1ms) begin transaction
1639
- --------------------------------------------------------
1640
- BulkInsertWorkerTest: test_save!_inserts_pending_records
1641
- --------------------------------------------------------
1642
-  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2016-05-03 16:36:29.689397','2016-05-03 16:36:29.689397','chartreuse'),('Hello',25,'t','2016-05-03 16:36:29.689397','2016-05-03 16:36:29.689397','chartreuse')
1643
- Testing Load (0.2ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Yo"], ["LIMIT", 1]]
1644
- Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Hello"], ["LIMIT", 1]]
1645
-  (0.4ms) rollback transaction
1646
-  (0.1ms) begin transaction
1647
- ----------------------------------------------------------------
1648
- BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
1649
- ----------------------------------------------------------------
1650
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2016-05-03 16:36:29.697424','2016-05-03 16:36:29.697424','chartreuse')
1651
- Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
1652
-  (0.5ms) rollback transaction
1653
-  (0.1ms) begin transaction
1654
- ----------------------------------------------------------------------------
1655
- BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
1656
- ----------------------------------------------------------------------------
1657
-  (0.1ms) rollback transaction
1658
-  (0.1ms) begin transaction
1659
- -------------------------------------------------------------------------------
1660
- BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
1661
- -------------------------------------------------------------------------------
1662
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:36:29.702504','2016-05-03 16:36:29.702504','chartreuse')
1663
- Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
1664
-  (0.4ms) rollback transaction
1665
-  (0.1ms) begin transaction
1666
- ---------------------------------------------------------------------
1667
- BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
1668
- ---------------------------------------------------------------------
1669
-  (0.1ms) rollback transaction
1670
-  (0.1ms) begin transaction
1671
- ----------------------------------------------------------------------------------
1672
- BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
1673
- ----------------------------------------------------------------------------------
1674
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:36:29.706093','2016-05-03 16:36:29.706093','chartreuse')
1675
-  (0.1ms) SELECT COUNT(*) FROM "testings"
1676
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
1677
-  (0.5ms) rollback transaction
1678
-  (0.1ms) begin transaction
1679
- ----------------------------------------------------------------------------------------------
1680
- BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
1681
- ----------------------------------------------------------------------------------------------
1682
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:36:29.709530','2016-05-03 16:36:29.709530','chartreuse'),('Howdy',20,'f','2016-05-03 16:36:29.709530','2016-05-03 16:36:29.709530','chartreuse')
1683
- Testing Load (0.1ms) SELECT "testings".* FROM "testings"
1684
-  (0.5ms) rollback transaction
1685
-  (0.1ms) begin transaction
1686
- ---------------------------------------------------------
1687
- BulkInsertWorkerTest: test_save!_makes_insert_not_pending
1688
- ---------------------------------------------------------
1689
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:36:29.712302','2016-05-03 16:36:29.712302','chartreuse')
1690
-  (0.4ms) rollback transaction
1691
-  (0.1ms) begin transaction
1692
- ------------------------------------------------------------------------------
1693
- BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
1694
- ------------------------------------------------------------------------------
1695
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:36:29.714090','2016-05-03 16:36:29.714090','chartreuse')
1696
- Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
1697
-  (0.6ms) rollback transaction
1698
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1699
-  (0.1ms) begin transaction
1700
- --------------------------------------------------------
1701
- BulkInsertWorkerTest: test_save!_inserts_pending_records
1702
- --------------------------------------------------------
1703
-  (0.8ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2016-05-03 16:39:10.769501','2016-05-03 16:39:10.769501','chartreuse'),('Hello',25,'t','2016-05-03 16:39:10.769501','2016-05-03 16:39:10.769501','chartreuse')
1704
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Yo"], ["LIMIT", 1]]
1705
- Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Hello"], ["LIMIT", 1]]
1706
-  (0.4ms) rollback transaction
1707
-  (0.1ms) begin transaction
1708
- ------------------------------------------------------------------------------
1709
- BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
1710
- ------------------------------------------------------------------------------
1711
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:39:10.786277','2016-05-03 16:39:10.786277','chartreuse')
1712
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
1713
-  (0.4ms) rollback transaction
1714
-  (0.1ms) begin transaction
1715
- ----------------------------------------------------------------
1716
- BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
1717
- ----------------------------------------------------------------
1718
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2016-05-03 16:39:10.788623','2016-05-03 16:39:10.788623','chartreuse')
1719
- Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
1720
-  (0.4ms) rollback transaction
1721
-  (0.1ms) begin transaction
1722
- --------------------------------------------------------------------
1723
- BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
1724
- --------------------------------------------------------------------
1725
-  (0.0ms) rollback transaction
1726
-  (0.1ms) begin transaction
1727
- ------------------------------------------------------
1728
- BulkInsertWorkerTest: test_empty_insert_is_not_pending
1729
- ------------------------------------------------------
1730
-  (0.0ms) rollback transaction
1731
-  (0.1ms) begin transaction
1732
- ----------------------------------------------------------------
1733
- BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
1734
- ----------------------------------------------------------------
1735
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:39:10.792429','2016-05-03 16:39:10.792429',NULL)
1736
- Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
1737
-  (0.4ms) rollback transaction
1738
-  (0.1ms) begin transaction
1739
- ---------------------------------------------------------------------
1740
- BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
1741
- ---------------------------------------------------------------------
1742
-  (0.0ms) rollback transaction
1743
-  (0.1ms) begin transaction
1744
- -------------------------------------------
1745
- BulkInsertWorkerTest: test_default_set_size
1746
- -------------------------------------------
1747
-  (0.0ms) rollback transaction
1748
-  (0.1ms) begin transaction
1749
- -------------------------------------------------------------------------------
1750
- BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
1751
- -------------------------------------------------------------------------------
1752
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:39:10.796526','2016-05-03 16:39:10.796526','chartreuse')
1753
- Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
1754
-  (1.6ms) rollback transaction
1755
-  (0.1ms) begin transaction
1756
- -------------------------------------------------------------------
1757
- BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
1758
- -------------------------------------------------------------------
1759
-  (0.1ms) SELECT COUNT(*) FROM "testings"
1760
-  (0.0ms) SELECT COUNT(*) FROM "testings"
1761
-  (0.1ms) rollback transaction
1762
-  (0.0ms) begin transaction
1763
- ----------------------------------------------------------------------------------------------
1764
- BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
1765
- ----------------------------------------------------------------------------------------------
1766
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:39:10.802575','2016-05-03 16:39:10.802575','chartreuse'),('Howdy',20,'f','2016-05-03 16:39:10.802575','2016-05-03 16:39:10.802575','chartreuse')
1767
- Testing Load (0.1ms) SELECT "testings".* FROM "testings"
1768
-  (0.4ms) rollback transaction
1769
-  (0.1ms) begin transaction
1770
- ---------------------------------------------------------
1771
- BulkInsertWorkerTest: test_save!_makes_insert_not_pending
1772
- ---------------------------------------------------------
1773
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:39:10.805335','2016-05-03 16:39:10.805335','chartreuse')
1774
-  (0.8ms) rollback transaction
1775
-  (0.1ms) begin transaction
1776
- ----------------------------------------------------------------------------
1777
- BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
1778
- ----------------------------------------------------------------------------
1779
-  (0.1ms) rollback transaction
1780
-  (0.1ms) begin transaction
1781
- ----------------------------------------------------------------------------------
1782
- BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
1783
- ----------------------------------------------------------------------------------
1784
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:39:10.809202','2016-05-03 16:39:10.809202','chartreuse')
1785
-  (0.0ms) SELECT COUNT(*) FROM "testings"
1786
- Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
1787
-  (0.4ms) rollback transaction
1788
-  (0.0ms) begin transaction
1789
- ---------------------------------------------------------------
1790
- BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
1791
- ---------------------------------------------------------------
1792
-  (0.0ms) SAVEPOINT active_record_1
1793
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1794
-  (0.0ms) rollback transaction
1795
-  (0.1ms) begin transaction
1796
- -------------------------------------------------------------------
1797
- BulkInsertTest: test_bulk_insert_without_block_should_return_worker
1798
- -------------------------------------------------------------------
1799
-  (0.0ms) rollback transaction
1800
-  (0.1ms) begin transaction
1801
- ------------------------------------------------------------------------------
1802
- BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
1803
- ------------------------------------------------------------------------------
1804
-  (0.0ms) rollback transaction
1805
-  (0.1ms) begin transaction
1806
- -----------------------------------------------------------------------------
1807
- BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
1808
- -----------------------------------------------------------------------------
1809
-  (0.1ms) SELECT COUNT(*) FROM "testings"
1810
-  (0.0ms) SAVEPOINT active_record_1
1811
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2016-05-03 16:39:10.815115','chartreuse'),('Hey',20,'f','2016-05-03 16:39:10.815115','2016-05-03 16:39:10.815115','chartreuse')
1812
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1813
-  (0.0ms) SELECT COUNT(*) FROM "testings"
1814
-  (0.4ms) rollback transaction
1815
-  (0.1ms) begin transaction
1816
- ---------------------------------------------------------------------
1817
- BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
1818
- ---------------------------------------------------------------------
1819
-  (0.1ms) SELECT COUNT(*) FROM "testings"
1820
-  (0.0ms) SAVEPOINT active_record_1
1821
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2016-05-03 16:39:10.817715','2016-05-03 16:39:10.817715','chartreuse')
1822
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1823
-  (0.0ms) SELECT COUNT(*) FROM "testings"
1824
-  (0.4ms) rollback transaction
1825
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1826
-  (0.1ms) begin transaction
1827
- ------------------------------------------------------
1828
- BulkInsertWorkerTest: test_empty_insert_is_not_pending
1829
- ------------------------------------------------------
1830
-  (0.0ms) rollback transaction
1831
-  (0.1ms) begin transaction
1832
- ----------------------------------------------------------------
1833
- BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
1834
- ----------------------------------------------------------------
1835
-  (0.5ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2016-05-03 16:39:23.433773','2016-05-03 16:39:23.433773','chartreuse')
1836
- Testing Load (0.2ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
1837
-  (2.0ms) rollback transaction
1838
-  (0.1ms) begin transaction
1839
- ----------------------------------------------------------------------------
1840
- BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
1841
- ----------------------------------------------------------------------------
1842
-  (0.0ms) rollback transaction
1843
-  (0.1ms) begin transaction
1844
- ---------------------------------------------------------
1845
- BulkInsertWorkerTest: test_save!_makes_insert_not_pending
1846
- ---------------------------------------------------------
1847
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:39:23.451750','2016-05-03 16:39:23.451750','chartreuse')
1848
-  (0.4ms) rollback transaction
1849
-  (0.1ms) begin transaction
1850
- --------------------------------------------------------------------
1851
- BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
1852
- --------------------------------------------------------------------
1853
-  (0.0ms) rollback transaction
1854
-  (0.0ms) begin transaction
1855
- ------------------------------------------------------------------------------
1856
- BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
1857
- ------------------------------------------------------------------------------
1858
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:39:23.454387','2016-05-03 16:39:23.454387','chartreuse')
1859
- Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
1860
-  (0.4ms) rollback transaction
1861
-  (0.1ms) begin transaction
1862
- --------------------------------------------------------
1863
- BulkInsertWorkerTest: test_save!_inserts_pending_records
1864
- --------------------------------------------------------
1865
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2016-05-03 16:39:23.456532','2016-05-03 16:39:23.456532','chartreuse'),('Hello',25,'t','2016-05-03 16:39:23.456532','2016-05-03 16:39:23.456532','chartreuse')
1866
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Yo"], ["LIMIT", 1]]
1867
- Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Hello"], ["LIMIT", 1]]
1868
-  (0.4ms) rollback transaction
1869
-  (0.2ms) begin transaction
1870
- -------------------------------------------------------------------
1871
- BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
1872
- -------------------------------------------------------------------
1873
-  (0.0ms) SELECT COUNT(*) FROM "testings"
1874
-  (0.0ms) SELECT COUNT(*) FROM "testings"
1875
-  (0.0ms) rollback transaction
1876
-  (0.0ms) begin transaction
1877
- ----------------------------------------------------------------------------------------------
1878
- BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
1879
- ----------------------------------------------------------------------------------------------
1880
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:39:23.464302','2016-05-03 16:39:23.464302','chartreuse'),('Howdy',20,'f','2016-05-03 16:39:23.464302','2016-05-03 16:39:23.464302','chartreuse')
1881
- Testing Load (0.1ms) SELECT "testings".* FROM "testings"
1882
-  (0.5ms) rollback transaction
1883
-  (0.0ms) begin transaction
1884
- ---------------------------------------------------------------------
1885
- BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
1886
- ---------------------------------------------------------------------
1887
-  (0.0ms) rollback transaction
1888
-  (0.1ms) begin transaction
1889
- -------------------------------------------------------------------------------
1890
- BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
1891
- -------------------------------------------------------------------------------
1892
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:39:23.468512','2016-05-03 16:39:23.468512','chartreuse')
1893
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
1894
-  (0.7ms) rollback transaction
1895
-  (0.1ms) begin transaction
1896
- ----------------------------------------------------------------
1897
- BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
1898
- ----------------------------------------------------------------
1899
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:39:23.472343','2016-05-03 16:39:23.472343',NULL)
1900
- Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
1901
-  (0.4ms) rollback transaction
1902
-  (0.1ms) begin transaction
1903
- ----------------------------------------------------------------------------------
1904
- BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
1905
- ----------------------------------------------------------------------------------
1906
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:39:23.474575','2016-05-03 16:39:23.474575','chartreuse')
1907
-  (0.0ms) SELECT COUNT(*) FROM "testings"
1908
- Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
1909
-  (0.4ms) rollback transaction
1910
-  (0.1ms) begin transaction
1911
- -------------------------------------------
1912
- BulkInsertWorkerTest: test_default_set_size
1913
- -------------------------------------------
1914
-  (0.1ms) rollback transaction
1915
-  (0.1ms) begin transaction
1916
- ---------------------------------------------------------------
1917
- BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
1918
- ---------------------------------------------------------------
1919
-  (0.0ms) SAVEPOINT active_record_1
1920
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1921
-  (0.0ms) rollback transaction
1922
-  (0.0ms) begin transaction
1923
- ---------------------------------------------------------------------
1924
- BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
1925
- ---------------------------------------------------------------------
1926
-  (0.1ms) SELECT COUNT(*) FROM "testings"
1927
-  (0.0ms) SAVEPOINT active_record_1
1928
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2016-05-03 16:39:23.481996','2016-05-03 16:39:23.481996','chartreuse')
1929
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1930
-  (0.0ms) SELECT COUNT(*) FROM "testings"
1931
-  (0.4ms) rollback transaction
1932
-  (0.1ms) begin transaction
1933
- -----------------------------------------------------------------------------
1934
- BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
1935
- -----------------------------------------------------------------------------
1936
-  (0.1ms) SELECT COUNT(*) FROM "testings"
1937
-  (0.0ms) SAVEPOINT active_record_1
1938
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2016-05-03 16:39:23.484623','chartreuse'),('Hey',20,'f','2016-05-03 16:39:23.484623','2016-05-03 16:39:23.484623','chartreuse')
1939
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1940
-  (0.0ms) SELECT COUNT(*) FROM "testings"
1941
-  (0.4ms) rollback transaction
1942
-  (0.1ms) begin transaction
1943
- -------------------------------------------------------------------
1944
- BulkInsertTest: test_bulk_insert_without_block_should_return_worker
1945
- -------------------------------------------------------------------
1946
-  (0.1ms) rollback transaction
1947
-  (0.0ms) begin transaction
1948
- ------------------------------------------------------------------------------
1949
- BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
1950
- ------------------------------------------------------------------------------
1951
-  (0.0ms) rollback transaction
1952
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1953
-  (0.1ms) begin transaction
1954
- ---------------------------------------------------------------------
1955
- BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
1956
- ---------------------------------------------------------------------
1957
-  (0.1ms) SELECT COUNT(*) FROM "testings"
1958
-  (0.0ms) SAVEPOINT active_record_1
1959
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2016-05-03 16:39:45.521788','2016-05-03 16:39:45.521788','chartreuse')
1960
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1961
-  (0.1ms) SELECT COUNT(*) FROM "testings"
1962
-  (2.1ms) rollback transaction
1963
-  (0.2ms) begin transaction
1964
- ------------------------------------------------------------------------------
1965
- BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
1966
- ------------------------------------------------------------------------------
1967
-  (0.1ms) rollback transaction
1968
-  (0.1ms) begin transaction
1969
- -------------------------------------------------------------------
1970
- BulkInsertTest: test_bulk_insert_without_block_should_return_worker
1971
- -------------------------------------------------------------------
1972
-  (0.1ms) rollback transaction
1973
-  (0.1ms) begin transaction
1974
- ---------------------------------------------------------------
1975
- BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
1976
- ---------------------------------------------------------------
1977
-  (0.1ms) SAVEPOINT active_record_1
1978
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1979
-  (0.1ms) rollback transaction
1980
-  (0.1ms) begin transaction
1981
- -----------------------------------------------------------------------------
1982
- BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
1983
- -----------------------------------------------------------------------------
1984
-  (0.1ms) SELECT COUNT(*) FROM "testings"
1985
-  (0.1ms) SAVEPOINT active_record_1
1986
-  (0.5ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2016-05-03 16:39:45.534044','chartreuse'),('Hey',20,'f','2016-05-03 16:39:45.534044','2016-05-03 16:39:45.534044','chartreuse')
1987
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1988
-  (0.1ms) SELECT COUNT(*) FROM "testings"
1989
-  (0.4ms) rollback transaction
1990
-  (0.1ms) begin transaction
1991
- -------------------------------------------------------------------------------
1992
- BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
1993
- -------------------------------------------------------------------------------
1994
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:39:45.538220','2016-05-03 16:39:45.538220','chartreuse')
1995
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
1996
-  (0.4ms) rollback transaction
1997
-  (0.1ms) begin transaction
1998
- ------------------------------------------------------
1999
- BulkInsertWorkerTest: test_empty_insert_is_not_pending
2000
- ------------------------------------------------------
2001
-  (0.1ms) rollback transaction
2002
-  (0.1ms) begin transaction
2003
- ----------------------------------------------------------------------------------
2004
- BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
2005
- ----------------------------------------------------------------------------------
2006
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:39:45.547445','2016-05-03 16:39:45.547445','chartreuse')
2007
-  (0.0ms) SELECT COUNT(*) FROM "testings"
2008
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
2009
-  (0.3ms) rollback transaction
2010
-  (0.1ms) begin transaction
2011
- --------------------------------------------------------
2012
- BulkInsertWorkerTest: test_save!_inserts_pending_records
2013
- --------------------------------------------------------
2014
-  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2016-05-03 16:39:45.550550','2016-05-03 16:39:45.550550','chartreuse'),('Hello',25,'t','2016-05-03 16:39:45.550550','2016-05-03 16:39:45.550550','chartreuse')
2015
- Testing Load (0.2ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Yo"], ["LIMIT", 1]]
2016
- Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Hello"], ["LIMIT", 1]]
2017
-  (0.4ms) rollback transaction
2018
-  (0.1ms) begin transaction
2019
- --------------------------------------------------------------------
2020
- BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
2021
- --------------------------------------------------------------------
2022
-  (0.0ms) rollback transaction
2023
-  (0.1ms) begin transaction
2024
- ---------------------------------------------------------
2025
- BulkInsertWorkerTest: test_save!_makes_insert_not_pending
2026
- ---------------------------------------------------------
2027
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:39:45.558298','2016-05-03 16:39:45.558298','chartreuse')
2028
-  (0.8ms) rollback transaction
2029
-  (0.1ms) begin transaction
2030
- -------------------------------------------------------------------
2031
- BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
2032
- -------------------------------------------------------------------
2033
-  (0.1ms) SELECT COUNT(*) FROM "testings"
2034
-  (0.0ms) SELECT COUNT(*) FROM "testings"
2035
-  (0.0ms) rollback transaction
2036
-  (0.1ms) begin transaction
2037
- ---------------------------------------------------------------------
2038
- BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
2039
- ---------------------------------------------------------------------
2040
-  (0.0ms) rollback transaction
2041
-  (0.1ms) begin transaction
2042
- ----------------------------------------------------------------
2043
- BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
2044
- ----------------------------------------------------------------
2045
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:39:45.563556','2016-05-03 16:39:45.563556',NULL)
2046
- Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
2047
-  (0.4ms) rollback transaction
2048
-  (0.1ms) begin transaction
2049
- ------------------------------------------------------------------------------
2050
- BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
2051
- ------------------------------------------------------------------------------
2052
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:39:45.565691','2016-05-03 16:39:45.565691','chartreuse')
2053
- Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
2054
-  (0.4ms) rollback transaction
2055
-  (0.1ms) begin transaction
2056
- ----------------------------------------------------------------------------------------------
2057
- BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
2058
- ----------------------------------------------------------------------------------------------
2059
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:39:45.568050','2016-05-03 16:39:45.568050','chartreuse'),('Howdy',20,'f','2016-05-03 16:39:45.568050','2016-05-03 16:39:45.568050','chartreuse')
2060
- Testing Load (0.1ms) SELECT "testings".* FROM "testings"
2061
-  (0.4ms) rollback transaction
2062
-  (0.1ms) begin transaction
2063
- ----------------------------------------------------------------
2064
- BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
2065
- ----------------------------------------------------------------
2066
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2016-05-03 16:39:45.570485','2016-05-03 16:39:45.570485','chartreuse')
2067
- Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
2068
-  (0.5ms) rollback transaction
2069
-  (0.1ms) begin transaction
2070
- ----------------------------------------------------------------------------
2071
- BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
2072
- ----------------------------------------------------------------------------
2073
-  (0.0ms) rollback transaction
2074
-  (0.1ms) begin transaction
2075
- -------------------------------------------
2076
- BulkInsertWorkerTest: test_default_set_size
2077
- -------------------------------------------
2078
-  (0.0ms) rollback transaction
2079
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2080
-  (0.1ms) begin transaction
2081
- ---------------------------------------------------------------------
2082
- BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
2083
- ---------------------------------------------------------------------
2084
-  (0.1ms) rollback transaction
2085
-  (0.1ms) begin transaction
2086
- -------------------------------------------------------------------
2087
- BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
2088
- -------------------------------------------------------------------
2089
-  (0.1ms) SELECT COUNT(*) FROM "testings"
2090
-  (0.0ms) SELECT COUNT(*) FROM "testings"
2091
-  (0.0ms) rollback transaction
2092
-  (0.0ms) begin transaction
2093
- ---------------------------------------------------------
2094
- BulkInsertWorkerTest: test_save!_makes_insert_not_pending
2095
- ---------------------------------------------------------
2096
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:42:31.670107','2016-05-03 16:42:31.670107','chartreuse')
2097
-  (0.4ms) rollback transaction
2098
-  (0.1ms) begin transaction
2099
- ------------------------------------------------------------------------------
2100
- BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
2101
- ------------------------------------------------------------------------------
2102
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:42:31.674139','2016-05-03 16:42:31.674139','chartreuse')
2103
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2104
-  (0.5ms) rollback transaction
2105
-  (0.1ms) begin transaction
2106
- ----------------------------------------------------------------
2107
- BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
2108
- ----------------------------------------------------------------
2109
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2016-05-03 16:42:31.681855','2016-05-03 16:42:31.681855','chartreuse')
2110
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2111
-  (0.5ms) rollback transaction
2112
-  (0.1ms) begin transaction
2113
- ------------------------------------------------------
2114
- BulkInsertWorkerTest: test_empty_insert_is_not_pending
2115
- ------------------------------------------------------
2116
-  (0.0ms) rollback transaction
2117
-  (0.0ms) begin transaction
2118
- -------------------------------------------
2119
- BulkInsertWorkerTest: test_default_set_size
2120
- -------------------------------------------
2121
-  (0.0ms) rollback transaction
2122
-  (0.1ms) begin transaction
2123
- ----------------------------------------------------------------
2124
- BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
2125
- ----------------------------------------------------------------
2126
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:42:31.685669','2016-05-03 16:42:31.685669',NULL)
2127
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2128
-  (0.4ms) rollback transaction
2129
-  (0.0ms) begin transaction
2130
- ----------------------------------------------------------------------------
2131
- BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
2132
- ----------------------------------------------------------------------------
2133
-  (0.0ms) rollback transaction
2134
-  (0.1ms) begin transaction
2135
- ----------------------------------------------------------------------------------------------
2136
- BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
2137
- ----------------------------------------------------------------------------------------------
2138
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:42:31.688225','2016-05-03 16:42:31.688225','chartreuse'),('Howdy',20,'f','2016-05-03 16:42:31.688225','2016-05-03 16:42:31.688225','chartreuse')
2139
- Testing Load (0.1ms) SELECT "testings".* FROM "testings"
2140
-  (0.4ms) rollback transaction
2141
-  (0.1ms) begin transaction
2142
- ----------------------------------------------------------------------------------
2143
- BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
2144
- ----------------------------------------------------------------------------------
2145
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:42:31.690240','2016-05-03 16:42:31.690240','chartreuse')
2146
-  (0.1ms) SELECT COUNT(*) FROM "testings"
2147
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2148
-  (0.4ms) rollback transaction
2149
-  (0.1ms) begin transaction
2150
- --------------------------------------------------------------------
2151
- BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
2152
- --------------------------------------------------------------------
2153
-  (0.0ms) rollback transaction
2154
-  (0.1ms) begin transaction
2155
- -------------------------------------------------------------------------------
2156
- BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
2157
- -------------------------------------------------------------------------------
2158
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:42:31.693189','2016-05-03 16:42:31.693189','chartreuse')
2159
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2160
-  (0.5ms) rollback transaction
2161
-  (0.1ms) begin transaction
2162
- --------------------------------------------------------
2163
- BulkInsertWorkerTest: test_save!_inserts_pending_records
2164
- --------------------------------------------------------
2165
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2016-05-03 16:42:31.695730','2016-05-03 16:42:31.695730','chartreuse'),('Hello',25,'t','2016-05-03 16:42:31.695730','2016-05-03 16:42:31.695730','chartreuse')
2166
- Testing Load (0.2ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
2167
- Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
2168
-  (0.4ms) rollback transaction
2169
-  (0.1ms) begin transaction
2170
- ------------------------------------------------------------------------------
2171
- BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
2172
- ------------------------------------------------------------------------------
2173
-  (0.1ms) rollback transaction
2174
-  (0.1ms) begin transaction
2175
- ---------------------------------------------------------------------
2176
- BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
2177
- ---------------------------------------------------------------------
2178
-  (0.1ms) SELECT COUNT(*) FROM "testings"
2179
-  (0.1ms) SAVEPOINT active_record_1
2180
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2016-05-03 16:42:31.706689','2016-05-03 16:42:31.706689','chartreuse')
2181
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2182
-  (0.1ms) SELECT COUNT(*) FROM "testings"
2183
-  (0.4ms) rollback transaction
2184
-  (0.0ms) begin transaction
2185
- -------------------------------------------------------------------
2186
- BulkInsertTest: test_bulk_insert_without_block_should_return_worker
2187
- -------------------------------------------------------------------
2188
-  (0.1ms) rollback transaction
2189
-  (0.0ms) begin transaction
2190
- -----------------------------------------------------------------------------
2191
- BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
2192
- -----------------------------------------------------------------------------
2193
-  (0.1ms) SELECT COUNT(*) FROM "testings"
2194
-  (0.0ms) SAVEPOINT active_record_1
2195
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2016-05-03 16:42:31.710916','chartreuse'),('Hey',20,'f','2016-05-03 16:42:31.710916','2016-05-03 16:42:31.710916','chartreuse')
2196
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2197
-  (0.0ms) SELECT COUNT(*) FROM "testings"
2198
-  (0.4ms) rollback transaction
2199
-  (0.1ms) begin transaction
2200
- ---------------------------------------------------------------
2201
- BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
2202
- ---------------------------------------------------------------
2203
-  (0.0ms) SAVEPOINT active_record_1
2204
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2205
-  (0.0ms) rollback transaction
2206
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2207
-  (0.2ms) begin transaction
2208
- ---------------------------------------------------------------------
2209
- BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
2210
- ---------------------------------------------------------------------
2211
-  (0.1ms) SELECT COUNT(*) FROM "testings"
2212
-  (0.1ms) SAVEPOINT active_record_1
2213
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2016-05-03 16:42:48.573051','2016-05-03 16:42:48.573051','chartreuse')
2214
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2215
-  (0.1ms) SELECT COUNT(*) FROM "testings"
2216
-  (0.5ms) rollback transaction
2217
-  (0.1ms) begin transaction
2218
- -------------------------------------------------------------------
2219
- BulkInsertTest: test_bulk_insert_without_block_should_return_worker
2220
- -------------------------------------------------------------------
2221
-  (0.0ms) rollback transaction
2222
-  (0.1ms) begin transaction
2223
- -----------------------------------------------------------------------------
2224
- BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
2225
- -----------------------------------------------------------------------------
2226
-  (0.1ms) SELECT COUNT(*) FROM "testings"
2227
-  (0.0ms) SAVEPOINT active_record_1
2228
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2016-05-03 16:42:48.577883','chartreuse'),('Hey',20,'f','2016-05-03 16:42:48.577883','2016-05-03 16:42:48.577883','chartreuse')
2229
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2230
-  (0.0ms) SELECT COUNT(*) FROM "testings"
2231
-  (0.4ms) rollback transaction
2232
-  (0.1ms) begin transaction
2233
- ---------------------------------------------------------------
2234
- BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
2235
- ---------------------------------------------------------------
2236
-  (0.0ms) SAVEPOINT active_record_1
2237
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2238
-  (0.0ms) rollback transaction
2239
-  (0.1ms) begin transaction
2240
- ------------------------------------------------------------------------------
2241
- BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
2242
- ------------------------------------------------------------------------------
2243
-  (0.0ms) rollback transaction
2244
-  (0.0ms) begin transaction
2245
- ----------------------------------------------------------------
2246
- BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
2247
- ----------------------------------------------------------------
2248
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2016-05-03 16:42:48.581825','2016-05-03 16:42:48.581825','chartreuse')
2249
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2250
-  (0.5ms) rollback transaction
2251
-  (0.1ms) begin transaction
2252
- ----------------------------------------------------------------------------------
2253
- BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
2254
- ----------------------------------------------------------------------------------
2255
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:42:48.589619','2016-05-03 16:42:48.589619','chartreuse')
2256
-  (0.1ms) SELECT COUNT(*) FROM "testings"
2257
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2258
-  (0.4ms) rollback transaction
2259
-  (0.1ms) begin transaction
2260
- -------------------------------------------
2261
- BulkInsertWorkerTest: test_default_set_size
2262
- -------------------------------------------
2263
-  (0.0ms) rollback transaction
2264
-  (0.1ms) begin transaction
2265
- ----------------------------------------------------------------
2266
- BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
2267
- ----------------------------------------------------------------
2268
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:42:48.592636','2016-05-03 16:42:48.592636',NULL)
2269
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2270
-  (0.4ms) rollback transaction
2271
-  (0.1ms) begin transaction
2272
- ---------------------------------------------------------------------
2273
- BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
2274
- ---------------------------------------------------------------------
2275
-  (0.0ms) rollback transaction
2276
-  (0.1ms) begin transaction
2277
- ------------------------------------------------------
2278
- BulkInsertWorkerTest: test_empty_insert_is_not_pending
2279
- ------------------------------------------------------
2280
-  (0.0ms) rollback transaction
2281
-  (0.1ms) begin transaction
2282
- -------------------------------------------------------------------------------
2283
- BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
2284
- -------------------------------------------------------------------------------
2285
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:42:48.595770','2016-05-03 16:42:48.595770','chartreuse')
2286
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2287
-  (0.4ms) rollback transaction
2288
-  (0.1ms) begin transaction
2289
- ------------------------------------------------------------------------------
2290
- BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
2291
- ------------------------------------------------------------------------------
2292
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:42:48.597749','2016-05-03 16:42:48.597749','chartreuse')
2293
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2294
-  (0.5ms) rollback transaction
2295
-  (0.1ms) begin transaction
2296
- --------------------------------------------------------
2297
- BulkInsertWorkerTest: test_save!_inserts_pending_records
2298
- --------------------------------------------------------
2299
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2016-05-03 16:42:48.599866','2016-05-03 16:42:48.599866','chartreuse'),('Hello',25,'t','2016-05-03 16:42:48.599866','2016-05-03 16:42:48.599866','chartreuse')
2300
- Testing Load (0.2ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
2301
- Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
2302
-  (0.4ms) rollback transaction
2303
-  (0.0ms) begin transaction
2304
- ----------------------------------------------------------------------------------------------
2305
- BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
2306
- ----------------------------------------------------------------------------------------------
2307
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:42:48.607268','2016-05-03 16:42:48.607268','chartreuse'),('Howdy',20,'f','2016-05-03 16:42:48.607268','2016-05-03 16:42:48.607268','chartreuse')
2308
- Testing Load (0.1ms) SELECT "testings".* FROM "testings"
2309
-  (0.4ms) rollback transaction
2310
-  (0.1ms) begin transaction
2311
- --------------------------------------------------------------------
2312
- BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
2313
- --------------------------------------------------------------------
2314
-  (0.1ms) rollback transaction
2315
-  (0.1ms) begin transaction
2316
- ----------------------------------------------------------------------------
2317
- BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
2318
- ----------------------------------------------------------------------------
2319
-  (0.1ms) rollback transaction
2320
-  (0.1ms) begin transaction
2321
- -------------------------------------------------------------------
2322
- BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
2323
- -------------------------------------------------------------------
2324
-  (0.1ms) SELECT COUNT(*) FROM "testings"
2325
-  (0.1ms) SELECT COUNT(*) FROM "testings"
2326
-  (0.1ms) rollback transaction
2327
-  (0.1ms) begin transaction
2328
- ---------------------------------------------------------
2329
- BulkInsertWorkerTest: test_save!_makes_insert_not_pending
2330
- ---------------------------------------------------------
2331
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:42:48.614012','2016-05-03 16:42:48.614012','chartreuse')
2332
-  (0.4ms) rollback transaction
2333
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2334
-  (0.2ms) begin transaction
2335
- -------------------------------------------
2336
- BulkInsertWorkerTest: test_default_set_size
2337
- -------------------------------------------
2338
-  (0.1ms) rollback transaction
2339
-  (0.1ms) begin transaction
2340
- ----------------------------------------------------------------
2341
- BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
2342
- ----------------------------------------------------------------
2343
-  (0.5ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:42:54.270837','2016-05-03 16:42:54.270837',NULL)
2344
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2345
-  (2.0ms) rollback transaction
2346
-  (0.1ms) begin transaction
2347
- -------------------------------------------------------------------------------
2348
- BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
2349
- -------------------------------------------------------------------------------
2350
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:42:54.283206','2016-05-03 16:42:54.283206','chartreuse')
2351
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2352
-  (0.4ms) rollback transaction
2353
-  (0.1ms) begin transaction
2354
- ----------------------------------------------------------------------------------
2355
- BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
2356
- ----------------------------------------------------------------------------------
2357
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:42:54.285488','2016-05-03 16:42:54.285488','chartreuse')
2358
-  (0.1ms) SELECT COUNT(*) FROM "testings"
2359
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2360
-  (0.4ms) rollback transaction
2361
-  (0.1ms) begin transaction
2362
- ------------------------------------------------------
2363
- BulkInsertWorkerTest: test_empty_insert_is_not_pending
2364
- ------------------------------------------------------
2365
-  (0.0ms) rollback transaction
2366
-  (0.1ms) begin transaction
2367
- ---------------------------------------------------------------------
2368
- BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
2369
- ---------------------------------------------------------------------
2370
-  (0.0ms) rollback transaction
2371
-  (0.1ms) begin transaction
2372
- ------------------------------------------------------------------------------
2373
- BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
2374
- ------------------------------------------------------------------------------
2375
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:42:54.289341','2016-05-03 16:42:54.289341','chartreuse')
2376
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2377
-  (0.4ms) rollback transaction
2378
-  (0.1ms) begin transaction
2379
- ----------------------------------------------------------------------------------------------
2380
- BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
2381
- ----------------------------------------------------------------------------------------------
2382
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:42:54.291041','2016-05-03 16:42:54.291041','chartreuse'),('Howdy',20,'f','2016-05-03 16:42:54.291041','2016-05-03 16:42:54.291041','chartreuse')
2383
- Testing Load (0.1ms) SELECT "testings".* FROM "testings"
2384
-  (0.4ms) rollback transaction
2385
-  (0.0ms) begin transaction
2386
- ----------------------------------------------------------------
2387
- BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
2388
- ----------------------------------------------------------------
2389
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2016-05-03 16:42:54.292897','2016-05-03 16:42:54.292897','chartreuse')
2390
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2391
-  (0.4ms) rollback transaction
2392
-  (0.1ms) begin transaction
2393
- --------------------------------------------------------------------
2394
- BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
2395
- --------------------------------------------------------------------
2396
-  (0.1ms) rollback transaction
2397
-  (0.1ms) begin transaction
2398
- --------------------------------------------------------
2399
- BulkInsertWorkerTest: test_save!_inserts_pending_records
2400
- --------------------------------------------------------
2401
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2016-05-03 16:42:54.295852','2016-05-03 16:42:54.295852','chartreuse'),('Hello',25,'t','2016-05-03 16:42:54.295852','2016-05-03 16:42:54.295852','chartreuse')
2402
- Testing Load (0.3ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
2403
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
2404
-  (0.5ms) rollback transaction
2405
-  (0.1ms) begin transaction
2406
- ----------------------------------------------------------------------------
2407
- BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
2408
- ----------------------------------------------------------------------------
2409
-  (0.0ms) rollback transaction
2410
-  (0.1ms) begin transaction
2411
- ---------------------------------------------------------
2412
- BulkInsertWorkerTest: test_save!_makes_insert_not_pending
2413
- ---------------------------------------------------------
2414
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:42:54.303949','2016-05-03 16:42:54.303949','chartreuse')
2415
-  (0.7ms) rollback transaction
2416
-  (0.0ms) begin transaction
2417
- -------------------------------------------------------------------
2418
- BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
2419
- -------------------------------------------------------------------
2420
-  (0.1ms) SELECT COUNT(*) FROM "testings"
2421
-  (0.0ms) SELECT COUNT(*) FROM "testings"
2422
-  (0.0ms) rollback transaction
2423
-  (0.0ms) begin transaction
2424
- ---------------------------------------------------------------------
2425
- BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
2426
- ---------------------------------------------------------------------
2427
-  (0.2ms) SELECT COUNT(*) FROM "testings"
2428
-  (0.0ms) SAVEPOINT active_record_1
2429
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2016-05-03 16:42:54.309559','2016-05-03 16:42:54.309559','chartreuse')
2430
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2431
-  (0.0ms) SELECT COUNT(*) FROM "testings"
2432
-  (0.4ms) rollback transaction
2433
-  (0.1ms) begin transaction
2434
- ------------------------------------------------------------------------------
2435
- BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
2436
- ------------------------------------------------------------------------------
2437
-  (0.0ms) rollback transaction
2438
-  (0.0ms) begin transaction
2439
- -----------------------------------------------------------------------------
2440
- BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
2441
- -----------------------------------------------------------------------------
2442
-  (0.1ms) SELECT COUNT(*) FROM "testings"
2443
-  (0.0ms) SAVEPOINT active_record_1
2444
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2016-05-03 16:42:54.312368','chartreuse'),('Hey',20,'f','2016-05-03 16:42:54.312368','2016-05-03 16:42:54.312368','chartreuse')
2445
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2446
-  (0.0ms) SELECT COUNT(*) FROM "testings"
2447
-  (0.4ms) rollback transaction
2448
-  (0.1ms) begin transaction
2449
- ---------------------------------------------------------------
2450
- BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
2451
- ---------------------------------------------------------------
2452
-  (0.0ms) SAVEPOINT active_record_1
2453
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2454
-  (0.0ms) rollback transaction
2455
-  (0.1ms) begin transaction
2456
- -------------------------------------------------------------------
2457
- BulkInsertTest: test_bulk_insert_without_block_should_return_worker
2458
- -------------------------------------------------------------------
2459
-  (0.0ms) rollback transaction
2460
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2461
-  (0.2ms) begin transaction
2462
- --------------------------------------------------------------------
2463
- BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
2464
- --------------------------------------------------------------------
2465
-  (0.1ms) rollback transaction
2466
-  (0.1ms) begin transaction
2467
- --------------------------------------------------------
2468
- BulkInsertWorkerTest: test_save!_inserts_pending_records
2469
- --------------------------------------------------------
2470
-  (0.6ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2016-05-03 16:43:24.824960','2016-05-03 16:43:24.824960','chartreuse'),('Hello',25,'t','2016-05-03 16:43:24.824960','2016-05-03 16:43:24.824960','chartreuse')
2471
- Testing Load (0.2ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Yo"], ["LIMIT", 1]]
2472
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Hello"], ["LIMIT", 1]]
2473
-  (0.4ms) rollback transaction
2474
-  (0.1ms) begin transaction
2475
- ------------------------------------------------------------------------------
2476
- BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
2477
- ------------------------------------------------------------------------------
2478
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:43:24.847866','2016-05-03 16:43:24.847866','chartreuse')
2479
- Testing Load (0.2ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
2480
-  (0.3ms) rollback transaction
2481
-  (0.0ms) begin transaction
2482
- -------------------------------------------------------------------------------
2483
- BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
2484
- -------------------------------------------------------------------------------
2485
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:43:24.851020','2016-05-03 16:43:24.851020','chartreuse')
2486
- Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
2487
-  (0.4ms) rollback transaction
2488
-  (0.1ms) begin transaction
2489
- -------------------------------------------------------------------
2490
- BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
2491
- -------------------------------------------------------------------
2492
-  (0.1ms) SELECT COUNT(*) FROM "testings"
2493
-  (0.0ms) SELECT COUNT(*) FROM "testings"
2494
-  (0.1ms) rollback transaction
2495
-  (0.1ms) begin transaction
2496
- ----------------------------------------------------------------------------------------------
2497
- BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
2498
- ----------------------------------------------------------------------------------------------
2499
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:43:24.857822','2016-05-03 16:43:24.857822','chartreuse'),('Howdy',20,'f','2016-05-03 16:43:24.857822','2016-05-03 16:43:24.857822','chartreuse')
2500
- Testing Load (0.1ms) SELECT "testings".* FROM "testings"
2501
-  (0.4ms) rollback transaction
2502
-  (0.1ms) begin transaction
2503
- ----------------------------------------------------------------------------------
2504
- BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
2505
- ----------------------------------------------------------------------------------
2506
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:43:24.860730','2016-05-03 16:43:24.860730','chartreuse')
2507
-  (0.1ms) SELECT COUNT(*) FROM "testings"
2508
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
2509
-  (0.4ms) rollback transaction
2510
-  (0.0ms) begin transaction
2511
- -------------------------------------------
2512
- BulkInsertWorkerTest: test_default_set_size
2513
- -------------------------------------------
2514
-  (0.0ms) rollback transaction
2515
-  (0.1ms) begin transaction
2516
- ----------------------------------------------------------------------------
2517
- BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
2518
- ----------------------------------------------------------------------------
2519
-  (0.0ms) rollback transaction
2520
-  (0.1ms) begin transaction
2521
- ----------------------------------------------------------------
2522
- BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
2523
- ----------------------------------------------------------------
2524
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:43:24.866462','2016-05-03 16:43:24.866462',NULL)
2525
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
2526
-  (0.6ms) rollback transaction
2527
-  (0.1ms) begin transaction
2528
- ---------------------------------------------------------------------
2529
- BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
2530
- ---------------------------------------------------------------------
2531
-  (0.0ms) rollback transaction
2532
-  (0.0ms) begin transaction
2533
- ------------------------------------------------------
2534
- BulkInsertWorkerTest: test_empty_insert_is_not_pending
2535
- ------------------------------------------------------
2536
-  (0.1ms) rollback transaction
2537
-  (0.1ms) begin transaction
2538
- ---------------------------------------------------------
2539
- BulkInsertWorkerTest: test_save!_makes_insert_not_pending
2540
- ---------------------------------------------------------
2541
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:43:24.872340','2016-05-03 16:43:24.872340','chartreuse')
2542
-  (0.4ms) rollback transaction
2543
-  (0.1ms) begin transaction
2544
- ----------------------------------------------------------------
2545
- BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
2546
- ----------------------------------------------------------------
2547
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2016-05-03 16:43:24.874056','2016-05-03 16:43:24.874056','chartreuse')
2548
- Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
2549
-  (0.4ms) rollback transaction
2550
-  (0.1ms) begin transaction
2551
- ---------------------------------------------------------------------
2552
- BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
2553
- ---------------------------------------------------------------------
2554
-  (0.1ms) SELECT COUNT(*) FROM "testings"
2555
-  (0.0ms) SAVEPOINT active_record_1
2556
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2016-05-03 16:43:24.879683','2016-05-03 16:43:24.879683','chartreuse')
2557
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2558
-  (0.0ms) SELECT COUNT(*) FROM "testings"
2559
-  (0.4ms) rollback transaction
2560
-  (0.1ms) begin transaction
2561
- -------------------------------------------------------------------
2562
- BulkInsertTest: test_bulk_insert_without_block_should_return_worker
2563
- -------------------------------------------------------------------
2564
-  (0.1ms) rollback transaction
2565
-  (0.1ms) begin transaction
2566
- -----------------------------------------------------------------------------
2567
- BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
2568
- -----------------------------------------------------------------------------
2569
-  (0.1ms) SELECT COUNT(*) FROM "testings"
2570
-  (0.0ms) SAVEPOINT active_record_1
2571
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2016-05-03 16:43:24.883856','chartreuse'),('Hey',20,'f','2016-05-03 16:43:24.883856','2016-05-03 16:43:24.883856','chartreuse')
2572
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2573
-  (0.0ms) SELECT COUNT(*) FROM "testings"
2574
-  (0.4ms) rollback transaction
2575
-  (0.1ms) begin transaction
2576
- ---------------------------------------------------------------
2577
- BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
2578
- ---------------------------------------------------------------
2579
-  (0.0ms) SAVEPOINT active_record_1
2580
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2581
-  (0.0ms) rollback transaction
2582
-  (0.0ms) begin transaction
2583
- ------------------------------------------------------------------------------
2584
- BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
2585
- ------------------------------------------------------------------------------
2586
-  (0.0ms) rollback transaction
2587
- ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
2588
-  (0.1ms) begin transaction
2589
- ------------------------------------------------------
2590
- BulkInsertWorkerTest: test_empty_insert_is_not_pending
2591
- ------------------------------------------------------
2592
-  (0.0ms) rollback transaction
2593
-  (0.0ms) begin transaction
2594
- ----------------------------------------------------------------------------------
2595
- BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
2596
- ----------------------------------------------------------------------------------
2597
-  (0.7ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-08-11 04:56:37.094628','2016-08-11 04:56:37.094628','chartreuse')
2598
-  (0.0ms) SELECT COUNT(*) FROM "testings"
2599
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2600
-  (0.3ms) rollback transaction
2601
-  (0.0ms) begin transaction
2602
- ----------------------------------------------------------------------------------------------
2603
- BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
2604
- ----------------------------------------------------------------------------------------------
2605
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-08-11 04:56:37.105237','2016-08-11 04:56:37.105237','chartreuse'),('Howdy',20,'f','2016-08-11 04:56:37.105237','2016-08-11 04:56:37.105237','chartreuse')
2606
- Testing Load (0.1ms) SELECT "testings".* FROM "testings"
2607
-  (0.3ms) rollback transaction
2608
-  (0.0ms) begin transaction
2609
- --------------------------------------------------------------------
2610
- BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
2611
- --------------------------------------------------------------------
2612
-  (0.0ms) rollback transaction
2613
-  (0.0ms) begin transaction
2614
- -------------------------------------------------------------------------------
2615
- BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
2616
- -------------------------------------------------------------------------------
2617
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-08-11 04:56:37.107714','2016-08-11 04:56:37.107714','chartreuse')
2618
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2619
-  (0.4ms) rollback transaction
2620
-  (0.1ms) begin transaction
2621
- ----------------------------------------------------------------
2622
- BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
2623
- ----------------------------------------------------------------
2624
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2016-08-11 04:56:37.110279','2016-08-11 04:56:37.110279','chartreuse')
2625
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2626
-  (0.3ms) rollback transaction
2627
-  (0.0ms) begin transaction
2628
- ---------------------------------------------------------
2629
- BulkInsertWorkerTest: test_save!_makes_insert_not_pending
2630
- ---------------------------------------------------------
2631
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-08-11 04:56:37.112128','2016-08-11 04:56:37.112128','chartreuse')
2632
-  (0.3ms) rollback transaction
2633
-  (0.0ms) begin transaction
2634
- ---------------------------------------------------------------------
2635
- BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
2636
- ---------------------------------------------------------------------
2637
-  (0.0ms) rollback transaction
2638
-  (0.0ms) begin transaction
2639
- ----------------------------------------------------------------------------
2640
- BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
2641
- ----------------------------------------------------------------------------
2642
-  (0.0ms) rollback transaction
2643
-  (0.1ms) begin transaction
2644
- --------------------------------------------------------
2645
- BulkInsertWorkerTest: test_save!_inserts_pending_records
2646
- --------------------------------------------------------
2647
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2016-08-11 04:56:37.114434','2016-08-11 04:56:37.114434','chartreuse'),('Hello',25,'t','2016-08-11 04:56:37.114434','2016-08-11 04:56:37.114434','chartreuse')
2648
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
2649
- Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
2650
-  (0.3ms) rollback transaction
2651
-  (0.0ms) begin transaction
2652
- ----------------------------------------------------------------
2653
- BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
2654
- ----------------------------------------------------------------
2655
-  (0.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-08-11 04:56:37.119013','2016-08-11 04:56:37.119013',NULL)
2656
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2657
-  (0.2ms) rollback transaction
2658
-  (0.0ms) begin transaction
2659
- ------------------------------------------------------------------------------
2660
- BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
2661
- ------------------------------------------------------------------------------
2662
-  (0.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-08-11 04:56:37.120512','2016-08-11 04:56:37.120512','chartreuse')
2663
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2664
-  (0.3ms) rollback transaction
2665
-  (0.0ms) begin transaction
2666
- -------------------------------------------
2667
- BulkInsertWorkerTest: test_default_set_size
2668
- -------------------------------------------
2669
-  (0.0ms) rollback transaction
2670
-  (0.0ms) begin transaction
2671
- -------------------------------------------------------------------
2672
- BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
2673
- -------------------------------------------------------------------
2674
-  (0.1ms) SELECT COUNT(*) FROM "testings"
2675
-  (0.0ms) SELECT COUNT(*) FROM "testings"
2676
-  (0.0ms) rollback transaction
2677
-  (0.1ms) begin transaction
2678
- -----------------------------------------------------------------------------
2679
- BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
2680
- -----------------------------------------------------------------------------
2681
-  (0.1ms) SELECT COUNT(*) FROM "testings"
2682
-  (0.1ms) SAVEPOINT active_record_1
2683
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2016-08-11 04:56:37.124852','chartreuse'),('Hey',20,'f','2016-08-11 04:56:37.124852','2016-08-11 04:56:37.124852','chartreuse')
2684
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2685
-  (0.0ms) SELECT COUNT(*) FROM "testings"
2686
-  (0.2ms) rollback transaction
2687
-  (0.1ms) begin transaction
2688
- ---------------------------------------------------------------------
2689
- BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
2690
- ---------------------------------------------------------------------
2691
-  (0.1ms) SELECT COUNT(*) FROM "testings"
2692
-  (0.0ms) SAVEPOINT active_record_1
2693
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2016-08-11 04:56:37.129756','2016-08-11 04:56:37.129756','chartreuse')
2694
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2695
-  (0.1ms) SELECT COUNT(*) FROM "testings"
2696
-  (0.3ms) rollback transaction
2697
-  (0.0ms) begin transaction
2698
- ---------------------------------------------------------------
2699
- BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
2700
- ---------------------------------------------------------------
2701
-  (0.0ms) SAVEPOINT active_record_1
2702
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2703
-  (0.0ms) rollback transaction
2704
-  (0.0ms) begin transaction
2705
- -------------------------------------------------------------------
2706
- BulkInsertTest: test_bulk_insert_without_block_should_return_worker
2707
- -------------------------------------------------------------------
2708
-  (0.0ms) rollback transaction
2709
-  (0.0ms) begin transaction
2710
- ------------------------------------------------------------------------------
2711
- BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
2712
- ------------------------------------------------------------------------------
2713
-  (0.0ms) rollback transaction
2714
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2715
-  (0.1ms) begin transaction
2716
- -------------------------------------------------------------------
2717
- BulkInsertTest: test_bulk_insert_without_block_should_return_worker
2718
- -------------------------------------------------------------------
2719
-  (0.0ms) rollback transaction
2720
-  (0.0ms) begin transaction
2721
- ------------------------------------------------------------------------------
2722
- BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
2723
- ------------------------------------------------------------------------------
2724
-  (0.0ms) rollback transaction
2725
-  (0.1ms) begin transaction
2726
- ---------------------------------------------------------------
2727
- BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
2728
- ---------------------------------------------------------------
2729
-  (0.0ms) SAVEPOINT active_record_1
2730
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2731
-  (0.0ms) rollback transaction
2732
-  (0.1ms) begin transaction
2733
- -----------------------------------------------------------------------------
2734
- BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
2735
- -----------------------------------------------------------------------------
2736
-  (0.1ms) SELECT COUNT(*) FROM "testings"
2737
-  (0.0ms) SAVEPOINT active_record_1
2738
-  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2016-08-11 04:56:56.997024','chartreuse'),('Hey',20,'f','2016-08-11 04:56:56.997024','2016-08-11 04:56:56.997024','chartreuse')
2739
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2740
-  (0.0ms) SELECT COUNT(*) FROM "testings"
2741
-  (2.1ms) rollback transaction
2742
-  (0.1ms) begin transaction
2743
- ---------------------------------------------------------------------
2744
- BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
2745
- ---------------------------------------------------------------------
2746
-  (0.1ms) SELECT COUNT(*) FROM "testings"
2747
-  (0.0ms) SAVEPOINT active_record_1
2748
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2016-08-11 04:56:57.004318','2016-08-11 04:56:57.004318','chartreuse')
2749
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2750
-  (0.0ms) SELECT COUNT(*) FROM "testings"
2751
-  (0.3ms) rollback transaction
2752
-  (0.0ms) begin transaction
2753
- ----------------------------------------------------------------------------------
2754
- BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
2755
- ----------------------------------------------------------------------------------
2756
-  (0.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-08-11 04:56:57.006279','2016-08-11 04:56:57.006279','chartreuse')
2757
-  (0.0ms) SELECT COUNT(*) FROM "testings"
2758
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2759
-  (0.3ms) rollback transaction
2760
-  (0.0ms) begin transaction
2761
- ----------------------------------------------------------------------------
2762
- BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
2763
- ----------------------------------------------------------------------------
2764
-  (0.0ms) rollback transaction
2765
-  (0.0ms) begin transaction
2766
- ----------------------------------------------------------------
2767
- BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
2768
- ----------------------------------------------------------------
2769
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-08-11 04:56:57.012557','2016-08-11 04:56:57.012557',NULL)
2770
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2771
-  (0.3ms) rollback transaction
2772
-  (0.0ms) begin transaction
2773
- --------------------------------------------------------
2774
- BulkInsertWorkerTest: test_save!_inserts_pending_records
2775
- --------------------------------------------------------
2776
-  (0.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2016-08-11 04:56:57.013917','2016-08-11 04:56:57.013917','chartreuse'),('Hello',25,'t','2016-08-11 04:56:57.013917','2016-08-11 04:56:57.013917','chartreuse')
2777
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
2778
- Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
2779
-  (0.2ms) rollback transaction
2780
-  (0.1ms) begin transaction
2781
- ----------------------------------------------------------------------------------------------
2782
- BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
2783
- ----------------------------------------------------------------------------------------------
2784
-  (0.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-08-11 04:56:57.017736','2016-08-11 04:56:57.017736','chartreuse'),('Howdy',20,'f','2016-08-11 04:56:57.017736','2016-08-11 04:56:57.017736','chartreuse')
2785
- Testing Load (0.0ms) SELECT "testings".* FROM "testings"
2786
-  (0.2ms) rollback transaction
2787
-  (0.0ms) begin transaction
2788
- -------------------------------------------------------------------------------
2789
- BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
2790
- -------------------------------------------------------------------------------
2791
-  (0.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-08-11 04:56:57.019077','2016-08-11 04:56:57.019077','chartreuse')
2792
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2793
-  (0.2ms) rollback transaction
2794
-  (0.0ms) begin transaction
2795
- ---------------------------------------------------------
2796
- BulkInsertWorkerTest: test_save!_makes_insert_not_pending
2797
- ---------------------------------------------------------
2798
-  (0.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-08-11 04:56:57.020272','2016-08-11 04:56:57.020272','chartreuse')
2799
-  (0.2ms) rollback transaction
2800
-  (0.0ms) begin transaction
2801
- -------------------------------------------------------------------
2802
- BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
2803
- -------------------------------------------------------------------
2804
-  (0.0ms) SELECT COUNT(*) FROM "testings"
2805
-  (0.0ms) SELECT COUNT(*) FROM "testings"
2806
-  (0.0ms) rollback transaction
2807
-  (0.0ms) begin transaction
2808
- ------------------------------------------------------------------------------
2809
- BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
2810
- ------------------------------------------------------------------------------
2811
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-08-11 04:56:57.022158','2016-08-11 04:56:57.022158','chartreuse')
2812
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2813
-  (0.2ms) rollback transaction
2814
-  (0.0ms) begin transaction
2815
- --------------------------------------------------------------------
2816
- BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
2817
- --------------------------------------------------------------------
2818
-  (0.1ms) rollback transaction
2819
-  (0.0ms) begin transaction
2820
- ----------------------------------------------------------------
2821
- BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
2822
- ----------------------------------------------------------------
2823
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2016-08-11 04:56:57.024310','2016-08-11 04:56:57.024310','chartreuse')
2824
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2825
-  (0.2ms) rollback transaction
2826
-  (0.0ms) begin transaction
2827
- ---------------------------------------------------------------------
2828
- BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
2829
- ---------------------------------------------------------------------
2830
-  (0.1ms) rollback transaction
2831
-  (0.0ms) begin transaction
2832
- ------------------------------------------------------
2833
- BulkInsertWorkerTest: test_empty_insert_is_not_pending
2834
- ------------------------------------------------------
2835
-  (0.0ms) rollback transaction
2836
-  (0.0ms) begin transaction
2837
- -------------------------------------------
2838
- BulkInsertWorkerTest: test_default_set_size
2839
- -------------------------------------------
2840
-  (0.0ms) rollback transaction
2841
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2842
-  (0.1ms) begin transaction
2843
- ---------------------------------------------------------------------
2844
- BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
2845
- ---------------------------------------------------------------------
2846
-  (0.1ms) SELECT COUNT(*) FROM "testings"
2847
-  (0.0ms) SAVEPOINT active_record_1
2848
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2016-08-11 04:58:10.649237','2016-08-11 04:58:10.649237','chartreuse')
2849
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2850
-  (0.1ms) SELECT COUNT(*) FROM "testings"
2851
-  (2.3ms) rollback transaction
2852
-  (0.1ms) begin transaction
2853
- ------------------------------------------------------------------------------
2854
- BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
2855
- ------------------------------------------------------------------------------
2856
-  (0.1ms) rollback transaction
2857
-  (0.1ms) begin transaction
2858
- -----------------------------------------------------------------------------
2859
- BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
2860
- -----------------------------------------------------------------------------
2861
-  (0.1ms) SELECT COUNT(*) FROM "testings"
2862
-  (0.0ms) SAVEPOINT active_record_1
2863
-  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2016-08-11 04:58:10.657599','chartreuse'),('Hey',20,'f','2016-08-11 04:58:10.657599','2016-08-11 04:58:10.657599','chartreuse')
2864
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2865
-  (0.1ms) SELECT COUNT(*) FROM "testings"
2866
-  (0.3ms) rollback transaction
2867
-  (0.0ms) begin transaction
2868
- -------------------------------------------------------------------
2869
- BulkInsertTest: test_bulk_insert_without_block_should_return_worker
2870
- -------------------------------------------------------------------
2871
-  (0.0ms) rollback transaction
2872
-  (0.0ms) begin transaction
2873
- ---------------------------------------------------------------
2874
- BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
2875
- ---------------------------------------------------------------
2876
-  (0.0ms) SAVEPOINT active_record_1
2877
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2878
-  (0.0ms) rollback transaction
2879
-  (0.0ms) begin transaction
2880
- -------------------------------------------------------------------
2881
- BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
2882
- -------------------------------------------------------------------
2883
-  (0.0ms) SELECT COUNT(*) FROM "testings"
2884
-  (0.1ms) SELECT COUNT(*) FROM "testings"
2885
-  (0.0ms) rollback transaction
2886
-  (0.0ms) begin transaction
2887
- -------------------------------------------------------------------------------
2888
- BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
2889
- -------------------------------------------------------------------------------
2890
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-08-11 04:58:10.664128','2016-08-11 04:58:10.664128','chartreuse')
2891
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2892
-  (0.4ms) rollback transaction
2893
-  (0.1ms) begin transaction
2894
- -------------------------------------------
2895
- BulkInsertWorkerTest: test_default_set_size
2896
- -------------------------------------------
2897
-  (0.0ms) rollback transaction
2898
-  (0.0ms) begin transaction
2899
- ----------------------------------------------------------------------------------------------
2900
- BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
2901
- ----------------------------------------------------------------------------------------------
2902
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-08-11 04:58:10.671005','2016-08-11 04:58:10.671005','chartreuse'),('Howdy',20,'f','2016-08-11 04:58:10.671005','2016-08-11 04:58:10.671005','chartreuse')
2903
- Testing Load (0.1ms) SELECT "testings".* FROM "testings"
2904
-  (0.3ms) rollback transaction
2905
-  (0.0ms) begin transaction
2906
- --------------------------------------------------------
2907
- BulkInsertWorkerTest: test_save!_inserts_pending_records
2908
- --------------------------------------------------------
2909
-  (0.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2016-08-11 04:58:10.672392','2016-08-11 04:58:10.672392','chartreuse'),('Hello',25,'t','2016-08-11 04:58:10.672392','2016-08-11 04:58:10.672392','chartreuse')
2910
- Testing Load (0.2ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
2911
- Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
2912
-  (0.3ms) rollback transaction
2913
-  (0.0ms) begin transaction
2914
- ---------------------------------------------------------------------
2915
- BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
2916
- ---------------------------------------------------------------------
2917
-  (0.0ms) rollback transaction
2918
-  (0.0ms) begin transaction
2919
- ----------------------------------------------------------------------------------
2920
- BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
2921
- ----------------------------------------------------------------------------------
2922
-  (0.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-08-11 04:58:10.677288','2016-08-11 04:58:10.677288','chartreuse')
2923
-  (0.0ms) SELECT COUNT(*) FROM "testings"
2924
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2925
-  (0.3ms) rollback transaction
2926
-  (0.0ms) begin transaction
2927
- ------------------------------------------------------------------------------
2928
- BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
2929
- ------------------------------------------------------------------------------
2930
-  (0.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-08-11 04:58:10.678998','2016-08-11 04:58:10.678998','chartreuse')
2931
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2932
-  (0.2ms) rollback transaction
2933
-  (0.0ms) begin transaction
2934
- ----------------------------------------------------------------------------
2935
- BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
2936
- ----------------------------------------------------------------------------
2937
-  (0.0ms) rollback transaction
2938
-  (0.0ms) begin transaction
2939
- ---------------------------------------------------------
2940
- BulkInsertWorkerTest: test_save!_makes_insert_not_pending
2941
- ---------------------------------------------------------
2942
-  (0.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-08-11 04:58:10.680576','2016-08-11 04:58:10.680576','chartreuse')
2943
-  (0.2ms) rollback transaction
2944
-  (1.2ms) begin transaction
2945
- --------------------------------------------------------------------
2946
- BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
2947
- --------------------------------------------------------------------
2948
-  (0.0ms) rollback transaction
2949
-  (0.0ms) begin transaction
2950
- ----------------------------------------------------------------
2951
- BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
2952
- ----------------------------------------------------------------
2953
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-08-11 04:58:10.685074','2016-08-11 04:58:10.685074',NULL)
2954
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2955
-  (0.3ms) rollback transaction
2956
-  (0.1ms) begin transaction
2957
- ------------------------------------------------------
2958
- BulkInsertWorkerTest: test_empty_insert_is_not_pending
2959
- ------------------------------------------------------
2960
-  (0.0ms) rollback transaction
2961
-  (0.0ms) begin transaction
2962
- ----------------------------------------------------------------
2963
- BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
2964
- ----------------------------------------------------------------
2965
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2016-08-11 04:58:10.687048','2016-08-11 04:58:10.687048','chartreuse')
2966
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
2967
-  (0.2ms) rollback transaction
2968
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
2969
-  (0.1ms) begin transaction
2970
- ---------------------------------------------------------------------
2971
- BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
2972
- ---------------------------------------------------------------------
2973
-  (0.3ms) SELECT COUNT(*) FROM "testings"
2974
-  (0.0ms) SAVEPOINT active_record_1
2975
-  (0.6ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2016-11-01 17:59:20.883249','2016-11-01 17:59:20.883249','chartreuse')
2976
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2977
-  (0.1ms) SELECT COUNT(*) FROM "testings"
2978
-  (0.3ms) rollback transaction
2979
-  (0.0ms) begin transaction
2980
- ---------------------------------------------------------------
2981
- BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
2982
- ---------------------------------------------------------------
2983
-  (0.0ms) SAVEPOINT active_record_1
2984
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2985
-  (0.0ms) rollback transaction
2986
-  (0.0ms) begin transaction
2987
- ------------------------------------------------------------------------------
2988
- BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
2989
- ------------------------------------------------------------------------------
2990
-  (0.0ms) rollback transaction
2991
-  (0.0ms) begin transaction
2992
- -------------------------------------------------------------------
2993
- BulkInsertTest: test_bulk_insert_without_block_should_return_worker
2994
- -------------------------------------------------------------------
2995
-  (0.0ms) rollback transaction
2996
-  (0.1ms) begin transaction
2997
- -----------------------------------------------------------------------------
2998
- BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
2999
- -----------------------------------------------------------------------------
3000
-  (0.0ms) SELECT COUNT(*) FROM "testings"
3001
-  (0.0ms) SAVEPOINT active_record_1
3002
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2016-11-01 17:59:20.890598','chartreuse'),('Hey',20,'f','2016-11-01 17:59:20.890598','2016-11-01 17:59:20.890598','chartreuse')
3003
-  (0.0ms) RELEASE SAVEPOINT active_record_1
3004
-  (0.0ms) SELECT COUNT(*) FROM "testings"
3005
-  (0.3ms) rollback transaction
3006
-  (0.0ms) begin transaction
3007
- ----------------------------------------------------------------
3008
- BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
3009
- ----------------------------------------------------------------
3010
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-11-01 17:59:20.892761','2016-11-01 17:59:20.892761',NULL)
3011
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
3012
-  (0.3ms) rollback transaction
3013
-  (0.0ms) begin transaction
3014
- -------------------------------------------------------------------------------
3015
- BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
3016
- -------------------------------------------------------------------------------
3017
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-11-01 17:59:20.898576','2016-11-01 17:59:20.898576','chartreuse')
3018
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
3019
-  (0.3ms) rollback transaction
3020
-  (0.0ms) begin transaction
3021
- ----------------------------------------------------------------------------------
3022
- BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
3023
- ----------------------------------------------------------------------------------
3024
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-11-01 17:59:20.900257','2016-11-01 17:59:20.900257','chartreuse')
3025
-  (0.1ms) SELECT COUNT(*) FROM "testings"
3026
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
3027
-  (0.3ms) rollback transaction
3028
-  (0.0ms) begin transaction
3029
- --------------------------------------------------------
3030
- BulkInsertWorkerTest: test_save!_inserts_pending_records
3031
- --------------------------------------------------------
3032
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2016-11-01 17:59:20.902554','2016-11-01 17:59:20.902554','chartreuse'),('Hello',25,'t','2016-11-01 17:59:20.902554','2016-11-01 17:59:20.902554','chartreuse')
3033
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
3034
- Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
3035
-  (0.3ms) rollback transaction
3036
-  (0.0ms) begin transaction
3037
- --------------------------------------------------------------
3038
- BulkInsertWorkerTest: test_after_save_stores_a_block_as_a_proc
3039
- --------------------------------------------------------------
3040
-  (0.0ms) rollback transaction
3041
-  (0.1ms) begin transaction
3042
- -------------------------------------------------------------------
3043
- BulkInsertWorkerTest: test_after_save_callback_can_be_set_as_a_proc
3044
- -------------------------------------------------------------------
3045
-  (0.0ms) rollback transaction
3046
-  (0.1ms) begin transaction
3047
- ---------------------------------------------------------
3048
- BulkInsertWorkerTest: test_save!_makes_insert_not_pending
3049
- ---------------------------------------------------------
3050
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-11-01 17:59:20.909065','2016-11-01 17:59:20.909065','chartreuse')
3051
-  (0.3ms) rollback transaction
3052
-  (0.0ms) begin transaction
3053
- --------------------------------------------------------------------
3054
- BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
3055
- --------------------------------------------------------------------
3056
-  (0.0ms) rollback transaction
3057
-  (0.1ms) begin transaction
3058
- ----------------------------------------------------------------
3059
- BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
3060
- ----------------------------------------------------------------
3061
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2016-11-01 17:59:20.910787','2016-11-01 17:59:20.910787','chartreuse')
3062
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
3063
-  (0.3ms) rollback transaction
3064
-  (0.0ms) begin transaction
3065
- ------------------------------------------------------
3066
- BulkInsertWorkerTest: test_empty_insert_is_not_pending
3067
- ------------------------------------------------------
3068
-  (0.0ms) rollback transaction
3069
-  (0.0ms) begin transaction
3070
- ----------------------------------------------------------------------------------------------
3071
- BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
3072
- ----------------------------------------------------------------------------------------------
3073
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-11-01 17:59:20.912730','2016-11-01 17:59:20.912730','chartreuse'),('Howdy',20,'f','2016-11-01 17:59:20.912730','2016-11-01 17:59:20.912730','chartreuse')
3074
- Testing Load (0.1ms) SELECT "testings".* FROM "testings"
3075
-  (0.3ms) rollback transaction
3076
-  (0.1ms) begin transaction
3077
- ---------------------------------------------------------------------
3078
- BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
3079
- ---------------------------------------------------------------------
3080
-  (0.0ms) rollback transaction
3081
-  (0.0ms) begin transaction
3082
- -------------------------------------------
3083
- BulkInsertWorkerTest: test_default_set_size
3084
- -------------------------------------------
3085
-  (0.0ms) rollback transaction
3086
-  (0.0ms) begin transaction
3087
- ----------------------------------------------------------------------------
3088
- BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
3089
- ----------------------------------------------------------------------------
3090
-  (0.0ms) rollback transaction
3091
-  (0.0ms) begin transaction
3092
- -------------------------------------------------------------
3093
- BulkInsertWorkerTest: test_save!_calls_the_after_save_handler
3094
- -------------------------------------------------------------
3095
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2016-11-01 17:59:20.915894','2016-11-01 17:59:20.915894','chartreuse'),('Hello',25,'t','2016-11-01 17:59:20.915894','2016-11-01 17:59:20.915894','chartreuse')
3096
-  (0.2ms) rollback transaction
3097
-  (0.0ms) begin transaction
3098
- -------------------------------------------------------------------
3099
- BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
3100
- -------------------------------------------------------------------
3101
-  (0.0ms) SELECT COUNT(*) FROM "testings"
3102
-  (0.0ms) SELECT COUNT(*) FROM "testings"
3103
-  (0.0ms) rollback transaction
3104
-  (0.0ms) begin transaction
3105
- ------------------------------------------------------------------------------
3106
- BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
3107
- ------------------------------------------------------------------------------
3108
-  (0.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-11-01 17:59:20.918117','2016-11-01 17:59:20.918117','chartreuse')
3109
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
3110
-  (0.2ms) rollback transaction
3111
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
3112
-  (0.1ms) begin transaction
3113
- -------------------------------------------------------------------
3114
- BulkInsertWorkerTest: test_after_save_callback_can_be_set_as_a_proc
3115
- -------------------------------------------------------------------
3116
-  (0.0ms) rollback transaction
3117
-  (0.0ms) begin transaction
3118
- ----------------------------------------------------------------------------------------------
3119
- BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
3120
- ----------------------------------------------------------------------------------------------
3121
-  (0.8ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2017-02-11 23:45:39.546535','2017-02-11 23:45:39.546535','chartreuse'),('Howdy',20,'f','2017-02-11 23:45:39.546535','2017-02-11 23:45:39.546535','chartreuse')
3122
- Testing Load (0.1ms) SELECT "testings".* FROM "testings"
3123
-  (0.3ms) rollback transaction
3124
-  (0.0ms) begin transaction
3125
- ------------------------------------------------------------------------------
3126
- BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
3127
- ------------------------------------------------------------------------------
3128
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2017-02-11 23:45:39.554824','2017-02-11 23:45:39.554824','chartreuse')
3129
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
3130
-  (0.3ms) rollback transaction
3131
-  (0.0ms) begin transaction
3132
- --------------------------------------------------------
3133
- BulkInsertWorkerTest: test_save!_inserts_pending_records
3134
- --------------------------------------------------------
3135
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2017-02-11 23:45:39.557371','2017-02-11 23:45:39.557371','chartreuse'),('Hello',25,'t','2017-02-11 23:45:39.557371','2017-02-11 23:45:39.557371','chartreuse')
3136
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
3137
- Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
3138
-  (0.3ms) rollback transaction
3139
-  (0.0ms) begin transaction
3140
- ----------------------------------------------------------------------------
3141
- BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
3142
- ----------------------------------------------------------------------------
3143
-  (0.0ms) rollback transaction
3144
-  (0.0ms) begin transaction
3145
- -------------------------------------------------------------------------------
3146
- BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
3147
- -------------------------------------------------------------------------------
3148
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2017-02-11 23:45:39.563471','2017-02-11 23:45:39.563471','chartreuse')
3149
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
3150
-  (0.3ms) rollback transaction
3151
-  (0.0ms) begin transaction
3152
- ----------------------------------------------------------------------------------
3153
- BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
3154
- ----------------------------------------------------------------------------------
3155
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2017-02-11 23:45:39.564977','2017-02-11 23:45:39.564977','chartreuse')
3156
-  (0.1ms) SELECT COUNT(*) FROM "testings"
3157
- Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
3158
-  (0.2ms) rollback transaction
3159
-  (0.1ms) begin transaction
3160
- -------------------------------------------------------------------
3161
- BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
3162
- -------------------------------------------------------------------
3163
-  (0.0ms) SELECT COUNT(*) FROM "testings"
3164
-  (0.0ms) SELECT COUNT(*) FROM "testings"
3165
-  (0.0ms) rollback transaction
3166
-  (0.1ms) begin transaction
3167
- -------------------------------------------------------------
3168
- BulkInsertWorkerTest: test_save!_calls_the_after_save_handler
3169
- -------------------------------------------------------------
3170
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2017-02-11 23:45:39.567512','2017-02-11 23:45:39.567512','chartreuse'),('Hello',25,'t','2017-02-11 23:45:39.567512','2017-02-11 23:45:39.567512','chartreuse')
3171
-  (0.2ms) rollback transaction
3172
-  (0.1ms) begin transaction
3173
- ----------------------------------------------------------------
3174
- BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
3175
- ----------------------------------------------------------------
3176
-  (0.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2017-02-11 23:45:39.568535','2017-02-11 23:45:39.568535',NULL)
3177
- Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
3178
-  (0.2ms) rollback transaction
3179
-  (0.1ms) begin transaction
3180
- -------------------------------------------
3181
- BulkInsertWorkerTest: test_default_set_size
3182
- -------------------------------------------
3183
-  (0.0ms) rollback transaction
3184
-  (0.0ms) begin transaction
3185
- ----------------------------------------------------------------
3186
- BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
3187
- ----------------------------------------------------------------
3188
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2017-02-11 23:45:39.570261','2017-02-11 23:45:39.570261','chartreuse')
3189
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
3190
-  (0.3ms) rollback transaction
3191
-  (0.0ms) begin transaction
3192
- --------------------------------------------------------------------
3193
- BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
3194
- --------------------------------------------------------------------
3195
-  (0.0ms) rollback transaction
3196
-  (0.0ms) begin transaction
3197
- ---------------------------------------------------------
3198
- BulkInsertWorkerTest: test_save!_makes_insert_not_pending
3199
- ---------------------------------------------------------
3200
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2017-02-11 23:45:39.572142','2017-02-11 23:45:39.572142','chartreuse')
3201
-  (0.3ms) rollback transaction
3202
-  (0.0ms) begin transaction
3203
- ------------------------------------------------------
3204
- BulkInsertWorkerTest: test_empty_insert_is_not_pending
3205
- ------------------------------------------------------
3206
-  (0.0ms) rollback transaction
3207
-  (0.0ms) begin transaction
3208
- ---------------------------------------------------------------------
3209
- BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
3210
- ---------------------------------------------------------------------
3211
-  (0.0ms) rollback transaction
3212
-  (0.0ms) begin transaction
3213
- --------------------------------------------------------------
3214
- BulkInsertWorkerTest: test_after_save_stores_a_block_as_a_proc
3215
- --------------------------------------------------------------
3216
-  (0.0ms) rollback transaction
3217
-  (0.0ms) begin transaction
3218
- ------------------------------------------------------------------------------
3219
- BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
3220
- ------------------------------------------------------------------------------
3221
-  (0.0ms) rollback transaction
3222
-  (0.0ms) begin transaction
3223
- -------------------------------------------------------------------
3224
- BulkInsertTest: test_bulk_insert_without_block_should_return_worker
3225
- -------------------------------------------------------------------
3226
-  (0.0ms) rollback transaction
3227
-  (0.0ms) begin transaction
3228
- -----------------------------------------------------------------------------
3229
- BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
3230
- -----------------------------------------------------------------------------
3231
-  (0.1ms) SELECT COUNT(*) FROM "testings"
3232
-  (0.0ms) SAVEPOINT active_record_1
3233
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2017-02-11 23:45:39.576083','chartreuse'),('Hey',20,'f','2017-02-11 23:45:39.576083','2017-02-11 23:45:39.576083','chartreuse')
3234
-  (0.0ms) RELEASE SAVEPOINT active_record_1
3235
-  (0.0ms) SELECT COUNT(*) FROM "testings"
3236
-  (0.3ms) rollback transaction
3237
-  (0.0ms) begin transaction
3238
- ---------------------------------------------------------------------
3239
- BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
3240
- ---------------------------------------------------------------------
3241
-  (0.1ms) SELECT COUNT(*) FROM "testings"
3242
-  (0.0ms) SAVEPOINT active_record_1
3243
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2017-02-11 23:45:39.578091','2017-02-11 23:45:39.578091','chartreuse')
3244
-  (0.0ms) RELEASE SAVEPOINT active_record_1
3245
-  (0.0ms) SELECT COUNT(*) FROM "testings"
3246
-  (0.2ms) rollback transaction
3247
-  (0.0ms) begin transaction
3248
- ---------------------------------------------------------------
3249
- BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
3250
- ---------------------------------------------------------------
3251
-  (0.0ms) SAVEPOINT active_record_1
3252
-  (0.0ms) RELEASE SAVEPOINT active_record_1
3253
-  (0.0ms) rollback transaction
3254
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3255
-  (0.1ms) begin transaction
3256
- -------------------------------------------------------------------
3257
- BulkInsertWorkerTest: test_after_save_callback_can_be_set_as_a_proc
3258
- -------------------------------------------------------------------
3259
-  (0.0ms) rollback transaction
3260
-  (0.0ms) begin transaction
3261
- -------------------------------------------------------------------
3262
- BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
3263
- -------------------------------------------------------------------
3264
-  (0.1ms) SELECT COUNT(*) FROM "testings"
3265
-  (0.0ms) SELECT COUNT(*) FROM "testings"
3266
-  (0.0ms) rollback transaction
3267
-  (0.0ms) begin transaction
3268
- ---------------------------------------------------------------------
3269
- BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
3270
- ---------------------------------------------------------------------
3271
-  (0.0ms) rollback transaction
3272
-  (0.0ms) begin transaction
3273
- --------------------------------------------------------------
3274
- BulkInsertWorkerTest: test_after_save_stores_a_block_as_a_proc
3275
- --------------------------------------------------------------
3276
-  (0.0ms) rollback transaction
3277
-  (0.0ms) begin transaction
3278
- -------------------------------------------------------------
3279
- BulkInsertWorkerTest: test_save!_calls_the_after_save_handler
3280
- -------------------------------------------------------------
3281
-  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2017-02-11 23:46:25.196788','2017-02-11 23:46:25.196788','chartreuse'),('Hello',25,'t','2017-02-11 23:46:25.196788','2017-02-11 23:46:25.196788','chartreuse')
3282
-  (2.3ms) rollback transaction
3283
-  (0.1ms) begin transaction
3284
- -------------------------------------------------------------------------------
3285
- BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
3286
- -------------------------------------------------------------------------------
3287
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2017-02-11 23:46:25.201773','2017-02-11 23:46:25.201773','chartreuse')
3288
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
3289
-  (0.5ms) rollback transaction
3290
-  (0.0ms) begin transaction
3291
- ------------------------------------------------------
3292
- BulkInsertWorkerTest: test_empty_insert_is_not_pending
3293
- ------------------------------------------------------
3294
-  (0.0ms) rollback transaction
3295
-  (0.0ms) begin transaction
3296
- ------------------------------------------------------------------------------
3297
- BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
3298
- ------------------------------------------------------------------------------
3299
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2017-02-11 23:46:25.209628','2017-02-11 23:46:25.209628','chartreuse')
3300
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
3301
-  (0.3ms) rollback transaction
3302
-  (0.0ms) begin transaction
3303
- --------------------------------------------------------
3304
- BulkInsertWorkerTest: test_save!_inserts_pending_records
3305
- --------------------------------------------------------
3306
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2017-02-11 23:46:25.211213','2017-02-11 23:46:25.211213','chartreuse'),('Hello',25,'t','2017-02-11 23:46:25.211213','2017-02-11 23:46:25.211213','chartreuse')
3307
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
3308
- Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
3309
-  (0.3ms) rollback transaction
3310
-  (0.0ms) begin transaction
3311
- ----------------------------------------------------------------
3312
- BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
3313
- ----------------------------------------------------------------
3314
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2017-02-11 23:46:25.215328','2017-02-11 23:46:25.215328','chartreuse')
3315
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
3316
-  (0.3ms) rollback transaction
3317
-  (0.1ms) begin transaction
3318
- ----------------------------------------------------------------
3319
- BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
3320
- ----------------------------------------------------------------
3321
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2017-02-11 23:46:25.216675','2017-02-11 23:46:25.216675',NULL)
3322
- Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
3323
-  (0.3ms) rollback transaction
3324
-  (0.0ms) begin transaction
3325
- ----------------------------------------------------------------------------------
3326
- BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
3327
- ----------------------------------------------------------------------------------
3328
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2017-02-11 23:46:25.217847','2017-02-11 23:46:25.217847','chartreuse')
3329
-  (0.1ms) SELECT COUNT(*) FROM "testings"
3330
- Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
3331
-  (0.3ms) rollback transaction
3332
-  (0.0ms) begin transaction
3333
- --------------------------------------------------------------------
3334
- BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
3335
- --------------------------------------------------------------------
3336
-  (0.0ms) rollback transaction
3337
-  (0.1ms) begin transaction
3338
- ----------------------------------------------------------------------------
3339
- BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
3340
- ----------------------------------------------------------------------------
3341
-  (0.1ms) rollback transaction
3342
-  (0.0ms) begin transaction
3343
- -------------------------------------------
3344
- BulkInsertWorkerTest: test_default_set_size
3345
- -------------------------------------------
3346
-  (0.0ms) rollback transaction
3347
-  (0.0ms) begin transaction
3348
- ----------------------------------------------------------------------------------------------
3349
- BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
3350
- ----------------------------------------------------------------------------------------------
3351
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2017-02-11 23:46:25.220829','2017-02-11 23:46:25.220829','chartreuse'),('Howdy',20,'f','2017-02-11 23:46:25.220829','2017-02-11 23:46:25.220829','chartreuse')
3352
- Testing Load (0.1ms) SELECT "testings".* FROM "testings"
3353
-  (0.3ms) rollback transaction
3354
-  (0.0ms) begin transaction
3355
- ---------------------------------------------------------
3356
- BulkInsertWorkerTest: test_save!_makes_insert_not_pending
3357
- ---------------------------------------------------------
3358
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2017-02-11 23:46:25.222350','2017-02-11 23:46:25.222350','chartreuse')
3359
-  (0.3ms) rollback transaction
3360
-  (0.0ms) begin transaction
3361
- ------------------------------------------------------------------------------
3362
- BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
3363
- ------------------------------------------------------------------------------
3364
-  (0.0ms) rollback transaction
3365
-  (0.1ms) begin transaction
3366
- -------------------------------------------------------------------
3367
- BulkInsertTest: test_bulk_insert_without_block_should_return_worker
3368
- -------------------------------------------------------------------
3369
-  (0.0ms) rollback transaction
3370
-  (0.0ms) begin transaction
3371
- -----------------------------------------------------------------------------
3372
- BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
3373
- -----------------------------------------------------------------------------
3374
-  (0.1ms) SELECT COUNT(*) FROM "testings"
3375
-  (0.0ms) SAVEPOINT active_record_1
3376
-  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2017-02-11 23:46:25.224910','chartreuse'),('Hey',20,'f','2017-02-11 23:46:25.224910','2017-02-11 23:46:25.224910','chartreuse')
3377
-  (0.0ms) RELEASE SAVEPOINT active_record_1
3378
-  (0.0ms) SELECT COUNT(*) FROM "testings"
3379
-  (0.3ms) rollback transaction
3380
-  (0.0ms) begin transaction
3381
- ---------------------------------------------------------------
3382
- BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
3383
- ---------------------------------------------------------------
3384
-  (0.1ms) SAVEPOINT active_record_1
3385
-  (0.0ms) RELEASE SAVEPOINT active_record_1
3386
-  (0.0ms) rollback transaction
3387
-  (0.0ms) begin transaction
3388
- ---------------------------------------------------------------------
3389
- BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
3390
- ---------------------------------------------------------------------
3391
-  (0.1ms) SELECT COUNT(*) FROM "testings"
3392
-  (0.0ms) SAVEPOINT active_record_1
3393
-  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2017-02-11 23:46:25.227624','2017-02-11 23:46:25.227624','chartreuse')
3394
-  (0.0ms) RELEASE SAVEPOINT active_record_1
3395
-  (0.0ms) SELECT COUNT(*) FROM "testings"
3396
-  (0.3ms) rollback transaction