bulk_insert 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +96 -0
  4. data/Rakefile +34 -0
  5. data/lib/bulk_insert.rb +24 -0
  6. data/lib/bulk_insert/version.rb +7 -0
  7. data/lib/bulk_insert/worker.rb +64 -0
  8. data/test/bulk_insert/worker_test.rb +84 -0
  9. data/test/bulk_insert_test.rb +22 -0
  10. data/test/dummy/README.rdoc +28 -0
  11. data/test/dummy/Rakefile +6 -0
  12. data/test/dummy/app/assets/javascripts/application.js +13 -0
  13. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  14. data/test/dummy/app/controllers/application_controller.rb +5 -0
  15. data/test/dummy/app/helpers/application_helper.rb +2 -0
  16. data/test/dummy/app/models/testing.rb +2 -0
  17. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  18. data/test/dummy/bin/bundle +3 -0
  19. data/test/dummy/bin/rails +4 -0
  20. data/test/dummy/bin/rake +4 -0
  21. data/test/dummy/bin/setup +29 -0
  22. data/test/dummy/config.ru +4 -0
  23. data/test/dummy/config/application.rb +26 -0
  24. data/test/dummy/config/boot.rb +5 -0
  25. data/test/dummy/config/database.yml +25 -0
  26. data/test/dummy/config/environment.rb +5 -0
  27. data/test/dummy/config/environments/development.rb +41 -0
  28. data/test/dummy/config/environments/production.rb +79 -0
  29. data/test/dummy/config/environments/test.rb +42 -0
  30. data/test/dummy/config/initializers/assets.rb +11 -0
  31. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  32. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  33. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  34. data/test/dummy/config/initializers/inflections.rb +16 -0
  35. data/test/dummy/config/initializers/mime_types.rb +4 -0
  36. data/test/dummy/config/initializers/session_store.rb +3 -0
  37. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  38. data/test/dummy/config/locales/en.yml +23 -0
  39. data/test/dummy/config/routes.rb +56 -0
  40. data/test/dummy/config/secrets.yml +22 -0
  41. data/test/dummy/db/development.sqlite3 +0 -0
  42. data/test/dummy/db/migrate/20151008181535_create_testings.rb +11 -0
  43. data/test/dummy/db/schema.rb +24 -0
  44. data/test/dummy/db/test.sqlite3 +0 -0
  45. data/test/dummy/log/development.log +10 -0
  46. data/test/dummy/log/test.log +1567 -0
  47. data/test/dummy/public/404.html +67 -0
  48. data/test/dummy/public/422.html +67 -0
  49. data/test/dummy/public/500.html +66 -0
  50. data/test/dummy/public/favicon.ico +0 -0
  51. data/test/test_helper.rb +19 -0
  52. metadata +180 -0
