bulk_insert 1.1.1 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bulk_insert/version.rb +2 -2
- data/lib/bulk_insert/worker.rb +7 -1
- data/test/dummy/log/test.log +1016 -0
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7d7a8883105803d8b04b69f6f16ebcacdcfac4b
|
4
|
+
data.tar.gz: 5b7b2b74f4adf00a2f2dd55de9c2857bdb8977b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bf39cb1362d1d5c1c3897191d9b3a223b0fea67f0f2b334bc992656433f7dfd9c30ec1019d709f9a8d851e2aa066949fd56db7af71297de7ead5da6c67465e0
|
7
|
+
data.tar.gz: 57aabe850a79488712f2a7022a04e73abdd1fc464cb4933be4a2f305c592035c19c206cf497f5d536efe81ddf1d4aacab5c30d1374368716b36b0c1cbf8fb905
|
data/lib/bulk_insert/version.rb
CHANGED
data/lib/bulk_insert/worker.rb
CHANGED
@@ -63,7 +63,13 @@ module BulkInsert
|
|
63
63
|
values = []
|
64
64
|
@columns.zip(row) do |column, value|
|
65
65
|
value = @now if value == :__timestamp_placeholder
|
66
|
-
|
66
|
+
|
67
|
+
if Rails.version >= "5.0.0"
|
68
|
+
value = @connection.type_cast_from_column(column, value) if column
|
69
|
+
values << @connection.quote(value)
|
70
|
+
else
|
71
|
+
values << @connection.quote(value, column)
|
72
|
+
end
|
67
73
|
end
|
68
74
|
rows << "(#{values.join(',')})"
|
69
75
|
end
|
data/test/dummy/log/test.log
CHANGED
@@ -1568,3 +1568,1019 @@ BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
|
|
1568
1568
|
BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
|
1569
1569
|
------------------------------------------------------------------------------
|
1570
1570
|
[1m[35m (0.1ms)[0m rollback transaction
|
1571
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1572
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1573
|
+
------------------------------------------------------------------------------
|
1574
|
+
BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
|
1575
|
+
------------------------------------------------------------------------------
|
1576
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
1577
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1578
|
+
---------------------------------------------------------------------
|
1579
|
+
BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
|
1580
|
+
---------------------------------------------------------------------
|
1581
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT COUNT(*) FROM "testings"[0m
|
1582
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1583
|
+
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2016-05-03 16:36:29.664634','2016-05-03 16:36:29.664634','chartreuse')[0m
|
1584
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1585
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "testings"[0m
|
1586
|
+
[1m[35m (0.8ms)[0m [1m[31mrollback transaction[0m
|
1587
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1588
|
+
---------------------------------------------------------------
|
1589
|
+
BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
|
1590
|
+
---------------------------------------------------------------
|
1591
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1592
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1593
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1594
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1595
|
+
-----------------------------------------------------------------------------
|
1596
|
+
BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
|
1597
|
+
-----------------------------------------------------------------------------
|
1598
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "testings"[0m
|
1599
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1600
|
+
[1m[35m (0.2ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2016-05-03 16:36:29.672404','chartreuse'),('Hey',20,'f','2016-05-03 16:36:29.672404','2016-05-03 16:36:29.672404','chartreuse')[0m
|
1601
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1602
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "testings"[0m
|
1603
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
1604
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1605
|
+
-------------------------------------------------------------------
|
1606
|
+
BulkInsertTest: test_bulk_insert_without_block_should_return_worker
|
1607
|
+
-------------------------------------------------------------------
|
1608
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
1609
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1610
|
+
--------------------------------------------------------------------
|
1611
|
+
BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
|
1612
|
+
--------------------------------------------------------------------
|
1613
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1614
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1615
|
+
----------------------------------------------------------------
|
1616
|
+
BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
|
1617
|
+
----------------------------------------------------------------
|
1618
|
+
[1m[35m (0.2ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:36:29.677247','2016-05-03 16:36:29.677247',NULL)[0m
|
1619
|
+
[1m[36mTesting Load (0.2ms)[0m [1m[34mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1620
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
1621
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1622
|
+
------------------------------------------------------
|
1623
|
+
BulkInsertWorkerTest: test_empty_insert_is_not_pending
|
1624
|
+
------------------------------------------------------
|
1625
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1626
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1627
|
+
-------------------------------------------
|
1628
|
+
BulkInsertWorkerTest: test_default_set_size
|
1629
|
+
-------------------------------------------
|
1630
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1631
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1632
|
+
-------------------------------------------------------------------
|
1633
|
+
BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
|
1634
|
+
-------------------------------------------------------------------
|
1635
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "testings"[0m
|
1636
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "testings"[0m
|
1637
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1638
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1639
|
+
--------------------------------------------------------
|
1640
|
+
BulkInsertWorkerTest: test_save!_inserts_pending_records
|
1641
|
+
--------------------------------------------------------
|
1642
|
+
[1m[35m (0.4ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2016-05-03 16:36:29.689397','2016-05-03 16:36:29.689397','chartreuse'),('Hello',25,'t','2016-05-03 16:36:29.689397','2016-05-03 16:36:29.689397','chartreuse')[0m
|
1643
|
+
[1m[36mTesting Load (0.2ms)[0m [1m[34mSELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ?[0m [["greeting", "Yo"], ["LIMIT", 1]]
|
1644
|
+
[1m[36mTesting Load (0.0ms)[0m [1m[34mSELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ?[0m [["greeting", "Hello"], ["LIMIT", 1]]
|
1645
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
1646
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1647
|
+
----------------------------------------------------------------
|
1648
|
+
BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
|
1649
|
+
----------------------------------------------------------------
|
1650
|
+
[1m[35m (0.2ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2016-05-03 16:36:29.697424','2016-05-03 16:36:29.697424','chartreuse')[0m
|
1651
|
+
[1m[36mTesting Load (0.0ms)[0m [1m[34mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1652
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
1653
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1654
|
+
----------------------------------------------------------------------------
|
1655
|
+
BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
|
1656
|
+
----------------------------------------------------------------------------
|
1657
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
1658
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1659
|
+
-------------------------------------------------------------------------------
|
1660
|
+
BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
|
1661
|
+
-------------------------------------------------------------------------------
|
1662
|
+
[1m[35m (0.2ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:36:29.702504','2016-05-03 16:36:29.702504','chartreuse')[0m
|
1663
|
+
[1m[36mTesting Load (0.0ms)[0m [1m[34mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1664
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
1665
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1666
|
+
---------------------------------------------------------------------
|
1667
|
+
BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
|
1668
|
+
---------------------------------------------------------------------
|
1669
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
1670
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1671
|
+
----------------------------------------------------------------------------------
|
1672
|
+
BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
|
1673
|
+
----------------------------------------------------------------------------------
|
1674
|
+
[1m[35m (0.2ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:36:29.706093','2016-05-03 16:36:29.706093','chartreuse')[0m
|
1675
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "testings"[0m
|
1676
|
+
[1m[36mTesting Load (0.1ms)[0m [1m[34mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1677
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
1678
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1679
|
+
----------------------------------------------------------------------------------------------
|
1680
|
+
BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
|
1681
|
+
----------------------------------------------------------------------------------------------
|
1682
|
+
[1m[35m (0.3ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:36:29.709530','2016-05-03 16:36:29.709530','chartreuse'),('Howdy',20,'f','2016-05-03 16:36:29.709530','2016-05-03 16:36:29.709530','chartreuse')[0m
|
1683
|
+
[1m[36mTesting Load (0.1ms)[0m [1m[34mSELECT "testings".* FROM "testings"[0m
|
1684
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
1685
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1686
|
+
---------------------------------------------------------
|
1687
|
+
BulkInsertWorkerTest: test_save!_makes_insert_not_pending
|
1688
|
+
---------------------------------------------------------
|
1689
|
+
[1m[35m (0.2ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:36:29.712302','2016-05-03 16:36:29.712302','chartreuse')[0m
|
1690
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
1691
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1692
|
+
------------------------------------------------------------------------------
|
1693
|
+
BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
|
1694
|
+
------------------------------------------------------------------------------
|
1695
|
+
[1m[35m (0.3ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:36:29.714090','2016-05-03 16:36:29.714090','chartreuse')[0m
|
1696
|
+
[1m[36mTesting Load (0.0ms)[0m [1m[34mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1697
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
1698
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1699
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1700
|
+
--------------------------------------------------------
|
1701
|
+
BulkInsertWorkerTest: test_save!_inserts_pending_records
|
1702
|
+
--------------------------------------------------------
|
1703
|
+
[1m[35m (0.8ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2016-05-03 16:39:10.769501','2016-05-03 16:39:10.769501','chartreuse'),('Hello',25,'t','2016-05-03 16:39:10.769501','2016-05-03 16:39:10.769501','chartreuse')[0m
|
1704
|
+
[1m[36mTesting Load (0.1ms)[0m [1m[34mSELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ?[0m [["greeting", "Yo"], ["LIMIT", 1]]
|
1705
|
+
[1m[36mTesting Load (0.0ms)[0m [1m[34mSELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ?[0m [["greeting", "Hello"], ["LIMIT", 1]]
|
1706
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
1707
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1708
|
+
------------------------------------------------------------------------------
|
1709
|
+
BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
|
1710
|
+
------------------------------------------------------------------------------
|
1711
|
+
[1m[35m (0.2ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:39:10.786277','2016-05-03 16:39:10.786277','chartreuse')[0m
|
1712
|
+
[1m[36mTesting Load (0.1ms)[0m [1m[34mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1713
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
1714
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1715
|
+
----------------------------------------------------------------
|
1716
|
+
BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
|
1717
|
+
----------------------------------------------------------------
|
1718
|
+
[1m[35m (0.2ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2016-05-03 16:39:10.788623','2016-05-03 16:39:10.788623','chartreuse')[0m
|
1719
|
+
[1m[36mTesting Load (0.0ms)[0m [1m[34mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1720
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
1721
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1722
|
+
--------------------------------------------------------------------
|
1723
|
+
BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
|
1724
|
+
--------------------------------------------------------------------
|
1725
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1726
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1727
|
+
------------------------------------------------------
|
1728
|
+
BulkInsertWorkerTest: test_empty_insert_is_not_pending
|
1729
|
+
------------------------------------------------------
|
1730
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1731
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1732
|
+
----------------------------------------------------------------
|
1733
|
+
BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
|
1734
|
+
----------------------------------------------------------------
|
1735
|
+
[1m[35m (0.2ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:39:10.792429','2016-05-03 16:39:10.792429',NULL)[0m
|
1736
|
+
[1m[36mTesting Load (0.0ms)[0m [1m[34mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1737
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
1738
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1739
|
+
---------------------------------------------------------------------
|
1740
|
+
BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
|
1741
|
+
---------------------------------------------------------------------
|
1742
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1743
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1744
|
+
-------------------------------------------
|
1745
|
+
BulkInsertWorkerTest: test_default_set_size
|
1746
|
+
-------------------------------------------
|
1747
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1748
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1749
|
+
-------------------------------------------------------------------------------
|
1750
|
+
BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
|
1751
|
+
-------------------------------------------------------------------------------
|
1752
|
+
[1m[35m (0.2ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:39:10.796526','2016-05-03 16:39:10.796526','chartreuse')[0m
|
1753
|
+
[1m[36mTesting Load (0.0ms)[0m [1m[34mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1754
|
+
[1m[35m (1.6ms)[0m [1m[31mrollback transaction[0m
|
1755
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1756
|
+
-------------------------------------------------------------------
|
1757
|
+
BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
|
1758
|
+
-------------------------------------------------------------------
|
1759
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "testings"[0m
|
1760
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "testings"[0m
|
1761
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
1762
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1763
|
+
----------------------------------------------------------------------------------------------
|
1764
|
+
BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
|
1765
|
+
----------------------------------------------------------------------------------------------
|
1766
|
+
[1m[35m (0.2ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:39:10.802575','2016-05-03 16:39:10.802575','chartreuse'),('Howdy',20,'f','2016-05-03 16:39:10.802575','2016-05-03 16:39:10.802575','chartreuse')[0m
|
1767
|
+
[1m[36mTesting Load (0.1ms)[0m [1m[34mSELECT "testings".* FROM "testings"[0m
|
1768
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
1769
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1770
|
+
---------------------------------------------------------
|
1771
|
+
BulkInsertWorkerTest: test_save!_makes_insert_not_pending
|
1772
|
+
---------------------------------------------------------
|
1773
|
+
[1m[35m (0.3ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:39:10.805335','2016-05-03 16:39:10.805335','chartreuse')[0m
|
1774
|
+
[1m[35m (0.8ms)[0m [1m[31mrollback transaction[0m
|
1775
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1776
|
+
----------------------------------------------------------------------------
|
1777
|
+
BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
|
1778
|
+
----------------------------------------------------------------------------
|
1779
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
1780
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1781
|
+
----------------------------------------------------------------------------------
|
1782
|
+
BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
|
1783
|
+
----------------------------------------------------------------------------------
|
1784
|
+
[1m[35m (0.2ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:39:10.809202','2016-05-03 16:39:10.809202','chartreuse')[0m
|
1785
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "testings"[0m
|
1786
|
+
[1m[36mTesting Load (0.0ms)[0m [1m[34mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1787
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
1788
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1789
|
+
---------------------------------------------------------------
|
1790
|
+
BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
|
1791
|
+
---------------------------------------------------------------
|
1792
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1793
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1794
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1795
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1796
|
+
-------------------------------------------------------------------
|
1797
|
+
BulkInsertTest: test_bulk_insert_without_block_should_return_worker
|
1798
|
+
-------------------------------------------------------------------
|
1799
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1800
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1801
|
+
------------------------------------------------------------------------------
|
1802
|
+
BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
|
1803
|
+
------------------------------------------------------------------------------
|
1804
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1805
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1806
|
+
-----------------------------------------------------------------------------
|
1807
|
+
BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
|
1808
|
+
-----------------------------------------------------------------------------
|
1809
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "testings"[0m
|
1810
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1811
|
+
[1m[35m (0.2ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2016-05-03 16:39:10.815115','chartreuse'),('Hey',20,'f','2016-05-03 16:39:10.815115','2016-05-03 16:39:10.815115','chartreuse')[0m
|
1812
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1813
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "testings"[0m
|
1814
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
1815
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1816
|
+
---------------------------------------------------------------------
|
1817
|
+
BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
|
1818
|
+
---------------------------------------------------------------------
|
1819
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "testings"[0m
|
1820
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1821
|
+
[1m[35m (0.2ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2016-05-03 16:39:10.817715','2016-05-03 16:39:10.817715','chartreuse')[0m
|
1822
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1823
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "testings"[0m
|
1824
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
1825
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1826
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1827
|
+
------------------------------------------------------
|
1828
|
+
BulkInsertWorkerTest: test_empty_insert_is_not_pending
|
1829
|
+
------------------------------------------------------
|
1830
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1831
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1832
|
+
----------------------------------------------------------------
|
1833
|
+
BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
|
1834
|
+
----------------------------------------------------------------
|
1835
|
+
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2016-05-03 16:39:23.433773','2016-05-03 16:39:23.433773','chartreuse')[0m
|
1836
|
+
[1m[36mTesting Load (0.2ms)[0m [1m[34mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1837
|
+
[1m[35m (2.0ms)[0m [1m[31mrollback transaction[0m
|
1838
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1839
|
+
----------------------------------------------------------------------------
|
1840
|
+
BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
|
1841
|
+
----------------------------------------------------------------------------
|
1842
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1843
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1844
|
+
---------------------------------------------------------
|
1845
|
+
BulkInsertWorkerTest: test_save!_makes_insert_not_pending
|
1846
|
+
---------------------------------------------------------
|
1847
|
+
[1m[35m (0.2ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:39:23.451750','2016-05-03 16:39:23.451750','chartreuse')[0m
|
1848
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
1849
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1850
|
+
--------------------------------------------------------------------
|
1851
|
+
BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
|
1852
|
+
--------------------------------------------------------------------
|
1853
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1854
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1855
|
+
------------------------------------------------------------------------------
|
1856
|
+
BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
|
1857
|
+
------------------------------------------------------------------------------
|
1858
|
+
[1m[35m (0.2ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:39:23.454387','2016-05-03 16:39:23.454387','chartreuse')[0m
|
1859
|
+
[1m[36mTesting Load (0.0ms)[0m [1m[34mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1860
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
1861
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1862
|
+
--------------------------------------------------------
|
1863
|
+
BulkInsertWorkerTest: test_save!_inserts_pending_records
|
1864
|
+
--------------------------------------------------------
|
1865
|
+
[1m[35m (0.2ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2016-05-03 16:39:23.456532','2016-05-03 16:39:23.456532','chartreuse'),('Hello',25,'t','2016-05-03 16:39:23.456532','2016-05-03 16:39:23.456532','chartreuse')[0m
|
1866
|
+
[1m[36mTesting Load (0.1ms)[0m [1m[34mSELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ?[0m [["greeting", "Yo"], ["LIMIT", 1]]
|
1867
|
+
[1m[36mTesting Load (0.0ms)[0m [1m[34mSELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ?[0m [["greeting", "Hello"], ["LIMIT", 1]]
|
1868
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
1869
|
+
[1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
|
1870
|
+
-------------------------------------------------------------------
|
1871
|
+
BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
|
1872
|
+
-------------------------------------------------------------------
|
1873
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "testings"[0m
|
1874
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "testings"[0m
|
1875
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1876
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1877
|
+
----------------------------------------------------------------------------------------------
|
1878
|
+
BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
|
1879
|
+
----------------------------------------------------------------------------------------------
|
1880
|
+
[1m[35m (0.3ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:39:23.464302','2016-05-03 16:39:23.464302','chartreuse'),('Howdy',20,'f','2016-05-03 16:39:23.464302','2016-05-03 16:39:23.464302','chartreuse')[0m
|
1881
|
+
[1m[36mTesting Load (0.1ms)[0m [1m[34mSELECT "testings".* FROM "testings"[0m
|
1882
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
1883
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1884
|
+
---------------------------------------------------------------------
|
1885
|
+
BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
|
1886
|
+
---------------------------------------------------------------------
|
1887
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1888
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1889
|
+
-------------------------------------------------------------------------------
|
1890
|
+
BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
|
1891
|
+
-------------------------------------------------------------------------------
|
1892
|
+
[1m[35m (0.3ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:39:23.468512','2016-05-03 16:39:23.468512','chartreuse')[0m
|
1893
|
+
[1m[36mTesting Load (0.1ms)[0m [1m[34mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1894
|
+
[1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
|
1895
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1896
|
+
----------------------------------------------------------------
|
1897
|
+
BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
|
1898
|
+
----------------------------------------------------------------
|
1899
|
+
[1m[35m (0.2ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:39:23.472343','2016-05-03 16:39:23.472343',NULL)[0m
|
1900
|
+
[1m[36mTesting Load (0.0ms)[0m [1m[34mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1901
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
1902
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1903
|
+
----------------------------------------------------------------------------------
|
1904
|
+
BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
|
1905
|
+
----------------------------------------------------------------------------------
|
1906
|
+
[1m[35m (0.2ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:39:23.474575','2016-05-03 16:39:23.474575','chartreuse')[0m
|
1907
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "testings"[0m
|
1908
|
+
[1m[36mTesting Load (0.0ms)[0m [1m[34mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1909
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
1910
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1911
|
+
-------------------------------------------
|
1912
|
+
BulkInsertWorkerTest: test_default_set_size
|
1913
|
+
-------------------------------------------
|
1914
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
1915
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1916
|
+
---------------------------------------------------------------
|
1917
|
+
BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
|
1918
|
+
---------------------------------------------------------------
|
1919
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1920
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1921
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1922
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1923
|
+
---------------------------------------------------------------------
|
1924
|
+
BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
|
1925
|
+
---------------------------------------------------------------------
|
1926
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "testings"[0m
|
1927
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1928
|
+
[1m[35m (0.2ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2016-05-03 16:39:23.481996','2016-05-03 16:39:23.481996','chartreuse')[0m
|
1929
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1930
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "testings"[0m
|
1931
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
1932
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1933
|
+
-----------------------------------------------------------------------------
|
1934
|
+
BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
|
1935
|
+
-----------------------------------------------------------------------------
|
1936
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "testings"[0m
|
1937
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1938
|
+
[1m[35m (0.2ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2016-05-03 16:39:23.484623','chartreuse'),('Hey',20,'f','2016-05-03 16:39:23.484623','2016-05-03 16:39:23.484623','chartreuse')[0m
|
1939
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1940
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "testings"[0m
|
1941
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
1942
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1943
|
+
-------------------------------------------------------------------
|
1944
|
+
BulkInsertTest: test_bulk_insert_without_block_should_return_worker
|
1945
|
+
-------------------------------------------------------------------
|
1946
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
1947
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
1948
|
+
------------------------------------------------------------------------------
|
1949
|
+
BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
|
1950
|
+
------------------------------------------------------------------------------
|
1951
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
1952
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1953
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1954
|
+
---------------------------------------------------------------------
|
1955
|
+
BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
|
1956
|
+
---------------------------------------------------------------------
|
1957
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "testings"[0m
|
1958
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1959
|
+
[1m[35m (0.3ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2016-05-03 16:39:45.521788','2016-05-03 16:39:45.521788','chartreuse')[0m
|
1960
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1961
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "testings"[0m
|
1962
|
+
[1m[35m (2.1ms)[0m [1m[31mrollback transaction[0m
|
1963
|
+
[1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
|
1964
|
+
------------------------------------------------------------------------------
|
1965
|
+
BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
|
1966
|
+
------------------------------------------------------------------------------
|
1967
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
1968
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1969
|
+
-------------------------------------------------------------------
|
1970
|
+
BulkInsertTest: test_bulk_insert_without_block_should_return_worker
|
1971
|
+
-------------------------------------------------------------------
|
1972
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
1973
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1974
|
+
---------------------------------------------------------------
|
1975
|
+
BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
|
1976
|
+
---------------------------------------------------------------
|
1977
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1978
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1979
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
1980
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1981
|
+
-----------------------------------------------------------------------------
|
1982
|
+
BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
|
1983
|
+
-----------------------------------------------------------------------------
|
1984
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "testings"[0m
|
1985
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1986
|
+
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2016-05-03 16:39:45.534044','chartreuse'),('Hey',20,'f','2016-05-03 16:39:45.534044','2016-05-03 16:39:45.534044','chartreuse')[0m
|
1987
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1988
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "testings"[0m
|
1989
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
1990
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1991
|
+
-------------------------------------------------------------------------------
|
1992
|
+
BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
|
1993
|
+
-------------------------------------------------------------------------------
|
1994
|
+
[1m[35m (0.2ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:39:45.538220','2016-05-03 16:39:45.538220','chartreuse')[0m
|
1995
|
+
[1m[36mTesting Load (0.1ms)[0m [1m[34mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
1996
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
1997
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
1998
|
+
------------------------------------------------------
|
1999
|
+
BulkInsertWorkerTest: test_empty_insert_is_not_pending
|
2000
|
+
------------------------------------------------------
|
2001
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
2002
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2003
|
+
----------------------------------------------------------------------------------
|
2004
|
+
BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
|
2005
|
+
----------------------------------------------------------------------------------
|
2006
|
+
[1m[35m (0.2ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:39:45.547445','2016-05-03 16:39:45.547445','chartreuse')[0m
|
2007
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "testings"[0m
|
2008
|
+
[1m[36mTesting Load (0.1ms)[0m [1m[34mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
2009
|
+
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
2010
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2011
|
+
--------------------------------------------------------
|
2012
|
+
BulkInsertWorkerTest: test_save!_inserts_pending_records
|
2013
|
+
--------------------------------------------------------
|
2014
|
+
[1m[35m (0.4ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2016-05-03 16:39:45.550550','2016-05-03 16:39:45.550550','chartreuse'),('Hello',25,'t','2016-05-03 16:39:45.550550','2016-05-03 16:39:45.550550','chartreuse')[0m
|
2015
|
+
[1m[36mTesting Load (0.2ms)[0m [1m[34mSELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ?[0m [["greeting", "Yo"], ["LIMIT", 1]]
|
2016
|
+
[1m[36mTesting Load (0.0ms)[0m [1m[34mSELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ?[0m [["greeting", "Hello"], ["LIMIT", 1]]
|
2017
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2018
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2019
|
+
--------------------------------------------------------------------
|
2020
|
+
BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
|
2021
|
+
--------------------------------------------------------------------
|
2022
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2023
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2024
|
+
---------------------------------------------------------
|
2025
|
+
BulkInsertWorkerTest: test_save!_makes_insert_not_pending
|
2026
|
+
---------------------------------------------------------
|
2027
|
+
[1m[35m (0.3ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:39:45.558298','2016-05-03 16:39:45.558298','chartreuse')[0m
|
2028
|
+
[1m[35m (0.8ms)[0m [1m[31mrollback transaction[0m
|
2029
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2030
|
+
-------------------------------------------------------------------
|
2031
|
+
BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
|
2032
|
+
-------------------------------------------------------------------
|
2033
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "testings"[0m
|
2034
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "testings"[0m
|
2035
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2036
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2037
|
+
---------------------------------------------------------------------
|
2038
|
+
BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
|
2039
|
+
---------------------------------------------------------------------
|
2040
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2041
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2042
|
+
----------------------------------------------------------------
|
2043
|
+
BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
|
2044
|
+
----------------------------------------------------------------
|
2045
|
+
[1m[35m (0.2ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:39:45.563556','2016-05-03 16:39:45.563556',NULL)[0m
|
2046
|
+
[1m[36mTesting Load (0.0ms)[0m [1m[34mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
2047
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2048
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2049
|
+
------------------------------------------------------------------------------
|
2050
|
+
BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
|
2051
|
+
------------------------------------------------------------------------------
|
2052
|
+
[1m[35m (0.2ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:39:45.565691','2016-05-03 16:39:45.565691','chartreuse')[0m
|
2053
|
+
[1m[36mTesting Load (0.0ms)[0m [1m[34mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
2054
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2055
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2056
|
+
----------------------------------------------------------------------------------------------
|
2057
|
+
BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
|
2058
|
+
----------------------------------------------------------------------------------------------
|
2059
|
+
[1m[35m (0.2ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:39:45.568050','2016-05-03 16:39:45.568050','chartreuse'),('Howdy',20,'f','2016-05-03 16:39:45.568050','2016-05-03 16:39:45.568050','chartreuse')[0m
|
2060
|
+
[1m[36mTesting Load (0.1ms)[0m [1m[34mSELECT "testings".* FROM "testings"[0m
|
2061
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2062
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2063
|
+
----------------------------------------------------------------
|
2064
|
+
BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
|
2065
|
+
----------------------------------------------------------------
|
2066
|
+
[1m[35m (0.2ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2016-05-03 16:39:45.570485','2016-05-03 16:39:45.570485','chartreuse')[0m
|
2067
|
+
[1m[36mTesting Load (0.0ms)[0m [1m[34mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
2068
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
2069
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2070
|
+
----------------------------------------------------------------------------
|
2071
|
+
BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
|
2072
|
+
----------------------------------------------------------------------------
|
2073
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2074
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2075
|
+
-------------------------------------------
|
2076
|
+
BulkInsertWorkerTest: test_default_set_size
|
2077
|
+
-------------------------------------------
|
2078
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2079
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2080
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2081
|
+
---------------------------------------------------------------------
|
2082
|
+
BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
|
2083
|
+
---------------------------------------------------------------------
|
2084
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2085
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2086
|
+
-------------------------------------------------------------------
|
2087
|
+
BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
|
2088
|
+
-------------------------------------------------------------------
|
2089
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "testings"[0m
|
2090
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "testings"
|
2091
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2092
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2093
|
+
---------------------------------------------------------
|
2094
|
+
BulkInsertWorkerTest: test_save!_makes_insert_not_pending
|
2095
|
+
---------------------------------------------------------
|
2096
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:42:31.670107','2016-05-03 16:42:31.670107','chartreuse')[0m
|
2097
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2098
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2099
|
+
------------------------------------------------------------------------------
|
2100
|
+
BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
|
2101
|
+
------------------------------------------------------------------------------
|
2102
|
+
[1m[35m (0.2ms)[0m INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:42:31.674139','2016-05-03 16:42:31.674139','chartreuse')
|
2103
|
+
[1m[36mTesting Load (0.1ms)[0m [1mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1[0m
|
2104
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
2105
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2106
|
+
----------------------------------------------------------------
|
2107
|
+
BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
|
2108
|
+
----------------------------------------------------------------
|
2109
|
+
[1m[35m (0.2ms)[0m INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2016-05-03 16:42:31.681855','2016-05-03 16:42:31.681855','chartreuse')
|
2110
|
+
[1m[36mTesting Load (0.1ms)[0m [1mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1[0m
|
2111
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
2112
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2113
|
+
------------------------------------------------------
|
2114
|
+
BulkInsertWorkerTest: test_empty_insert_is_not_pending
|
2115
|
+
------------------------------------------------------
|
2116
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2117
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2118
|
+
-------------------------------------------
|
2119
|
+
BulkInsertWorkerTest: test_default_set_size
|
2120
|
+
-------------------------------------------
|
2121
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2122
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2123
|
+
----------------------------------------------------------------
|
2124
|
+
BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
|
2125
|
+
----------------------------------------------------------------
|
2126
|
+
[1m[35m (0.2ms)[0m INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:42:31.685669','2016-05-03 16:42:31.685669',NULL)
|
2127
|
+
[1m[36mTesting Load (0.1ms)[0m [1mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1[0m
|
2128
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2129
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2130
|
+
----------------------------------------------------------------------------
|
2131
|
+
BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
|
2132
|
+
----------------------------------------------------------------------------
|
2133
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2134
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2135
|
+
----------------------------------------------------------------------------------------------
|
2136
|
+
BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
|
2137
|
+
----------------------------------------------------------------------------------------------
|
2138
|
+
[1m[35m (0.2ms)[0m INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:42:31.688225','2016-05-03 16:42:31.688225','chartreuse'),('Howdy',20,'f','2016-05-03 16:42:31.688225','2016-05-03 16:42:31.688225','chartreuse')
|
2139
|
+
[1m[36mTesting Load (0.1ms)[0m [1mSELECT "testings".* FROM "testings"[0m
|
2140
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2141
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2142
|
+
----------------------------------------------------------------------------------
|
2143
|
+
BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
|
2144
|
+
----------------------------------------------------------------------------------
|
2145
|
+
[1m[35m (0.2ms)[0m INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:42:31.690240','2016-05-03 16:42:31.690240','chartreuse')
|
2146
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "testings"[0m
|
2147
|
+
[1m[35mTesting Load (0.1ms)[0m SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
|
2148
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2149
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2150
|
+
--------------------------------------------------------------------
|
2151
|
+
BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
|
2152
|
+
--------------------------------------------------------------------
|
2153
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2154
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2155
|
+
-------------------------------------------------------------------------------
|
2156
|
+
BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
|
2157
|
+
-------------------------------------------------------------------------------
|
2158
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:42:31.693189','2016-05-03 16:42:31.693189','chartreuse')[0m
|
2159
|
+
[1m[35mTesting Load (0.1ms)[0m SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
|
2160
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
2161
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2162
|
+
--------------------------------------------------------
|
2163
|
+
BulkInsertWorkerTest: test_save!_inserts_pending_records
|
2164
|
+
--------------------------------------------------------
|
2165
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2016-05-03 16:42:31.695730','2016-05-03 16:42:31.695730','chartreuse'),('Hello',25,'t','2016-05-03 16:42:31.695730','2016-05-03 16:42:31.695730','chartreuse')[0m
|
2166
|
+
[1m[35mTesting Load (0.2ms)[0m SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
|
2167
|
+
[1m[36mTesting Load (0.0ms)[0m [1mSELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1[0m [["greeting", "Hello"]]
|
2168
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2169
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2170
|
+
------------------------------------------------------------------------------
|
2171
|
+
BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
|
2172
|
+
------------------------------------------------------------------------------
|
2173
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2174
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2175
|
+
---------------------------------------------------------------------
|
2176
|
+
BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
|
2177
|
+
---------------------------------------------------------------------
|
2178
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "testings"
|
2179
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2180
|
+
[1m[35m (0.3ms)[0m INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2016-05-03 16:42:31.706689','2016-05-03 16:42:31.706689','chartreuse')
|
2181
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2182
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "testings"
|
2183
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2184
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2185
|
+
-------------------------------------------------------------------
|
2186
|
+
BulkInsertTest: test_bulk_insert_without_block_should_return_worker
|
2187
|
+
-------------------------------------------------------------------
|
2188
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2189
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2190
|
+
-----------------------------------------------------------------------------
|
2191
|
+
BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
|
2192
|
+
-----------------------------------------------------------------------------
|
2193
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "testings"[0m
|
2194
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2195
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2016-05-03 16:42:31.710916','chartreuse'),('Hey',20,'f','2016-05-03 16:42:31.710916','2016-05-03 16:42:31.710916','chartreuse')[0m
|
2196
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2197
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "testings"[0m
|
2198
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2199
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2200
|
+
---------------------------------------------------------------
|
2201
|
+
BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
|
2202
|
+
---------------------------------------------------------------
|
2203
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2204
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2205
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2206
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2207
|
+
[1m[35m (0.2ms)[0m begin transaction
|
2208
|
+
---------------------------------------------------------------------
|
2209
|
+
BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
|
2210
|
+
---------------------------------------------------------------------
|
2211
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "testings"[0m
|
2212
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2213
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2016-05-03 16:42:48.573051','2016-05-03 16:42:48.573051','chartreuse')[0m
|
2214
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2215
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "testings"[0m
|
2216
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
2217
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2218
|
+
-------------------------------------------------------------------
|
2219
|
+
BulkInsertTest: test_bulk_insert_without_block_should_return_worker
|
2220
|
+
-------------------------------------------------------------------
|
2221
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2222
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2223
|
+
-----------------------------------------------------------------------------
|
2224
|
+
BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
|
2225
|
+
-----------------------------------------------------------------------------
|
2226
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "testings"
|
2227
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2228
|
+
[1m[35m (0.2ms)[0m INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2016-05-03 16:42:48.577883','chartreuse'),('Hey',20,'f','2016-05-03 16:42:48.577883','2016-05-03 16:42:48.577883','chartreuse')
|
2229
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2230
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "testings"
|
2231
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2232
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2233
|
+
---------------------------------------------------------------
|
2234
|
+
BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
|
2235
|
+
---------------------------------------------------------------
|
2236
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2237
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2238
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2239
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2240
|
+
------------------------------------------------------------------------------
|
2241
|
+
BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
|
2242
|
+
------------------------------------------------------------------------------
|
2243
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2244
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2245
|
+
----------------------------------------------------------------
|
2246
|
+
BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
|
2247
|
+
----------------------------------------------------------------
|
2248
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2016-05-03 16:42:48.581825','2016-05-03 16:42:48.581825','chartreuse')[0m
|
2249
|
+
[1m[35mTesting Load (0.1ms)[0m SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
|
2250
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
2251
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2252
|
+
----------------------------------------------------------------------------------
|
2253
|
+
BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
|
2254
|
+
----------------------------------------------------------------------------------
|
2255
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:42:48.589619','2016-05-03 16:42:48.589619','chartreuse')[0m
|
2256
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "testings"
|
2257
|
+
[1m[36mTesting Load (0.1ms)[0m [1mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1[0m
|
2258
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2259
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2260
|
+
-------------------------------------------
|
2261
|
+
BulkInsertWorkerTest: test_default_set_size
|
2262
|
+
-------------------------------------------
|
2263
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2264
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2265
|
+
----------------------------------------------------------------
|
2266
|
+
BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
|
2267
|
+
----------------------------------------------------------------
|
2268
|
+
[1m[35m (0.2ms)[0m INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:42:48.592636','2016-05-03 16:42:48.592636',NULL)
|
2269
|
+
[1m[36mTesting Load (0.1ms)[0m [1mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1[0m
|
2270
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2271
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2272
|
+
---------------------------------------------------------------------
|
2273
|
+
BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
|
2274
|
+
---------------------------------------------------------------------
|
2275
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2276
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2277
|
+
------------------------------------------------------
|
2278
|
+
BulkInsertWorkerTest: test_empty_insert_is_not_pending
|
2279
|
+
------------------------------------------------------
|
2280
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2281
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2282
|
+
-------------------------------------------------------------------------------
|
2283
|
+
BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
|
2284
|
+
-------------------------------------------------------------------------------
|
2285
|
+
[1m[35m (0.2ms)[0m INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:42:48.595770','2016-05-03 16:42:48.595770','chartreuse')
|
2286
|
+
[1m[36mTesting Load (0.1ms)[0m [1mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1[0m
|
2287
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2288
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2289
|
+
------------------------------------------------------------------------------
|
2290
|
+
BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
|
2291
|
+
------------------------------------------------------------------------------
|
2292
|
+
[1m[35m (0.2ms)[0m INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:42:48.597749','2016-05-03 16:42:48.597749','chartreuse')
|
2293
|
+
[1m[36mTesting Load (0.1ms)[0m [1mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1[0m
|
2294
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
2295
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2296
|
+
--------------------------------------------------------
|
2297
|
+
BulkInsertWorkerTest: test_save!_inserts_pending_records
|
2298
|
+
--------------------------------------------------------
|
2299
|
+
[1m[35m (0.2ms)[0m INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2016-05-03 16:42:48.599866','2016-05-03 16:42:48.599866','chartreuse'),('Hello',25,'t','2016-05-03 16:42:48.599866','2016-05-03 16:42:48.599866','chartreuse')
|
2300
|
+
[1m[36mTesting Load (0.2ms)[0m [1mSELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1[0m [["greeting", "Yo"]]
|
2301
|
+
[1m[35mTesting Load (0.0ms)[0m SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
|
2302
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2303
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2304
|
+
----------------------------------------------------------------------------------------------
|
2305
|
+
BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
|
2306
|
+
----------------------------------------------------------------------------------------------
|
2307
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:42:48.607268','2016-05-03 16:42:48.607268','chartreuse'),('Howdy',20,'f','2016-05-03 16:42:48.607268','2016-05-03 16:42:48.607268','chartreuse')[0m
|
2308
|
+
[1m[35mTesting Load (0.1ms)[0m SELECT "testings".* FROM "testings"
|
2309
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2310
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2311
|
+
--------------------------------------------------------------------
|
2312
|
+
BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
|
2313
|
+
--------------------------------------------------------------------
|
2314
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2315
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2316
|
+
----------------------------------------------------------------------------
|
2317
|
+
BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
|
2318
|
+
----------------------------------------------------------------------------
|
2319
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2320
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2321
|
+
-------------------------------------------------------------------
|
2322
|
+
BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
|
2323
|
+
-------------------------------------------------------------------
|
2324
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "testings"[0m
|
2325
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "testings"
|
2326
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2327
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2328
|
+
---------------------------------------------------------
|
2329
|
+
BulkInsertWorkerTest: test_save!_makes_insert_not_pending
|
2330
|
+
---------------------------------------------------------
|
2331
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:42:48.614012','2016-05-03 16:42:48.614012','chartreuse')[0m
|
2332
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2333
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2334
|
+
[1m[35m (0.2ms)[0m begin transaction
|
2335
|
+
-------------------------------------------
|
2336
|
+
BulkInsertWorkerTest: test_default_set_size
|
2337
|
+
-------------------------------------------
|
2338
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2339
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2340
|
+
----------------------------------------------------------------
|
2341
|
+
BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
|
2342
|
+
----------------------------------------------------------------
|
2343
|
+
[1m[36m (0.5ms)[0m [1mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:42:54.270837','2016-05-03 16:42:54.270837',NULL)[0m
|
2344
|
+
[1m[35mTesting Load (0.1ms)[0m SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
|
2345
|
+
[1m[36m (2.0ms)[0m [1mrollback transaction[0m
|
2346
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2347
|
+
-------------------------------------------------------------------------------
|
2348
|
+
BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
|
2349
|
+
-------------------------------------------------------------------------------
|
2350
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:42:54.283206','2016-05-03 16:42:54.283206','chartreuse')[0m
|
2351
|
+
[1m[35mTesting Load (0.1ms)[0m SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
|
2352
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2353
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2354
|
+
----------------------------------------------------------------------------------
|
2355
|
+
BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
|
2356
|
+
----------------------------------------------------------------------------------
|
2357
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:42:54.285488','2016-05-03 16:42:54.285488','chartreuse')[0m
|
2358
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "testings"
|
2359
|
+
[1m[36mTesting Load (0.1ms)[0m [1mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1[0m
|
2360
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2361
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2362
|
+
------------------------------------------------------
|
2363
|
+
BulkInsertWorkerTest: test_empty_insert_is_not_pending
|
2364
|
+
------------------------------------------------------
|
2365
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2366
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2367
|
+
---------------------------------------------------------------------
|
2368
|
+
BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
|
2369
|
+
---------------------------------------------------------------------
|
2370
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2371
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2372
|
+
------------------------------------------------------------------------------
|
2373
|
+
BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
|
2374
|
+
------------------------------------------------------------------------------
|
2375
|
+
[1m[35m (0.2ms)[0m INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:42:54.289341','2016-05-03 16:42:54.289341','chartreuse')
|
2376
|
+
[1m[36mTesting Load (0.1ms)[0m [1mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1[0m
|
2377
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2378
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2379
|
+
----------------------------------------------------------------------------------------------
|
2380
|
+
BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
|
2381
|
+
----------------------------------------------------------------------------------------------
|
2382
|
+
[1m[35m (0.2ms)[0m INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:42:54.291041','2016-05-03 16:42:54.291041','chartreuse'),('Howdy',20,'f','2016-05-03 16:42:54.291041','2016-05-03 16:42:54.291041','chartreuse')
|
2383
|
+
[1m[36mTesting Load (0.1ms)[0m [1mSELECT "testings".* FROM "testings"[0m
|
2384
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2385
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2386
|
+
----------------------------------------------------------------
|
2387
|
+
BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
|
2388
|
+
----------------------------------------------------------------
|
2389
|
+
[1m[35m (0.2ms)[0m INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2016-05-03 16:42:54.292897','2016-05-03 16:42:54.292897','chartreuse')
|
2390
|
+
[1m[36mTesting Load (0.1ms)[0m [1mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1[0m
|
2391
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2392
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2393
|
+
--------------------------------------------------------------------
|
2394
|
+
BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
|
2395
|
+
--------------------------------------------------------------------
|
2396
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2397
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2398
|
+
--------------------------------------------------------
|
2399
|
+
BulkInsertWorkerTest: test_save!_inserts_pending_records
|
2400
|
+
--------------------------------------------------------
|
2401
|
+
[1m[35m (0.2ms)[0m INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2016-05-03 16:42:54.295852','2016-05-03 16:42:54.295852','chartreuse'),('Hello',25,'t','2016-05-03 16:42:54.295852','2016-05-03 16:42:54.295852','chartreuse')
|
2402
|
+
[1m[36mTesting Load (0.3ms)[0m [1mSELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1[0m [["greeting", "Yo"]]
|
2403
|
+
[1m[35mTesting Load (0.1ms)[0m SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
|
2404
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
2405
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2406
|
+
----------------------------------------------------------------------------
|
2407
|
+
BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
|
2408
|
+
----------------------------------------------------------------------------
|
2409
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2410
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2411
|
+
---------------------------------------------------------
|
2412
|
+
BulkInsertWorkerTest: test_save!_makes_insert_not_pending
|
2413
|
+
---------------------------------------------------------
|
2414
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:42:54.303949','2016-05-03 16:42:54.303949','chartreuse')[0m
|
2415
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
2416
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2417
|
+
-------------------------------------------------------------------
|
2418
|
+
BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
|
2419
|
+
-------------------------------------------------------------------
|
2420
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "testings"
|
2421
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "testings"[0m
|
2422
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2423
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2424
|
+
---------------------------------------------------------------------
|
2425
|
+
BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
|
2426
|
+
---------------------------------------------------------------------
|
2427
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "testings"
|
2428
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2429
|
+
[1m[35m (0.2ms)[0m INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2016-05-03 16:42:54.309559','2016-05-03 16:42:54.309559','chartreuse')
|
2430
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2431
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "testings"
|
2432
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2433
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2434
|
+
------------------------------------------------------------------------------
|
2435
|
+
BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
|
2436
|
+
------------------------------------------------------------------------------
|
2437
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2438
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2439
|
+
-----------------------------------------------------------------------------
|
2440
|
+
BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
|
2441
|
+
-----------------------------------------------------------------------------
|
2442
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "testings"[0m
|
2443
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2444
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2016-05-03 16:42:54.312368','chartreuse'),('Hey',20,'f','2016-05-03 16:42:54.312368','2016-05-03 16:42:54.312368','chartreuse')[0m
|
2445
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2446
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "testings"[0m
|
2447
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2448
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2449
|
+
---------------------------------------------------------------
|
2450
|
+
BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
|
2451
|
+
---------------------------------------------------------------
|
2452
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2453
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2454
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2455
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2456
|
+
-------------------------------------------------------------------
|
2457
|
+
BulkInsertTest: test_bulk_insert_without_block_should_return_worker
|
2458
|
+
-------------------------------------------------------------------
|
2459
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2460
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2461
|
+
[1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
|
2462
|
+
--------------------------------------------------------------------
|
2463
|
+
BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
|
2464
|
+
--------------------------------------------------------------------
|
2465
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
2466
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2467
|
+
--------------------------------------------------------
|
2468
|
+
BulkInsertWorkerTest: test_save!_inserts_pending_records
|
2469
|
+
--------------------------------------------------------
|
2470
|
+
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2016-05-03 16:43:24.824960','2016-05-03 16:43:24.824960','chartreuse'),('Hello',25,'t','2016-05-03 16:43:24.824960','2016-05-03 16:43:24.824960','chartreuse')[0m
|
2471
|
+
[1m[36mTesting Load (0.2ms)[0m [1m[34mSELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ?[0m [["greeting", "Yo"], ["LIMIT", 1]]
|
2472
|
+
[1m[36mTesting Load (0.1ms)[0m [1m[34mSELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ?[0m [["greeting", "Hello"], ["LIMIT", 1]]
|
2473
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2474
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2475
|
+
------------------------------------------------------------------------------
|
2476
|
+
BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
|
2477
|
+
------------------------------------------------------------------------------
|
2478
|
+
[1m[35m (0.3ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:43:24.847866','2016-05-03 16:43:24.847866','chartreuse')[0m
|
2479
|
+
[1m[36mTesting Load (0.2ms)[0m [1m[34mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
2480
|
+
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
2481
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2482
|
+
-------------------------------------------------------------------------------
|
2483
|
+
BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
|
2484
|
+
-------------------------------------------------------------------------------
|
2485
|
+
[1m[35m (0.2ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:43:24.851020','2016-05-03 16:43:24.851020','chartreuse')[0m
|
2486
|
+
[1m[36mTesting Load (0.0ms)[0m [1m[34mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
2487
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2488
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2489
|
+
-------------------------------------------------------------------
|
2490
|
+
BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
|
2491
|
+
-------------------------------------------------------------------
|
2492
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "testings"[0m
|
2493
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "testings"[0m
|
2494
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
2495
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2496
|
+
----------------------------------------------------------------------------------------------
|
2497
|
+
BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
|
2498
|
+
----------------------------------------------------------------------------------------------
|
2499
|
+
[1m[35m (0.2ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:43:24.857822','2016-05-03 16:43:24.857822','chartreuse'),('Howdy',20,'f','2016-05-03 16:43:24.857822','2016-05-03 16:43:24.857822','chartreuse')[0m
|
2500
|
+
[1m[36mTesting Load (0.1ms)[0m [1m[34mSELECT "testings".* FROM "testings"[0m
|
2501
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2502
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2503
|
+
----------------------------------------------------------------------------------
|
2504
|
+
BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
|
2505
|
+
----------------------------------------------------------------------------------
|
2506
|
+
[1m[35m (0.3ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:43:24.860730','2016-05-03 16:43:24.860730','chartreuse')[0m
|
2507
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "testings"[0m
|
2508
|
+
[1m[36mTesting Load (0.1ms)[0m [1m[34mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
2509
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2510
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2511
|
+
-------------------------------------------
|
2512
|
+
BulkInsertWorkerTest: test_default_set_size
|
2513
|
+
-------------------------------------------
|
2514
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2515
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2516
|
+
----------------------------------------------------------------------------
|
2517
|
+
BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
|
2518
|
+
----------------------------------------------------------------------------
|
2519
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2520
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2521
|
+
----------------------------------------------------------------
|
2522
|
+
BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
|
2523
|
+
----------------------------------------------------------------
|
2524
|
+
[1m[35m (0.3ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2016-05-03 16:43:24.866462','2016-05-03 16:43:24.866462',NULL)[0m
|
2525
|
+
[1m[36mTesting Load (0.1ms)[0m [1m[34mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
2526
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
2527
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2528
|
+
---------------------------------------------------------------------
|
2529
|
+
BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
|
2530
|
+
---------------------------------------------------------------------
|
2531
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2532
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2533
|
+
------------------------------------------------------
|
2534
|
+
BulkInsertWorkerTest: test_empty_insert_is_not_pending
|
2535
|
+
------------------------------------------------------
|
2536
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
2537
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2538
|
+
---------------------------------------------------------
|
2539
|
+
BulkInsertWorkerTest: test_save!_makes_insert_not_pending
|
2540
|
+
---------------------------------------------------------
|
2541
|
+
[1m[35m (0.2ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2016-05-03 16:43:24.872340','2016-05-03 16:43:24.872340','chartreuse')[0m
|
2542
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2543
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2544
|
+
----------------------------------------------------------------
|
2545
|
+
BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
|
2546
|
+
----------------------------------------------------------------
|
2547
|
+
[1m[35m (0.2ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2016-05-03 16:43:24.874056','2016-05-03 16:43:24.874056','chartreuse')[0m
|
2548
|
+
[1m[36mTesting Load (0.0ms)[0m [1m[34mSELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
2549
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2550
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2551
|
+
---------------------------------------------------------------------
|
2552
|
+
BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
|
2553
|
+
---------------------------------------------------------------------
|
2554
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "testings"[0m
|
2555
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2556
|
+
[1m[35m (0.2ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2016-05-03 16:43:24.879683','2016-05-03 16:43:24.879683','chartreuse')[0m
|
2557
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2558
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "testings"[0m
|
2559
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2560
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2561
|
+
-------------------------------------------------------------------
|
2562
|
+
BulkInsertTest: test_bulk_insert_without_block_should_return_worker
|
2563
|
+
-------------------------------------------------------------------
|
2564
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
2565
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2566
|
+
-----------------------------------------------------------------------------
|
2567
|
+
BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
|
2568
|
+
-----------------------------------------------------------------------------
|
2569
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "testings"[0m
|
2570
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2571
|
+
[1m[35m (0.2ms)[0m [1m[32mINSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2016-05-03 16:43:24.883856','chartreuse'),('Hey',20,'f','2016-05-03 16:43:24.883856','2016-05-03 16:43:24.883856','chartreuse')[0m
|
2572
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2573
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "testings"[0m
|
2574
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2575
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2576
|
+
---------------------------------------------------------------
|
2577
|
+
BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
|
2578
|
+
---------------------------------------------------------------
|
2579
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2580
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2581
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2582
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2583
|
+
------------------------------------------------------------------------------
|
2584
|
+
BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
|
2585
|
+
------------------------------------------------------------------------------
|
2586
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bulk_insert
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jamis Buck
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03
|
11
|
+
date: 2016-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 4.
|
47
|
+
version: 4.2.0
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 4.
|
54
|
+
version: 4.2.0
|
55
55
|
description: Faster inserts! Insert N records in a single statement.
|
56
56
|
email:
|
57
57
|
- jamis@jamisbuck.org
|
@@ -180,4 +180,3 @@ test_files:
|
|
180
180
|
- test/dummy/Rakefile
|
181
181
|
- test/dummy/README.rdoc
|
182
182
|
- test/test_helper.rb
|
183
|
-
has_rdoc:
|