@@ -0,0 +1,22 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure the secrets in this file are kept private
11
+ # if you're sharing your code publicly.
12
+
13
+ development:
14
+ secret_key_base: f6486be44b975842a9304a32397ca8d99b1d3e9fecbede92ffb16c60091d3d16a23092e3a53ae3561c1c0f7302a3549e48536f27e240d4b948d125a846171f2a
15
+
16
+ test:
17
+ secret_key_base: 344e414a6671f7f8b5a409072134ace55a41f0f59e9f044119419ddcac2d537405a6558173af09ec14e0c11e77cdd0a85e33c3d28fbc022424b3e86bd4ff35db
18
+
19
+ # Do not keep production secrets in the repository,
20
+ # instead read values from the environment.
21
+ production:
22
+ secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -0,0 +1,11 @@
1
+ class CreateTestings < ActiveRecord::Migration
2
+ def change
3
+ create_table :testings do |t|
4
+ t.string :greeting
5
+ t.integer :age
6
+ t.boolean :happy
7
+
8
+ t.timestamps null: false
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,24 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 20151008181535) do
15
+
16
+ create_table "testings", force: :cascade do |t|
17
+ t.string "greeting"
18
+ t.integer "age"
19
+ t.boolean "happy"
20
+ t.datetime "created_at", null: false
21
+ t.datetime "updated_at", null: false
22
+ end
23
+
24
+ end
@@ -0,0 +1,10 @@
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"
@@ -0,0 +1,1567 @@
1
+  (0.1ms) begin transaction
2
+ ------------------------------------------------------
3
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
4
+ ------------------------------------------------------
5
+  (0.0ms) rollback transaction
6
+  (0.0ms) begin transaction
7
+ --------------------------
8
+ BulkInsertTest: test_truth
9
+ --------------------------
10
+  (0.0ms) rollback transaction
11
+  (0.1ms) begin transaction
12
+ ------------------------------------------------------
13
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
14
+ ------------------------------------------------------
15
+  (0.0ms) rollback transaction
16
+  (0.0ms) begin transaction
17
+ --------------------------
18
+ BulkInsertTest: test_truth
19
+ --------------------------
20
+  (0.0ms) rollback transaction
21
+  (0.1ms) begin transaction
22
+ ------------------------------------------------------
23
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
24
+ ------------------------------------------------------
25
+  (0.0ms) rollback transaction
26
+  (0.0ms) begin transaction
27
+ --------------------------
28
+ BulkInsertTest: test_truth
29
+ --------------------------
30
+  (0.0ms) rollback transaction
31
+  (0.1ms) begin transaction
32
+ ------------------------------------------------------
33
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
34
+ ------------------------------------------------------
35
+  (0.0ms) rollback transaction
36
+  (0.0ms) begin transaction
37
+ --------------------------
38
+ BulkInsertTest: test_truth
39
+ --------------------------
40
+  (0.1ms) rollback transaction
41
+  (0.1ms) begin transaction
42
+ --------------------------
43
+ BulkInsertTest: test_truth
44
+ --------------------------
45
+  (0.0ms) rollback transaction
46
+  (0.0ms) begin transaction
47
+ ------------------------------------------------------
48
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
49
+ ------------------------------------------------------
50
+  (0.0ms) rollback transaction
51
+  (0.1ms) begin transaction
52
+ --------------------------
53
+ BulkInsertTest: test_truth
54
+ --------------------------
55
+  (0.0ms) rollback transaction
56
+  (0.0ms) begin transaction
57
+ ------------------------------------------------------
58
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
59
+ ------------------------------------------------------
60
+  (0.0ms) rollback transaction
61
+  (0.0ms) begin transaction
62
+ --------------------------------------------------------------------
63
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
64
+ --------------------------------------------------------------------
65
+  (0.0ms) rollback transaction
66
+  (0.1ms) begin transaction
67
+ --------------------------
68
+ BulkInsertTest: test_truth
69
+ --------------------------
70
+  (0.0ms) rollback transaction
71
+  (0.0ms) begin transaction
72
+ --------------------------------------------------------------------
73
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
74
+ --------------------------------------------------------------------
75
+  (0.0ms) rollback transaction
76
+  (0.0ms) begin transaction
77
+ ------------------------------------------------------
78
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
79
+ ------------------------------------------------------
80
+  (0.0ms) rollback transaction
81
+  (0.2ms) begin transaction
82
+ --------------------------
83
+ BulkInsertTest: test_truth
84
+ --------------------------
85
+  (0.1ms) rollback transaction
86
+  (0.0ms) begin transaction
87
+ ------------------------------------------------------
88
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
89
+ ------------------------------------------------------
90
+  (0.0ms) rollback transaction
91
+  (0.1ms) begin transaction
92
+ --------------------------------------------------------------------
93
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
94
+ --------------------------------------------------------------------
95
+  (0.1ms) rollback transaction
96
+  (0.1ms) begin transaction
97
+ ---------------------------------------------------------
98
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
99
+ ---------------------------------------------------------
100
+  (0.0ms) rollback transaction
101
+  (0.1ms) begin transaction
102
+ ---------------------------------------------------------
103
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
104
+ ---------------------------------------------------------
105
+  (0.1ms) rollback transaction
106
+  (0.1ms) begin transaction
107
+ ------------------------------------------------------
108
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
109
+ ------------------------------------------------------
110
+  (0.0ms) rollback transaction
111
+  (0.1ms) begin transaction
112
+ --------------------------------------------------------------------
113
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
114
+ --------------------------------------------------------------------
115
+  (0.0ms) rollback transaction
116
+  (0.0ms) begin transaction
117
+ --------------------------
118
+ BulkInsertTest: test_truth
119
+ --------------------------
120
+  (0.0ms) rollback transaction
121
+  (0.1ms) begin transaction
122
+ ---------------------------------------------------------
123
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
124
+ ---------------------------------------------------------
125
+  (0.0ms) rollback transaction
126
+  (0.1ms) begin transaction
127
+ ------------------------------------------------------
128
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
129
+ ------------------------------------------------------
130
+  (0.1ms) rollback transaction
131
+  (0.1ms) begin transaction
132
+ --------------------------------------------------------------------
133
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
134
+ --------------------------------------------------------------------
135
+  (0.0ms) rollback transaction
136
+  (0.1ms) begin transaction
137
+ --------------------------------------------------------
138
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
139
+ --------------------------------------------------------
140
+  (0.1ms) rollback transaction
141
+  (0.0ms) begin transaction
142
+ --------------------------
143
+ BulkInsertTest: test_truth
144
+ --------------------------
145
+  (0.0ms) rollback transaction
146
+  (2.7ms) 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) 
147
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
148
+  (0.1ms) select sqlite_version(*)
149
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
150
+  (0.2ms) SELECT version FROM "schema_migrations"
151
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20151008181535')
152
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
153
+  (0.1ms) begin transaction
154
+ --------------------------
155
+ BulkInsertTest: test_truth
156
+ --------------------------
157
+  (0.0ms) rollback transaction
158
+  (0.1ms) begin transaction
159
+ --------------------------------------------------------
160
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
161
+ --------------------------------------------------------
162
+ Testing Load (0.2ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
163
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
164
+  (0.1ms) rollback transaction
165
+  (0.1ms) begin transaction
166
+ ------------------------------------------------------
167
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
168
+ ------------------------------------------------------
169
+  (0.1ms) rollback transaction
170
+  (0.1ms) begin transaction
171
+ ---------------------------------------------------------
172
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
173
+ ---------------------------------------------------------
174
+  (0.0ms) rollback transaction
175
+  (0.0ms) begin transaction
176
+ --------------------------------------------------------------------
177
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
178
+ --------------------------------------------------------------------
179
+  (0.0ms) rollback transaction
180
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
181
+  (0.1ms) begin transaction
182
+ --------------------------
183
+ BulkInsertTest: test_truth
184
+ --------------------------
185
+  (0.1ms) rollback transaction
186
+  (0.0ms) begin transaction
187
+ --------------------------------------------------------------------
188
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
189
+ --------------------------------------------------------------------
190
+  (0.0ms) rollback transaction
191
+  (0.1ms) begin transaction
192
+ ------------------------------------------------------
193
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
194
+ ------------------------------------------------------
195
+  (0.0ms) rollback transaction
196
+  (0.0ms) begin transaction
197
+ --------------------------------------------------------
198
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
199
+ --------------------------------------------------------
200
+ Testing Load (0.3ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
201
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
202
+  (0.1ms) rollback transaction
203
+  (0.2ms) begin transaction
204
+ ---------------------------------------------------------
205
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
206
+ ---------------------------------------------------------
207
+  (0.1ms) rollback transaction
208
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
209
+  (0.1ms) begin transaction
210
+ --------------------------------------------------------
211
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
212
+ --------------------------------------------------------
213
+  (0.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") ('Yo',15,'f',NULL,NULL),('Hello',25,'t',NULL,NULL)
214
+ SQLite3::SQLException: near "(": syntax error: INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") ('Yo',15,'f',NULL,NULL),('Hello',25,'t',NULL,NULL)
215
+  (0.0ms) rollback transaction
216
+  (0.1ms) begin transaction
217
+ ------------------------------------------------------
218
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
219
+ ------------------------------------------------------
220
+  (0.0ms) rollback transaction
221
+  (0.1ms) begin transaction
222
+ --------------------------------------------------------------------
223
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
224
+ --------------------------------------------------------------------
225
+  (0.0ms) rollback transaction
226
+  (0.1ms) begin transaction
227
+ -------------------------------------------------------------------
228
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
229
+ -------------------------------------------------------------------
230
+  (0.1ms) SELECT COUNT(*) FROM "testings"
231
+  (0.0ms) SELECT COUNT(*) FROM "testings"
232
+  (0.0ms) rollback transaction
233
+  (0.1ms) begin transaction
234
+ ---------------------------------------------------------
235
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
236
+ ---------------------------------------------------------
237
+  (0.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") ('Hello',15,'t',NULL,NULL)
238
+ SQLite3::SQLException: near "(": syntax error: INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") ('Hello',15,'t',NULL,NULL)
239
+  (0.1ms) rollback transaction
240
+  (0.0ms) begin transaction
241
+ --------------------------
242
+ BulkInsertTest: test_truth
243
+ --------------------------
244
+  (0.1ms) rollback transaction
245
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
246
+  (0.1ms) begin transaction
247
+ --------------------------------------------------------
248
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
249
+ --------------------------------------------------------
250
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Yo',15,'f',NULL,NULL),('Hello',25,'t',NULL,NULL)
251
+ SQLite3::ConstraintException: NOT NULL constraint failed: testings.created_at: INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Yo',15,'f',NULL,NULL),('Hello',25,'t',NULL,NULL)
252
+  (0.1ms) rollback transaction
253
+  (0.1ms) begin transaction
254
+ --------------------------------------------------------------------
255
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
256
+ --------------------------------------------------------------------
257
+  (0.1ms) rollback transaction
258
+  (0.1ms) begin transaction
259
+ ------------------------------------------------------
260
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
261
+ ------------------------------------------------------
262
+  (0.0ms) rollback transaction
263
+  (0.1ms) begin transaction
264
+ ---------------------------------------------------------
265
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
266
+ ---------------------------------------------------------
267
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t',NULL,NULL)
268
+ SQLite3::ConstraintException: NOT NULL constraint failed: testings.created_at: INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t',NULL,NULL)
269
+  (0.1ms) rollback transaction
270
+  (0.1ms) begin transaction
271
+ -------------------------------------------------------------------
272
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
273
+ -------------------------------------------------------------------
274
+  (0.0ms) SELECT COUNT(*) FROM "testings"
275
+  (0.0ms) SELECT COUNT(*) FROM "testings"
276
+  (0.0ms) rollback transaction
277
+  (0.0ms) begin transaction
278
+ --------------------------
279
+ BulkInsertTest: test_truth
280
+ --------------------------
281
+  (0.0ms) rollback transaction
282
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
283
+  (0.1ms) begin transaction
284
+ -------------------------------------------------------------------
285
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
286
+ -------------------------------------------------------------------
287
+  (0.1ms) SELECT COUNT(*) FROM "testings"
288
+  (0.1ms) SELECT COUNT(*) FROM "testings"
289
+  (0.0ms) rollback transaction
290
+  (0.0ms) begin transaction
291
+ ------------------------------------------------------
292
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
293
+ ------------------------------------------------------
294
+  (0.0ms) rollback transaction
295
+  (0.1ms) begin transaction
296
+ --------------------------------------------------------
297
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
298
+ --------------------------------------------------------
299
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Yo',15,'f','2015-10-08 18:29:58.915692','2015-10-08 18:29:58.915692'),('Hello',25,'t','2015-10-08 18:29:58.915692','2015-10-08 18:29:58.915692')
300
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
301
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
302
+  (2.6ms) rollback transaction
303
+  (0.1ms) begin transaction
304
+ ---------------------------------------------------------
305
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
306
+ ---------------------------------------------------------
307
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-08 18:29:58.929152','2015-10-08 18:29:58.929152')
308
+  (0.4ms) rollback transaction
309
+  (0.1ms) begin transaction
310
+ --------------------------------------------------------------------
311
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
312
+ --------------------------------------------------------------------
313
+  (0.0ms) rollback transaction
314
+  (0.0ms) begin transaction
315
+ --------------------------
316
+ BulkInsertTest: test_truth
317
+ --------------------------
318
+  (0.0ms) rollback transaction
319
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
320
+  (0.1ms) begin transaction
321
+ --------------------------
322
+ BulkInsertTest: test_truth
323
+ --------------------------
324
+  (0.0ms) rollback transaction
325
+  (0.0ms) begin transaction
326
+ -------------------------------------------------------------------
327
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
328
+ -------------------------------------------------------------------
329
+  (0.4ms) SELECT COUNT(*) FROM "testings"
330
+  (0.1ms) SELECT COUNT(*) FROM "testings"
331
+  (0.1ms) rollback transaction
332
+  (0.1ms) begin transaction
333
+ --------------------------------------------------------------------
334
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
335
+ --------------------------------------------------------------------
336
+  (0.0ms) rollback transaction
337
+  (0.1ms) begin transaction
338
+ ---------------------------------------------------------
339
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
340
+ ---------------------------------------------------------
341
+  (0.8ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-08 18:33:07.278653','2015-10-08 18:33:07.278653')
342
+  (0.4ms) rollback transaction
343
+  (0.0ms) begin transaction
344
+ ------------------------------------------------------
345
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
346
+ ------------------------------------------------------
347
+  (0.1ms) rollback transaction
348
+  (0.0ms) begin transaction
349
+ -------------------------------------------------------------------------------
350
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
351
+ -------------------------------------------------------------------------------
352
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t',NULL,NULL)
353
+ SQLite3::ConstraintException: NOT NULL constraint failed: testings.created_at: INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t',NULL,NULL)
354
+  (0.1ms) rollback transaction
355
+  (0.1ms) begin transaction
356
+ --------------------------------------------------------
357
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
358
+ --------------------------------------------------------
359
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Yo',15,'f','2015-10-08 18:33:07.284559','2015-10-08 18:33:07.284559'),('Hello',25,'t','2015-10-08 18:33:07.284559','2015-10-08 18:33:07.284559')
360
+ Testing Load (0.2ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
361
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
362
+  (0.5ms) rollback transaction
363
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
364
+  (0.1ms) begin transaction
365
+ --------------------------------------------------------------------
366
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
367
+ --------------------------------------------------------------------
368
+  (0.0ms) rollback transaction
369
+  (0.1ms) begin transaction
370
+ -------------------------------------------------------------------------------
371
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
372
+ -------------------------------------------------------------------------------
373
+  (0.5ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-08 18:35:57.135857','2015-10-08 18:35:57.135859')
374
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
375
+  (0.5ms) rollback transaction
376
+  (0.1ms) begin transaction
377
+ ------------------------------------------------------
378
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
379
+ ------------------------------------------------------
380
+  (0.0ms) rollback transaction
381
+  (0.1ms) begin transaction
382
+ --------------------------------------------------------
383
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
384
+ --------------------------------------------------------
385
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Yo',15,'f','2015-10-08 18:35:57.146754','2015-10-08 18:35:57.146754'),('Hello',25,'t','2015-10-08 18:35:57.146754','2015-10-08 18:35:57.146754')
386
+ Testing Load (0.2ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
387
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
388
+  (0.5ms) rollback transaction
389
+  (0.1ms) begin transaction
390
+ -------------------------------------------------------------------
391
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
392
+ -------------------------------------------------------------------
393
+  (0.1ms) SELECT COUNT(*) FROM "testings"
394
+  (0.0ms) SELECT COUNT(*) FROM "testings"
395
+  (0.0ms) rollback transaction
396
+  (0.1ms) begin transaction
397
+ ---------------------------------------------------------
398
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
399
+ ---------------------------------------------------------
400
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-08 18:35:57.153949','2015-10-08 18:35:57.153949')
401
+  (0.4ms) rollback transaction
402
+  (0.0ms) begin transaction
403
+ --------------------------
404
+ BulkInsertTest: test_truth
405
+ --------------------------
406
+  (0.1ms) rollback transaction
407
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
408
+  (0.1ms) begin transaction
409
+ --------------------------
410
+ BulkInsertTest: test_truth
411
+ --------------------------
412
+  (0.0ms) rollback transaction
413
+  (0.0ms) begin transaction
414
+ ------------------------------------------------------
415
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
416
+ ------------------------------------------------------
417
+  (0.0ms) rollback transaction
418
+  (0.0ms) begin transaction
419
+ --------------------------------------------------------
420
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
421
+ --------------------------------------------------------
422
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Yo',15,'f','2015-10-08 18:37:28.549901','2015-10-08 18:37:28.549901'),('Hello',25,'t','2015-10-08 18:37:28.549901','2015-10-08 18:37:28.549901')
423
+ Testing Load (0.4ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
424
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
425
+  (2.5ms) rollback transaction
426
+  (0.1ms) begin transaction
427
+ --------------------------------------------------------------------
428
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
429
+ --------------------------------------------------------------------
430
+  (0.0ms) rollback transaction
431
+  (0.1ms) begin transaction
432
+ -------------------------------------------------------------------
433
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
434
+ -------------------------------------------------------------------
435
+  (0.1ms) SELECT COUNT(*) FROM "testings"
436
+  (0.1ms) SELECT COUNT(*) FROM "testings"
437
+  (0.0ms) rollback transaction
438
+  (0.0ms) begin transaction
439
+ -------------------------------------------------------------------------------
440
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
441
+ -------------------------------------------------------------------------------
442
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-08 18:37:28.568038','2015-10-08 18:37:28.568039')
443
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
444
+  (0.5ms) rollback transaction
445
+  (0.0ms) begin transaction
446
+ ---------------------------------------------------------
447
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
448
+ ---------------------------------------------------------
449
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-08 18:37:28.570308','2015-10-08 18:37:28.570308')
450
+  (0.4ms) rollback transaction
451
+  (0.1ms) begin transaction
452
+ ----------------------------------------------------------------
453
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
454
+ ----------------------------------------------------------------
455
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('---
456
+ - :greeting
457
+ - Yo
458
+ ',NULL,'---
459
+ - :happy
460
+ - false
461
+ ','2015-10-08 18:37:28.571770','2015-10-08 18:37:28.571771')
462
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
463
+  (0.9ms) rollback transaction
464
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
465
+  (0.1ms) begin transaction
466
+ --------------------------
467
+ BulkInsertTest: test_truth
468
+ --------------------------
469
+  (0.0ms) rollback transaction
470
+  (0.0ms) begin transaction
471
+ --------------------------------------------------------
472
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
473
+ --------------------------------------------------------
474
+  (1.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Yo',15,'f','2015-10-08 18:39:27.624826','2015-10-08 18:39:27.624826'),('Hello',25,'t','2015-10-08 18:39:27.624826','2015-10-08 18:39:27.624826')
475
+ Testing Load (0.2ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
476
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
477
+  (0.5ms) rollback transaction
478
+  (0.1ms) begin transaction
479
+ ---------------------------------------------------------
480
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
481
+ ---------------------------------------------------------
482
+  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-08 18:39:27.639732','2015-10-08 18:39:27.639732')
483
+  (0.6ms) rollback transaction
484
+  (0.1ms) begin transaction
485
+ -------------------------------------------------------------------
486
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
487
+ -------------------------------------------------------------------
488
+  (0.1ms) SELECT COUNT(*) FROM "testings"
489
+  (0.0ms) SELECT COUNT(*) FROM "testings"
490
+  (0.0ms) rollback transaction
491
+  (0.1ms) begin transaction
492
+ ------------------------------------------------------
493
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
494
+ ------------------------------------------------------
495
+  (0.1ms) rollback transaction
496
+  (0.1ms) begin transaction
497
+ ----------------------------------------------------------------
498
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
499
+ ----------------------------------------------------------------
500
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Yo',20,'f','2015-10-08 18:39:27.644450','2015-10-08 18:39:27.644452')
501
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
502
+  (0.5ms) rollback transaction
503
+  (0.1ms) begin transaction
504
+ -------------------------------------------------------------------------------
505
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
506
+ -------------------------------------------------------------------------------
507
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-08 18:39:27.646591','2015-10-08 18:39:27.646592')
508
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
509
+  (0.4ms) rollback transaction
510
+  (0.1ms) begin transaction
511
+ --------------------------------------------------------------------
512
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
513
+ --------------------------------------------------------------------
514
+  (0.0ms) rollback transaction
515
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
516
+  (0.1ms) begin transaction
517
+ --------------------------
518
+ BulkInsertTest: test_truth
519
+ --------------------------
520
+  (0.0ms) rollback transaction
521
+  (0.0ms) begin transaction
522
+ ----------------------------------------------------------------------------------
523
+ BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
524
+ ----------------------------------------------------------------------------------
525
+  (0.1ms) rollback transaction
526
+  (0.1ms) begin transaction
527
+ ---------------------------------------------------------
528
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
529
+ ---------------------------------------------------------
530
+  (0.7ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-08 18:41:08.257815','2015-10-08 18:41:08.257815')
531
+  (2.2ms) rollback transaction
532
+  (0.1ms) begin transaction
533
+ --------------------------------------------------------------------
534
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
535
+ --------------------------------------------------------------------
536
+  (0.0ms) rollback transaction
537
+  (0.1ms) begin transaction
538
+ -------------------------------------------------------------------
539
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
540
+ -------------------------------------------------------------------
541
+  (0.1ms) SELECT COUNT(*) FROM "testings"
542
+  (0.0ms) SELECT COUNT(*) FROM "testings"
543
+  (0.1ms) rollback transaction
544
+  (0.0ms) begin transaction
545
+ --------------------------------------------------------
546
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
547
+ --------------------------------------------------------
548
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Yo',15,'f','2015-10-08 18:41:08.267944','2015-10-08 18:41:08.267944'),('Hello',25,'t','2015-10-08 18:41:08.267944','2015-10-08 18:41:08.267944')
549
+ Testing Load (0.2ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
550
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
551
+  (0.7ms) rollback transaction
552
+  (0.1ms) begin transaction
553
+ ------------------------------------------------------
554
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
555
+ ------------------------------------------------------
556
+  (0.0ms) rollback transaction
557
+  (0.1ms) begin transaction
558
+ -------------------------------------------------------------------------------
559
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
560
+ -------------------------------------------------------------------------------
561
+  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-08 18:41:08.280089','2015-10-08 18:41:08.280093')
562
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
563
+  (0.6ms) rollback transaction
564
+  (0.1ms) begin transaction
565
+ ----------------------------------------------------------------
566
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
567
+ ----------------------------------------------------------------
568
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Yo',20,'f','2015-10-08 18:41:08.283648','2015-10-08 18:41:08.283648')
569
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
570
+  (0.5ms) rollback transaction
571
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
572
+  (0.1ms) begin transaction
573
+ --------------------------------------------------------
574
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
575
+ --------------------------------------------------------
576
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Yo',15,'f','2015-10-08 18:41:32.845485','2015-10-08 18:41:32.845485'),('Hello',25,'t','2015-10-08 18:41:32.845485','2015-10-08 18:41:32.845485')
577
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
578
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
579
+  (2.0ms) rollback transaction
580
+  (0.1ms) begin transaction
581
+ ------------------------------------------------------
582
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
583
+ ------------------------------------------------------
584
+  (0.0ms) rollback transaction
585
+  (0.1ms) begin transaction
586
+ -------------------------------------------------------------------------------
587
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
588
+ -------------------------------------------------------------------------------
589
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-08 18:41:32.862870','2015-10-08 18:41:32.862872')
590
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
591
+  (0.5ms) rollback transaction
592
+  (0.0ms) begin transaction
593
+ --------------------------------------------------------------------
594
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
595
+ --------------------------------------------------------------------
596
+  (0.0ms) rollback transaction
597
+  (0.1ms) begin transaction
598
+ ----------------------------------------------------------------
599
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
600
+ ----------------------------------------------------------------
601
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Yo',20,'f','2015-10-08 18:41:32.865967','2015-10-08 18:41:32.865967')
602
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
603
+  (0.3ms) rollback transaction
604
+  (0.1ms) begin transaction
605
+ -------------------------------------------------------------------
606
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
607
+ -------------------------------------------------------------------
608
+  (0.0ms) SELECT COUNT(*) FROM "testings"
609
+  (0.0ms) SELECT COUNT(*) FROM "testings"
610
+  (0.0ms) rollback transaction
611
+  (0.1ms) begin transaction
612
+ ---------------------------------------------------------
613
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
614
+ ---------------------------------------------------------
615
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-08 18:41:32.869268','2015-10-08 18:41:32.869268')
616
+  (0.4ms) rollback transaction
617
+  (0.1ms) begin transaction
618
+ ----------------------------------------------------------------------------------
619
+ BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
620
+ ----------------------------------------------------------------------------------
621
+  (0.1ms) SELECT COUNT(*) FROM "testings"
622
+  (0.0ms) rollback transaction
623
+  (0.0ms) begin transaction
624
+ --------------------------
625
+ BulkInsertTest: test_truth
626
+ --------------------------
627
+  (0.1ms) rollback transaction
628
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
629
+  (0.1ms) begin transaction
630
+ --------------------------
631
+ BulkInsertTest: test_truth
632
+ --------------------------
633
+  (0.1ms) rollback transaction
634
+  (0.0ms) begin transaction
635
+ -------------------------------------------------------------------
636
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
637
+ -------------------------------------------------------------------
638
+  (0.1ms) SELECT COUNT(*) FROM "testings"
639
+  (0.0ms) SELECT COUNT(*) FROM "testings"
640
+  (0.0ms) rollback transaction
641
+  (0.0ms) begin transaction
642
+ --------------------------------------------------------
643
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
644
+ --------------------------------------------------------
645
+  (0.0ms) rollback transaction
646
+  (0.1ms) begin transaction
647
+ ------------------------------------------------------
648
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
649
+ ------------------------------------------------------
650
+  (0.1ms) rollback transaction
651
+  (0.1ms) begin transaction
652
+ ---------------------------------------------------------
653
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
654
+ ---------------------------------------------------------
655
+  (0.0ms) rollback transaction
656
+  (0.0ms) begin transaction
657
+ ----------------------------------------------------------------
658
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
659
+ ----------------------------------------------------------------
660
+  (0.0ms) rollback transaction
661
+  (0.1ms) begin transaction
662
+ -------------------------------------------------------------------------------
663
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
664
+ -------------------------------------------------------------------------------
665
+  (0.0ms) rollback transaction
666
+  (0.1ms) begin transaction
667
+ ----------------------------------------------------------------------------------
668
+ BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
669
+ ----------------------------------------------------------------------------------
670
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-08 18:41:59.387919','2015-10-08 18:41:59.387919')
671
+  (0.0ms) SELECT COUNT(*) FROM "testings"
672
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
673
+  (1.9ms) rollback transaction
674
+  (0.1ms) begin transaction
675
+ --------------------------------------------------------------------
676
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
677
+ --------------------------------------------------------------------
678
+  (0.1ms) rollback transaction
679
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
680
+  (0.1ms) begin transaction
681
+ ----------------------------------------------------------------------------------
682
+ BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
683
+ ----------------------------------------------------------------------------------
684
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-08 18:42:13.466211','2015-10-08 18:42:13.466211')
685
+  (0.0ms) SELECT COUNT(*) FROM "testings"
686
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
687
+  (2.0ms) rollback transaction
688
+  (0.1ms) begin transaction
689
+ ---------------------------------------------------------
690
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
691
+ ---------------------------------------------------------
692
+  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-08 18:42:13.477072','2015-10-08 18:42:13.477072')
693
+  (0.4ms) rollback transaction
694
+  (0.1ms) begin transaction
695
+ -------------------------------------------------------------------------------
696
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
697
+ -------------------------------------------------------------------------------
698
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-08 18:42:13.479323','2015-10-08 18:42:13.479325')
699
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
700
+  (0.5ms) rollback transaction
701
+  (0.1ms) begin transaction
702
+ --------------------------------------------------------
703
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
704
+ --------------------------------------------------------
705
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Yo',15,'f','2015-10-08 18:42:13.481608','2015-10-08 18:42:13.481608'),('Hello',25,'t','2015-10-08 18:42:13.481608','2015-10-08 18:42:13.481608')
706
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
707
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
708
+  (0.6ms) rollback transaction
709
+  (0.1ms) begin transaction
710
+ --------------------------------------------------------------------
711
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
712
+ --------------------------------------------------------------------
713
+  (0.0ms) rollback transaction
714
+  (0.1ms) begin transaction
715
+ ------------------------------------------------------
716
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
717
+ ------------------------------------------------------
718
+  (0.1ms) rollback transaction
719
+  (0.2ms) begin transaction
720
+ ----------------------------------------------------------------
721
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
722
+ ----------------------------------------------------------------
723
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Yo',20,'f','2015-10-08 18:42:13.489269','2015-10-08 18:42:13.489269')
724
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
725
+  (0.4ms) rollback transaction
726
+  (0.1ms) begin transaction
727
+ -------------------------------------------------------------------
728
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
729
+ -------------------------------------------------------------------
730
+  (0.1ms) SELECT COUNT(*) FROM "testings"
731
+  (0.0ms) SELECT COUNT(*) FROM "testings"
732
+  (0.0ms) rollback transaction
733
+  (0.0ms) begin transaction
734
+ --------------------------
735
+ BulkInsertTest: test_truth
736
+ --------------------------
737
+  (0.1ms) rollback transaction
738
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
739
+  (0.1ms) begin transaction
740
+ --------------------------
741
+ BulkInsertTest: test_truth
742
+ --------------------------
743
+  (0.1ms) rollback transaction
744
+  (0.0ms) begin transaction
745
+ --------------------------------------------------------
746
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
747
+ --------------------------------------------------------
748
+  (1.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Yo',15,'f','2015-10-08 19:19:49.198581','2015-10-08 19:19:49.198581'),('Hello',25,'t','2015-10-08 19:19:49.198581','2015-10-08 19:19:49.198581')
749
+ Testing Load (0.2ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
750
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
751
+  (0.5ms) rollback transaction
752
+  (0.1ms) begin transaction
753
+ -------------------------------------------
754
+ BulkInsertWorkerTest: test_default_set_size
755
+ -------------------------------------------
756
+  (0.0ms) rollback transaction
757
+  (0.1ms) begin transaction
758
+ --------------------------------------------------------------------
759
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
760
+ --------------------------------------------------------------------
761
+  (0.0ms) rollback transaction
762
+  (0.1ms) begin transaction
763
+ -------------------------------------------------------------------
764
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
765
+ -------------------------------------------------------------------
766
+  (0.1ms) SELECT COUNT(*) FROM "testings"
767
+  (0.0ms) SELECT COUNT(*) FROM "testings"
768
+  (0.0ms) rollback transaction
769
+  (0.1ms) begin transaction
770
+ ----------------------------------------------------------------------------------
771
+ BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
772
+ ----------------------------------------------------------------------------------
773
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-08 19:19:49.218044','2015-10-08 19:19:49.218044')
774
+  (0.0ms) SELECT COUNT(*) FROM "testings"
775
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
776
+  (0.4ms) rollback transaction
777
+  (0.1ms) begin transaction
778
+ ------------------------------------------------------
779
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
780
+ ------------------------------------------------------
781
+  (0.0ms) rollback transaction
782
+  (0.0ms) begin transaction
783
+ -------------------------------------------------------------------------------
784
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
785
+ -------------------------------------------------------------------------------
786
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-08 19:19:49.221028','2015-10-08 19:19:49.221029')
787
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
788
+  (0.4ms) rollback transaction
789
+  (0.1ms) begin transaction
790
+ ---------------------------------------------------------
791
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
792
+ ---------------------------------------------------------
793
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-08 19:19:49.222872','2015-10-08 19:19:49.222872')
794
+  (0.4ms) rollback transaction
795
+  (0.1ms) begin transaction
796
+ ----------------------------------------------------------------
797
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
798
+ ----------------------------------------------------------------
799
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Yo',20,'f','2015-10-08 19:19:49.224626','2015-10-08 19:19:49.224626')
800
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
801
+  (0.4ms) rollback transaction
802
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
803
+  (0.1ms) begin transaction
804
+ -------------------------------------------------------------------
805
+ BulkInsertTest: test_bulk_insert_without_block_should_return_worker
806
+ -------------------------------------------------------------------
807
+  (0.1ms) rollback transaction
808
+  (0.0ms) begin transaction
809
+ -------------------------------------------------------------------
810
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
811
+ -------------------------------------------------------------------
812
+  (0.1ms) SELECT COUNT(*) FROM "testings"
813
+  (0.0ms) SELECT COUNT(*) FROM "testings"
814
+  (0.0ms) rollback transaction
815
+  (0.0ms) begin transaction
816
+ -------------------------------------------
817
+ BulkInsertWorkerTest: test_default_set_size
818
+ -------------------------------------------
819
+  (0.0ms) rollback transaction
820
+  (0.0ms) begin transaction
821
+ ----------------------------------------------------------------
822
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
823
+ ----------------------------------------------------------------
824
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Yo',20,'f','2015-10-08 19:27:55.348942','2015-10-08 19:27:55.348942')
825
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
826
+  (0.5ms) rollback transaction
827
+  (0.1ms) begin transaction
828
+ -------------------------------------------------------------------------------
829
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
830
+ -------------------------------------------------------------------------------
831
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-08 19:27:55.357495','2015-10-08 19:27:55.357496')
832
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
833
+  (0.4ms) rollback transaction
834
+  (0.1ms) begin transaction
835
+ ---------------------------------------------------------
836
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
837
+ ---------------------------------------------------------
838
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-08 19:27:55.359588','2015-10-08 19:27:55.359588')
839
+  (0.4ms) rollback transaction
840
+  (0.1ms) begin transaction
841
+ ------------------------------------------------------
842
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
843
+ ------------------------------------------------------
844
+  (0.0ms) rollback transaction
845
+  (0.1ms) begin transaction
846
+ --------------------------------------------------------
847
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
848
+ --------------------------------------------------------
849
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Yo',15,'f','2015-10-08 19:27:55.361931','2015-10-08 19:27:55.361931'),('Hello',25,'t','2015-10-08 19:27:55.361931','2015-10-08 19:27:55.361931')
850
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
851
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
852
+  (0.5ms) rollback transaction
853
+  (0.1ms) begin transaction
854
+ --------------------------------------------------------------------
855
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
856
+ --------------------------------------------------------------------
857
+  (0.0ms) rollback transaction
858
+  (0.1ms) begin transaction
859
+ ----------------------------------------------------------------------------------
860
+ BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
861
+ ----------------------------------------------------------------------------------
862
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-08 19:27:55.368129','2015-10-08 19:27:55.368129')
863
+  (0.1ms) SELECT COUNT(*) FROM "testings"
864
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
865
+  (0.4ms) rollback transaction
866
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
867
+  (0.1ms) begin transaction
868
+ -------------------------------------------------------------------
869
+ BulkInsertTest: test_bulk_insert_without_block_should_return_worker
870
+ -------------------------------------------------------------------
871
+  (0.1ms) rollback transaction
872
+  (0.0ms) begin transaction
873
+ --------------------------------------------------------------------
874
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
875
+ --------------------------------------------------------------------
876
+  (0.0ms) rollback transaction
877
+  (0.0ms) begin transaction
878
+ ------------------------------------------------------
879
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
880
+ ------------------------------------------------------
881
+  (0.1ms) rollback transaction
882
+  (0.0ms) begin transaction
883
+ ---------------------------------------------------------
884
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
885
+ ---------------------------------------------------------
886
+  (1.0ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-08 19:28:19.695411','2015-10-08 19:28:19.695411')
887
+  (1.9ms) rollback transaction
888
+  (0.1ms) begin transaction
889
+ -------------------------------------------------------------------
890
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
891
+ -------------------------------------------------------------------
892
+  (0.1ms) SELECT COUNT(*) FROM "testings"
893
+  (0.1ms) SELECT COUNT(*) FROM "testings"
894
+  (0.0ms) rollback transaction
895
+  (0.0ms) begin transaction
896
+ --------------------------------------------------------
897
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
898
+ --------------------------------------------------------
899
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Yo',15,'f','2015-10-08 19:28:19.702958','2015-10-08 19:28:19.702958'),('Hello',25,'t','2015-10-08 19:28:19.702958','2015-10-08 19:28:19.702958')
900
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
901
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
902
+  (0.7ms) rollback transaction
903
+  (0.1ms) begin transaction
904
+ ----------------------------------------------------------------
905
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
906
+ ----------------------------------------------------------------
907
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Yo',20,'f','2015-10-08 19:28:19.713902','2015-10-08 19:28:19.713902')
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_default_set_size
913
+ -------------------------------------------
914
+  (0.0ms) rollback transaction
915
+  (0.1ms) begin transaction
916
+ ----------------------------------------------------------------------------------
917
+ BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
918
+ ----------------------------------------------------------------------------------
919
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-08 19:28:19.716840','2015-10-08 19:28:19.716840')
920
+  (0.0ms) SELECT COUNT(*) FROM "testings"
921
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
922
+  (0.4ms) rollback transaction
923
+  (0.1ms) begin transaction
924
+ -------------------------------------------------------------------------------
925
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
926
+ -------------------------------------------------------------------------------
927
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-08 19:28:19.718998','2015-10-08 19:28:19.719000')
928
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
929
+  (0.5ms) rollback transaction
930
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
931
+  (0.1ms) begin transaction
932
+ ---------------------------------------------------------------
933
+ BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
934
+ ---------------------------------------------------------------
935
+  (0.0ms) SAVEPOINT active_record_1
936
+  (0.0ms) RELEASE SAVEPOINT active_record_1
937
+  (0.0ms) rollback transaction
938
+  (0.1ms) begin transaction
939
+ -------------------------------------------------------------------
940
+ BulkInsertTest: test_bulk_insert_without_block_should_return_worker
941
+ -------------------------------------------------------------------
942
+  (0.0ms) rollback transaction
943
+  (0.0ms) begin transaction
944
+ -------------------------------------------
945
+ BulkInsertWorkerTest: test_default_set_size
946
+ -------------------------------------------
947
+  (0.0ms) rollback transaction
948
+  (0.1ms) begin transaction
949
+ --------------------------------------------------------
950
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
951
+ --------------------------------------------------------
952
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Yo',15,'f','2015-10-08 19:29:51.980737','2015-10-08 19:29:51.980737'),('Hello',25,'t','2015-10-08 19:29:51.980737','2015-10-08 19:29:51.980737')
953
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
954
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
955
+  (2.3ms) rollback transaction
956
+  (0.2ms) begin transaction
957
+ ------------------------------------------------------
958
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
959
+ ------------------------------------------------------
960
+  (0.1ms) rollback transaction
961
+  (0.1ms) begin transaction
962
+ ----------------------------------------------------------------
963
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
964
+ ----------------------------------------------------------------
965
+  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Yo',20,'f','2015-10-08 19:29:51.996477','2015-10-08 19:29:51.996477')
966
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
967
+  (0.6ms) rollback transaction
968
+  (0.1ms) begin transaction
969
+ --------------------------------------------------------------------
970
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
971
+ --------------------------------------------------------------------
972
+  (0.0ms) rollback transaction
973
+  (0.0ms) begin transaction
974
+ -------------------------------------------------------------------------------
975
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
976
+ -------------------------------------------------------------------------------
977
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-08 19:29:52.000596','2015-10-08 19:29:52.000598')
978
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
979
+  (0.4ms) rollback transaction
980
+  (0.1ms) begin transaction
981
+ ----------------------------------------------------------------------------------
982
+ BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
983
+ ----------------------------------------------------------------------------------
984
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-08 19:29:52.002596','2015-10-08 19:29:52.002596')
985
+  (0.1ms) SELECT COUNT(*) FROM "testings"
986
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
987
+  (0.5ms) rollback transaction
988
+  (0.1ms) begin transaction
989
+ ---------------------------------------------------------
990
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
991
+ ---------------------------------------------------------
992
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-08 19:29:52.005251','2015-10-08 19:29:52.005251')
993
+  (0.4ms) rollback transaction
994
+  (0.1ms) begin transaction
995
+ -------------------------------------------------------------------
996
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
997
+ -------------------------------------------------------------------
998
+  (0.1ms) SELECT COUNT(*) FROM "testings"
999
+  (0.0ms) SELECT COUNT(*) FROM "testings"
1000
+  (0.0ms) rollback transaction
1001
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1002
+  (0.1ms) begin transaction
1003
+ --------------------------------------------------------
1004
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
1005
+ --------------------------------------------------------
1006
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Yo',15,'f','2015-10-08 19:30:46.363080','2015-10-08 19:30:46.363080'),('Hello',25,'t','2015-10-08 19:30:46.363080','2015-10-08 19:30:46.363080')
1007
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
1008
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
1009
+  (2.6ms) rollback transaction
1010
+  (0.1ms) begin transaction
1011
+ ----------------------------------------------------------------------------------
1012
+ BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
1013
+ ----------------------------------------------------------------------------------
1014
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-08 19:30:46.379389','2015-10-08 19:30:46.379389')
1015
+  (0.1ms) SELECT COUNT(*) FROM "testings"
1016
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
1017
+  (0.5ms) rollback transaction
1018
+  (0.1ms) begin transaction
1019
+ ----------------------------------------------------------------
1020
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
1021
+ ----------------------------------------------------------------
1022
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Yo',20,'f','2015-10-08 19:30:46.382292','2015-10-08 19:30:46.382292')
1023
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
1024
+  (0.4ms) rollback transaction
1025
+  (0.2ms) begin transaction
1026
+ --------------------------------------------------------------------
1027
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
1028
+ --------------------------------------------------------------------
1029
+  (0.0ms) rollback transaction
1030
+  (0.1ms) begin transaction
1031
+ -------------------------------------------------------------------------------
1032
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
1033
+ -------------------------------------------------------------------------------
1034
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-08 19:30:46.384879','2015-10-08 19:30:46.384880')
1035
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
1036
+  (0.4ms) rollback transaction
1037
+  (0.1ms) begin transaction
1038
+ -------------------------------------------
1039
+ BulkInsertWorkerTest: test_default_set_size
1040
+ -------------------------------------------
1041
+  (0.1ms) rollback transaction
1042
+  (0.1ms) begin transaction
1043
+ ------------------------------------------------------
1044
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
1045
+ ------------------------------------------------------
1046
+  (0.0ms) rollback transaction
1047
+  (0.1ms) begin transaction
1048
+ ---------------------------------------------------------
1049
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
1050
+ ---------------------------------------------------------
1051
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-08 19:30:46.388867','2015-10-08 19:30:46.388867')
1052
+  (0.5ms) rollback transaction
1053
+  (0.1ms) begin transaction
1054
+ -------------------------------------------------------------------
1055
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
1056
+ -------------------------------------------------------------------
1057
+  (0.1ms) SELECT COUNT(*) FROM "testings"
1058
+  (0.0ms) SELECT COUNT(*) FROM "testings"
1059
+  (0.0ms) rollback transaction
1060
+  (0.0ms) begin transaction
1061
+ ---------------------------------------------------------------------
1062
+ BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
1063
+ ---------------------------------------------------------------------
1064
+  (0.1ms) SELECT COUNT(*) FROM "testings"
1065
+  (0.0ms) SAVEPOINT active_record_1
1066
+  (0.5ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',NULL,NULL,'2015-10-08 19:30:46.394298','2015-10-08 19:30:46.394301')
1067
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1068
+  (0.1ms) SELECT COUNT(*) FROM "testings"
1069
+  (0.6ms) rollback transaction
1070
+  (0.0ms) begin transaction
1071
+ ---------------------------------------------------------------
1072
+ BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
1073
+ ---------------------------------------------------------------
1074
+  (0.0ms) SAVEPOINT active_record_1
1075
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1076
+  (0.0ms) rollback transaction
1077
+  (0.0ms) begin transaction
1078
+ -------------------------------------------------------------------
1079
+ BulkInsertTest: test_bulk_insert_without_block_should_return_worker
1080
+ -------------------------------------------------------------------
1081
+  (0.0ms) rollback transaction
1082
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
1083
+  (0.1ms) begin transaction
1084
+ ---------------------------------------------------------------
1085
+ BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
1086
+ ---------------------------------------------------------------
1087
+  (0.0ms) SAVEPOINT active_record_1
1088
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1089
+  (0.0ms) rollback transaction
1090
+  (0.0ms) begin transaction
1091
+ ---------------------------------------------------------------------
1092
+ BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
1093
+ ---------------------------------------------------------------------
1094
+  (0.5ms) SELECT COUNT(*) FROM "testings"
1095
+  (0.0ms) SAVEPOINT active_record_1
1096
+  (0.7ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',NULL,NULL,'2015-10-09 03:35:12.083541','2015-10-09 03:35:12.083543')
1097
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1098
+  (0.1ms) SELECT COUNT(*) FROM "testings"
1099
+  (0.4ms) rollback transaction
1100
+  (0.1ms) begin transaction
1101
+ -------------------------------------------------------------------
1102
+ BulkInsertTest: test_bulk_insert_without_block_should_return_worker
1103
+ -------------------------------------------------------------------
1104
+  (0.0ms) rollback transaction
1105
+  (0.0ms) begin transaction
1106
+ ------------------------------------------------------
1107
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
1108
+ ------------------------------------------------------
1109
+  (0.0ms) rollback transaction
1110
+  (0.0ms) begin transaction
1111
+ -------------------------------------------
1112
+ BulkInsertWorkerTest: test_default_set_size
1113
+ -------------------------------------------
1114
+  (0.0ms) rollback transaction
1115
+  (0.1ms) begin transaction
1116
+ ----------------------------------------------------------------
1117
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
1118
+ ----------------------------------------------------------------
1119
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Yo',20,'f','2015-10-09 03:35:12.090722','2015-10-09 03:35:12.090722')
1120
+ Testing Load (0.2ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
1121
+  (0.5ms) rollback transaction
1122
+  (0.1ms) begin transaction
1123
+ --------------------------------------------------------------------
1124
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
1125
+ --------------------------------------------------------------------
1126
+  (0.0ms) rollback transaction
1127
+  (0.1ms) begin transaction
1128
+ ----------------------------------------------------------------------------------
1129
+ BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
1130
+ ----------------------------------------------------------------------------------
1131
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-09 03:35:12.098305','2015-10-09 03:35:12.098305')
1132
+  (0.1ms) SELECT COUNT(*) FROM "testings"
1133
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
1134
+  (0.5ms) rollback transaction
1135
+  (0.1ms) begin transaction
1136
+ -------------------------------------------------------------------------------
1137
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
1138
+ -------------------------------------------------------------------------------
1139
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-09 03:35:12.100627','2015-10-09 03:35:12.100628')
1140
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
1141
+  (0.4ms) rollback transaction
1142
+  (0.1ms) begin transaction
1143
+ --------------------------------------------------------
1144
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
1145
+ --------------------------------------------------------
1146
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Yo',15,'f','2015-10-09 03:35:12.102561','2015-10-09 03:35:12.102561'),('Hello',25,'t','2015-10-09 03:35:12.102561','2015-10-09 03:35:12.102561')
1147
+ Testing Load (0.2ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
1148
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
1149
+  (0.5ms) rollback transaction
1150
+  (0.1ms) begin transaction
1151
+ ---------------------------------------------------------
1152
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
1153
+ ---------------------------------------------------------
1154
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-09 03:35:12.112592','2015-10-09 03:35:12.112592')
1155
+  (9.0ms) rollback transaction
1156
+  (0.0ms) begin transaction
1157
+ -------------------------------------------------------------------
1158
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
1159
+ -------------------------------------------------------------------
1160
+  (0.1ms) SELECT COUNT(*) FROM "testings"
1161
+  (0.0ms) SELECT COUNT(*) FROM "testings"
1162
+  (0.0ms) rollback transaction
1163
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
1164
+  (0.1ms) begin transaction
1165
+ ---------------------------------------------------------------------
1166
+ BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
1167
+ ---------------------------------------------------------------------
1168
+  (0.5ms) SELECT COUNT(*) FROM "testings"
1169
+  (0.0ms) SAVEPOINT active_record_1
1170
+  (0.7ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',NULL,NULL,'2015-10-09 14:46:00.198423','2015-10-09 14:46:00.198425')
1171
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1172
+  (0.1ms) SELECT COUNT(*) FROM "testings"
1173
+  (0.5ms) rollback transaction
1174
+  (0.1ms) begin transaction
1175
+ -------------------------------------------------------------------
1176
+ BulkInsertTest: test_bulk_insert_without_block_should_return_worker
1177
+ -------------------------------------------------------------------
1178
+  (0.1ms) rollback transaction
1179
+  (0.1ms) begin transaction
1180
+ ---------------------------------------------------------------
1181
+ BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
1182
+ ---------------------------------------------------------------
1183
+  (0.0ms) SAVEPOINT active_record_1
1184
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1185
+  (0.0ms) rollback transaction
1186
+  (0.0ms) begin transaction
1187
+ -------------------------------------------
1188
+ BulkInsertWorkerTest: test_default_set_size
1189
+ -------------------------------------------
1190
+  (0.0ms) rollback transaction
1191
+  (0.1ms) begin transaction
1192
+ ------------------------------------------------------
1193
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
1194
+ ------------------------------------------------------
1195
+  (0.0ms) rollback transaction
1196
+  (0.1ms) begin transaction
1197
+ --------------------------------------------------------
1198
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
1199
+ --------------------------------------------------------
1200
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Yo',15,'f','2015-10-09 14:46:00.208247','2015-10-09 14:46:00.208247'),('Hello',25,'t','2015-10-09 14:46:00.208247','2015-10-09 14:46:00.208247')
1201
+ Testing Load (0.2ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
1202
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
1203
+  (0.5ms) rollback transaction
1204
+  (0.1ms) begin transaction
1205
+ -------------------------------------------------------------------------------
1206
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
1207
+ -------------------------------------------------------------------------------
1208
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-09 14:46:00.221284','2015-10-09 14:46:00.221285')
1209
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
1210
+  (0.4ms) rollback transaction
1211
+  (0.1ms) begin transaction
1212
+ ---------------------------------------------------------
1213
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
1214
+ ---------------------------------------------------------
1215
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-09 14:46:00.223669','2015-10-09 14:46:00.223669')
1216
+  (0.4ms) rollback transaction
1217
+  (0.1ms) begin transaction
1218
+ --------------------------------------------------------------------
1219
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
1220
+ --------------------------------------------------------------------
1221
+  (0.1ms) rollback transaction
1222
+  (0.1ms) begin transaction
1223
+ ----------------------------------------------------------------------------------
1224
+ BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
1225
+ ----------------------------------------------------------------------------------
1226
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-09 14:46:00.225847','2015-10-09 14:46:00.225847')
1227
+  (0.0ms) SELECT COUNT(*) FROM "testings"
1228
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
1229
+  (1.6ms) rollback transaction
1230
+  (0.1ms) begin transaction
1231
+ ----------------------------------------------------------------
1232
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
1233
+ ----------------------------------------------------------------
1234
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Yo',20,'f','2015-10-09 14:46:00.229546','2015-10-09 14:46:00.229546')
1235
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
1236
+  (0.5ms) rollback transaction
1237
+  (0.1ms) begin transaction
1238
+ -------------------------------------------------------------------
1239
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
1240
+ -------------------------------------------------------------------
1241
+  (0.1ms) SELECT COUNT(*) FROM "testings"
1242
+  (0.1ms) SELECT COUNT(*) FROM "testings"
1243
+  (0.0ms) rollback transaction
1244
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1245
+  (0.1ms) begin transaction
1246
+ ----------------------------------------------------------------
1247
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
1248
+ ----------------------------------------------------------------
1249
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Yo',20,'f','2015-10-09 14:48:19.244536','2015-10-09 14:48:19.244536')
1250
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
1251
+  (2.9ms) rollback transaction
1252
+  (0.1ms) begin transaction
1253
+ -------------------------------------------------------------------------------
1254
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
1255
+ -------------------------------------------------------------------------------
1256
+  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-09 14:48:19.256256','2015-10-09 14:48:19.256257')
1257
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
1258
+  (0.5ms) rollback transaction
1259
+  (0.1ms) begin transaction
1260
+ ------------------------------------------------------
1261
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
1262
+ ------------------------------------------------------
1263
+  (0.0ms) rollback transaction
1264
+  (0.0ms) begin transaction
1265
+ -------------------------------------------
1266
+ BulkInsertWorkerTest: test_default_set_size
1267
+ -------------------------------------------
1268
+  (0.0ms) rollback transaction
1269
+  (0.1ms) begin transaction
1270
+ --------------------------------------------------------------------
1271
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
1272
+ --------------------------------------------------------------------
1273
+  (0.0ms) rollback transaction
1274
+  (0.1ms) begin transaction
1275
+ -------------------------------------------------------------------
1276
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
1277
+ -------------------------------------------------------------------
1278
+  (0.1ms) SELECT COUNT(*) FROM "testings"
1279
+  (0.0ms) SELECT COUNT(*) FROM "testings"
1280
+  (0.1ms) rollback transaction
1281
+  (0.1ms) begin transaction
1282
+ --------------------------------------------------------
1283
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
1284
+ --------------------------------------------------------
1285
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Yo',15,'f','2015-10-09 14:48:19.262675','2015-10-09 14:48:19.262675'),('Hello',25,'t','2015-10-09 14:48:19.262675','2015-10-09 14:48:19.262675')
1286
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
1287
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
1288
+  (0.6ms) rollback transaction
1289
+  (0.1ms) begin transaction
1290
+ ---------------------------------------------------------
1291
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
1292
+ ---------------------------------------------------------
1293
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-09 14:48:19.268550','2015-10-09 14:48:19.268550')
1294
+  (0.4ms) rollback transaction
1295
+  (0.1ms) begin transaction
1296
+ ----------------------------------------------------------------------------------
1297
+ BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
1298
+ ----------------------------------------------------------------------------------
1299
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-09 14:48:19.270250','2015-10-09 14:48:19.270250')
1300
+  (0.1ms) SELECT COUNT(*) FROM "testings"
1301
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
1302
+  (0.4ms) rollback transaction
1303
+  (0.0ms) begin transaction
1304
+ ---------------------------------------------------------------
1305
+ BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
1306
+ ---------------------------------------------------------------
1307
+  (0.0ms) SAVEPOINT active_record_1
1308
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1309
+  (0.0ms) rollback transaction
1310
+  (0.1ms) begin transaction
1311
+ ---------------------------------------------------------------------
1312
+ BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
1313
+ ---------------------------------------------------------------------
1314
+  (0.1ms) SELECT COUNT(*) FROM "testings"
1315
+  (0.0ms) SAVEPOINT active_record_1
1316
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',NULL,NULL,'2015-10-09 14:48:19.274780','2015-10-09 14:48:19.274782')
1317
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1318
+  (0.0ms) SELECT COUNT(*) FROM "testings"
1319
+  (1.5ms) rollback transaction
1320
+  (0.1ms) begin transaction
1321
+ -------------------------------------------------------------------
1322
+ BulkInsertTest: test_bulk_insert_without_block_should_return_worker
1323
+ -------------------------------------------------------------------
1324
+  (0.0ms) rollback transaction
1325
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1326
+  (0.1ms) begin transaction
1327
+ ---------------------------------------------------------------------
1328
+ BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
1329
+ ---------------------------------------------------------------------
1330
+  (0.1ms) SELECT COUNT(*) FROM "testings"
1331
+  (0.0ms) SAVEPOINT active_record_1
1332
+  (1.5ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',NULL,NULL,'2015-10-09 14:54:29.775395','2015-10-09 14:54:29.775397')
1333
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1334
+  (0.1ms) SELECT COUNT(*) FROM "testings"
1335
+  (1.9ms) rollback transaction
1336
+  (0.1ms) begin transaction
1337
+ -------------------------------------------------------------------
1338
+ BulkInsertTest: test_bulk_insert_without_block_should_return_worker
1339
+ -------------------------------------------------------------------
1340
+  (0.0ms) rollback transaction
1341
+  (0.1ms) begin transaction
1342
+ ---------------------------------------------------------------
1343
+ BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
1344
+ ---------------------------------------------------------------
1345
+  (0.0ms) SAVEPOINT active_record_1
1346
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1347
+  (0.0ms) rollback transaction
1348
+  (0.0ms) begin transaction
1349
+ --------------------------------------------------------------------
1350
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
1351
+ --------------------------------------------------------------------
1352
+  (0.0ms) rollback transaction
1353
+  (0.1ms) begin transaction
1354
+ -------------------------------------------------------------------------------
1355
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
1356
+ -------------------------------------------------------------------------------
1357
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-09 14:54:29.786767','2015-10-09 14:54:29.786768')
1358
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
1359
+  (0.5ms) rollback transaction
1360
+  (0.1ms) begin transaction
1361
+ ----------------------------------------------------------------
1362
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
1363
+ ----------------------------------------------------------------
1364
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Yo',20,'f','2015-10-09 14:54:29.794916','2015-10-09 14:54:29.794916')
1365
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
1366
+  (0.4ms) rollback transaction
1367
+  (0.1ms) begin transaction
1368
+ --------------------------------------------------------
1369
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
1370
+ --------------------------------------------------------
1371
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Yo',15,'f','2015-10-09 14:54:29.797049','2015-10-09 14:54:29.797049'),('Hello',25,'t','2015-10-09 14:54:29.797049','2015-10-09 14:54:29.797049')
1372
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
1373
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
1374
+  (0.6ms) rollback transaction
1375
+  (0.1ms) begin transaction
1376
+ -------------------------------------------------------------------
1377
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
1378
+ -------------------------------------------------------------------
1379
+  (0.0ms) SELECT COUNT(*) FROM "testings"
1380
+  (0.0ms) SELECT COUNT(*) FROM "testings"
1381
+  (0.1ms) rollback transaction
1382
+  (0.1ms) begin transaction
1383
+ -------------------------------------------
1384
+ BulkInsertWorkerTest: test_default_set_size
1385
+ -------------------------------------------
1386
+  (0.1ms) rollback transaction
1387
+  (0.0ms) begin transaction
1388
+ ----------------------------------------------------------------------------------
1389
+ BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
1390
+ ----------------------------------------------------------------------------------
1391
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-09 14:54:29.806465','2015-10-09 14:54:29.806465')
1392
+  (0.1ms) SELECT COUNT(*) FROM "testings"
1393
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
1394
+  (0.4ms) rollback transaction
1395
+  (0.0ms) begin transaction
1396
+ ---------------------------------------------------------
1397
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
1398
+ ---------------------------------------------------------
1399
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-09 14:54:29.809471','2015-10-09 14:54:29.809471')
1400
+  (0.4ms) rollback transaction
1401
+  (0.1ms) begin transaction
1402
+ ------------------------------------------------------
1403
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
1404
+ ------------------------------------------------------
1405
+  (0.1ms) rollback transaction
1406
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
1407
+  (0.1ms) begin transaction
1408
+ ------------------------------------------------------
1409
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
1410
+ ------------------------------------------------------
1411
+  (0.1ms) rollback transaction
1412
+  (0.1ms) begin transaction
1413
+ -------------------------------------------------------------------------------
1414
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
1415
+ -------------------------------------------------------------------------------
1416
+  (1.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-09 17:03:16.852866','2015-10-09 17:03:16.852867')
1417
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
1418
+  (0.5ms) rollback transaction
1419
+  (0.1ms) begin transaction
1420
+ ---------------------------------------------------------
1421
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
1422
+ ---------------------------------------------------------
1423
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-09 17:03:16.863828','2015-10-09 17:03:16.863828')
1424
+  (0.4ms) rollback transaction
1425
+  (0.1ms) begin transaction
1426
+ ----------------------------------------------------------------
1427
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
1428
+ ----------------------------------------------------------------
1429
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Yo',20,'f','2015-10-09 17:03:16.865241','2015-10-09 17:03:16.865241')
1430
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
1431
+  (0.5ms) rollback transaction
1432
+  (0.1ms) begin transaction
1433
+ ----------------------------------------------------------------------------------
1434
+ BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
1435
+ ----------------------------------------------------------------------------------
1436
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-09 17:03:16.867520','2015-10-09 17:03:16.867520')
1437
+  (0.1ms) SELECT COUNT(*) FROM "testings"
1438
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
1439
+  (0.5ms) rollback transaction
1440
+  (0.1ms) begin transaction
1441
+ --------------------------------------------------------
1442
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
1443
+ --------------------------------------------------------
1444
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Yo',15,'f','2015-10-09 17:03:16.870060','2015-10-09 17:03:16.870060'),('Hello',25,'t','2015-10-09 17:03:16.870060','2015-10-09 17:03:16.870060')
1445
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
1446
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
1447
+  (0.6ms) rollback transaction
1448
+  (0.1ms) begin transaction
1449
+ --------------------------------------------------------------------
1450
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
1451
+ --------------------------------------------------------------------
1452
+  (0.1ms) rollback transaction
1453
+  (0.1ms) begin transaction
1454
+ -------------------------------------------------------------------
1455
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
1456
+ -------------------------------------------------------------------
1457
+  (0.1ms) SELECT COUNT(*) FROM "testings"
1458
+  (0.0ms) SELECT COUNT(*) FROM "testings"
1459
+  (0.0ms) rollback transaction
1460
+  (0.1ms) begin transaction
1461
+ -------------------------------------------
1462
+ BulkInsertWorkerTest: test_default_set_size
1463
+ -------------------------------------------
1464
+  (0.0ms) rollback transaction
1465
+  (0.0ms) begin transaction
1466
+ -------------------------------------------------------------------
1467
+ BulkInsertTest: test_bulk_insert_without_block_should_return_worker
1468
+ -------------------------------------------------------------------
1469
+  (0.0ms) rollback transaction
1470
+  (0.1ms) begin transaction
1471
+ ---------------------------------------------------------------
1472
+ BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
1473
+ ---------------------------------------------------------------
1474
+  (0.0ms) SAVEPOINT active_record_1
1475
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1476
+  (0.0ms) rollback transaction
1477
+  (0.1ms) begin transaction
1478
+ ---------------------------------------------------------------------
1479
+ BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
1480
+ ---------------------------------------------------------------------
1481
+  (0.1ms) SELECT COUNT(*) FROM "testings"
1482
+  (0.1ms) SAVEPOINT active_record_1
1483
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',NULL,NULL,'2015-10-09 17:03:16.884635','2015-10-09 17:03:16.884637')
1484
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1485
+  (0.1ms) SELECT COUNT(*) FROM "testings"
1486
+  (0.5ms) rollback transaction
1487
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
1488
+  (0.1ms) begin transaction
1489
+ --------------------------------------------------------
1490
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
1491
+ --------------------------------------------------------
1492
+  (1.0ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Yo',15,'f','2015-10-09 18:49:52.551285','2015-10-09 18:49:52.551285'),('Hello',25,'t','2015-10-09 18:49:52.551285','2015-10-09 18:49:52.551285')
1493
+ Testing Load (0.2ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
1494
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
1495
+  (0.5ms) rollback transaction
1496
+  (0.1ms) begin transaction
1497
+ ----------------------------------------------------------------------------------
1498
+ BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
1499
+ ----------------------------------------------------------------------------------
1500
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-09 18:49:52.569935','2015-10-09 18:49:52.569935')
1501
+  (0.1ms) SELECT COUNT(*) FROM "testings"
1502
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
1503
+  (0.5ms) rollback transaction
1504
+  (0.1ms) begin transaction
1505
+ ---------------------------------------------------------
1506
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
1507
+ ---------------------------------------------------------
1508
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-09 18:49:52.572592','2015-10-09 18:49:52.572592')
1509
+  (0.4ms) rollback transaction
1510
+  (0.1ms) begin transaction
1511
+ -------------------------------------------------------------------------------
1512
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
1513
+ -------------------------------------------------------------------------------
1514
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',15,'t','2015-10-09 18:49:52.574026','2015-10-09 18:49:52.574028')
1515
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
1516
+  (0.4ms) rollback transaction
1517
+  (0.1ms) begin transaction
1518
+ ------------------------------------------------------
1519
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
1520
+ ------------------------------------------------------
1521
+  (0.0ms) rollback transaction
1522
+  (0.1ms) begin transaction
1523
+ -------------------------------------------
1524
+ BulkInsertWorkerTest: test_default_set_size
1525
+ -------------------------------------------
1526
+  (0.0ms) rollback transaction
1527
+  (0.1ms) begin transaction
1528
+ -------------------------------------------------------------------
1529
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
1530
+ -------------------------------------------------------------------
1531
+  (0.0ms) SELECT COUNT(*) FROM "testings"
1532
+  (0.0ms) SELECT COUNT(*) FROM "testings"
1533
+  (0.0ms) rollback transaction
1534
+  (0.1ms) begin transaction
1535
+ --------------------------------------------------------------------
1536
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
1537
+ --------------------------------------------------------------------
1538
+  (0.0ms) rollback transaction
1539
+  (0.1ms) begin transaction
1540
+ ----------------------------------------------------------------
1541
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
1542
+ ----------------------------------------------------------------
1543
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Yo',20,'f','2015-10-09 18:49:52.579549','2015-10-09 18:49:52.579549')
1544
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
1545
+  (0.5ms) rollback transaction
1546
+  (0.1ms) begin transaction
1547
+ -------------------------------------------------------------------
1548
+ BulkInsertTest: test_bulk_insert_without_block_should_return_worker
1549
+ -------------------------------------------------------------------
1550
+  (0.1ms) rollback transaction
1551
+  (0.0ms) begin transaction
1552
+ ---------------------------------------------------------------
1553
+ BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
1554
+ ---------------------------------------------------------------
1555
+  (0.0ms) SAVEPOINT active_record_1
1556
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1557
+  (0.0ms) rollback transaction
1558
+  (0.1ms) begin transaction
1559
+ ---------------------------------------------------------------------
1560
+ BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
1561
+ ---------------------------------------------------------------------
1562
+  (0.2ms) SELECT COUNT(*) FROM "testings"
1563
+  (0.0ms) SAVEPOINT active_record_1
1564
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at") VALUES ('Hello',NULL,NULL,'2015-10-09 18:49:52.598942','2015-10-09 18:49:52.598944')
1565
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1566
+  (0.0ms) SELECT COUNT(*) FROM "testings"
1567
+  (0.5ms) rollback transaction