indexes 4.0.0.0 → 4.0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b5563006cc938b7b0590e7979fc6c4ef5da6ef18
4
- data.tar.gz: 64a3d9f1ced530ead478aae6354d4b374341bbfa
3
+ metadata.gz: a85cfb89d3f21e21f193faf2441da4b69f58e0bb
4
+ data.tar.gz: f8f9fb65b28caf68ccf2729e501154f467bfd771
5
5
  SHA512:
6
- metadata.gz: fd39393556426f5ffcde4aa3281089dd681b5dfd6eb52ef34270a99ed7a2d12fea661caab391bd32a23f33605aa9fe11c29f5e3add2f34f54d7fadd5b673e0be
7
- data.tar.gz: 2e8fb3183fe2713156897df745e5fc392b35f303890639a2112fe9abe35eedd7a47cfc89c0fdd9dddc18ec5c6c6c3c38d8b0c3d9a2c302db53133032ef9e1f5e
6
+ metadata.gz: e364f9186bacba3601d4d72051b4ff3a1d8e606e934d492e151564e5c214b9fe04a3675d66a6aed08018989ba905dfb61ba79b2faf08475921f955b1d63ebfa5
7
+ data.tar.gz: 14b8a8c999ccd47088d69ebadd0086dc7d2f800d8aac45c2829bdda382bc7269c5b730a4d2af76cb51be6d7af2a9d7ae619badd252c2b8a755b8621de578c256
data/README.md CHANGED
@@ -14,7 +14,7 @@ I did this gem to:
14
14
  - Gain control of the queries without losing simplicity.
15
15
  - Have out of the box integration with activerecord and pagers.
16
16
  - Deal with the just in time nature of elasticsearch.
17
- - Integrate activerecord includes on it.
17
+ - Reduce queries by integrating activerecord eager loaders.
18
18
  - Have a convention of how to use suggestions.
19
19
 
20
20
  ## Install
@@ -9,7 +9,6 @@ module Indexes
9
9
  def find(name)
10
10
  registry[name]
11
11
  end
12
- alias_method :[], :find
13
12
 
14
13
  def each(&block)
15
14
  registry.values.sort.each &block
@@ -3,7 +3,6 @@ module Indexes
3
3
  class Api
4
4
 
5
5
  def initialize(args=[], parent={}, &block)
6
- @args = args
7
6
  @parent = parent
8
7
  instance_exec *args, &block
9
8
  end
@@ -12,8 +11,7 @@ module Indexes
12
11
  options = args.extract_options!
13
12
  name = name.to_sym
14
13
  if block_given?
15
- child = add_block(name, args, options)
16
- continue child, &block
14
+ add_block name, args, options, &block
17
15
  elsif args.size > 0
18
16
  add_argument name, args, options
19
17
  elsif options.any?
@@ -29,28 +27,39 @@ module Indexes
29
27
 
30
28
  private
31
29
 
32
- def add_block(name, args, options)
30
+ def add_block(name, args, options, &block)
31
+ case args.first
32
+ when String,Symbol
33
+ child = {}
34
+ node = { args.first.to_sym => child }
35
+ when Enumerable
36
+ child = node = []
37
+ else
38
+ child = node = {}
39
+ end
33
40
  case @parent
34
41
  when Array
35
- item = options.merge(name => {})
36
- @parent << item
37
- child = item[name]
42
+ @parent << options.merge(name => node)
38
43
  when Hash
39
- if @parent.has_key?(name)
40
- child = @parent[name].merge!(options)
41
- else
42
- child = @parent[name] = {}
43
- end
44
+ @parent[name] = node
44
45
  end
45
- if args.any?
46
- child[args.first.to_sym] = {}
46
+ case args.first
47
+ when Enumerable
48
+ args.first.each do |arg|
49
+ self.class.new [arg], child, &block
50
+ end
47
51
  else
48
- child
52
+ self.class.new [], child, &block
49
53
  end
50
54
  end
51
55
 
52
56
  def add_argument(name, args, options)
53
- @parent[name] = args.first
57
+ case @parent
58
+ when Array
59
+ @parent << { name => args.first }
60
+ when Hash
61
+ @parent[name] = args.first
62
+ end
54
63
  end
55
64
 
56
65
  def add_options(name, options)
@@ -76,10 +85,6 @@ module Indexes
76
85
  end
77
86
  end
78
87
 
79
- def continue(child, &block)
80
- self.class.new @args, child, &block
81
- end
82
-
83
88
  end
84
89
  end
85
90
  end
@@ -4,9 +4,11 @@ module Indexes
4
4
 
5
5
  private
6
6
 
7
- def add_block(name, args, options)
7
+ def add_block(name, args, options, &block)
8
8
  if %i(functions must must_not should).include?(name)
9
- @parent[name] = []
9
+ child = []
10
+ @parent[name] = child
11
+ self.class.new [], child, &block
10
12
  else
11
13
  super
12
14
  end
@@ -14,7 +16,7 @@ module Indexes
14
16
 
15
17
  def add_argument(name, args, options)
16
18
  if name == :query && args.first.is_a?(Symbol)
17
- @parent[name] = Indexes[args.first].search(options).query[:query]
19
+ @parent[name] = Indexes.definitions.find(args.first).search([options]).query[:query]
18
20
  else
19
21
  super
20
22
  end
@@ -1,5 +1,5 @@
1
1
  module Indexes
2
2
 
3
- VERSION = '4.0.0.0'
3
+ VERSION = '4.0.0.1'
4
4
 
5
5
  end
data/test/dsl_test.rb CHANGED
@@ -3,6 +3,7 @@ require 'test_helper'
3
3
  class DslTest < ActiveSupport::TestCase
4
4
 
5
5
  test 'search' do
6
+ shop = Shop.create
6
7
  seed = rand
7
8
  days = [1,2,3]
8
9
  opens_at = Time.now.to_i
@@ -35,15 +36,42 @@ class DslTest < ActiveSupport::TestCase
35
36
  must: [
36
37
  { range: { :'schedules.opens_at' => { lte: opens_at } } }
37
38
  ],
38
- must_not: []
39
+ must_not: [
40
+ {
41
+ has_parent: {
42
+ type: 'products',
43
+ query: {
44
+ filtered: {
45
+ filter: {
46
+ bool: {
47
+ must: [
48
+ {
49
+ term: {
50
+ _parent: shop.id
51
+ }
52
+ }
53
+ ]
54
+ }
55
+ },
56
+ query: {
57
+ match_all: {}
58
+ }
59
+ }
60
+ }
61
+ }
62
+ }
63
+ ]
39
64
  }
40
65
  }
41
66
  }
42
67
  }
43
68
  },
69
+ sort: [
70
+ { name: 'asc' }
71
+ ],
44
72
  size: {}
45
73
  },
46
- build_request do
74
+ build(:search) do
47
75
  query do
48
76
  function_score do
49
77
  functions do
@@ -72,12 +100,19 @@ class DslTest < ActiveSupport::TestCase
72
100
  end
73
101
  end
74
102
  must_not do
103
+ has_parent do
104
+ type 'products'
105
+ query :products, shop: shop
106
+ end
75
107
  end
76
108
  end
77
109
  end
78
110
  end
79
111
  end
80
112
  end
113
+ sort %w(asc) do |order|
114
+ name order
115
+ end
81
116
  size
82
117
  end
83
118
  )
@@ -85,8 +120,9 @@ class DslTest < ActiveSupport::TestCase
85
120
 
86
121
  private
87
122
 
88
- def build_request(&block)
89
- Indexes::Dsl::Search.new(&block).to_h
123
+ def build(type, &block)
124
+ klass = Indexes::Dsl.const_get(type.to_s.classify)
125
+ klass.new(&block).to_h
90
126
  end
91
127
 
92
128
  end
@@ -5,6 +5,10 @@ Indexes.configure do |config|
5
5
  config.trace = false
6
6
 
7
7
  config.mappings do
8
+ category type: 'string'
9
+ shop_id type: 'long'
10
+ price type: 'long'
11
+ currency type: 'string'
8
12
  name do
9
13
  type 'string'
10
14
  fields do
@@ -14,10 +18,6 @@ Indexes.configure do |config|
14
18
  end
15
19
  end
16
20
  end
17
- category type: 'string'
18
- shop_id type: 'long'
19
- price type: 'long'
20
- currency type: 'string'
21
21
  product_suggestions do
22
22
  type 'completion'
23
23
  analyzer 'simple'
@@ -2493,3 +2493,969 @@ TasksTest: test_build
2493
2493
  Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2494
2494
  Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2495
2495
   (0.3ms) ROLLBACK
2496
+ ActiveRecord::SchemaMigration Load (28.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2497
+  (1.2ms) BEGIN
2498
+ --------------------
2499
+ DslTest: test_search
2500
+ --------------------
2501
+  (0.2ms) ROLLBACK
2502
+  (0.1ms) BEGIN
2503
+ ---------------------------
2504
+ DslTest: test_serialization
2505
+ ---------------------------
2506
+  (0.1ms) ROLLBACK
2507
+  (0.1ms) BEGIN
2508
+ -------------------------
2509
+ RecordTest: test_indexing
2510
+ -------------------------
2511
+ Product Load (2.0ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2512
+ Shop Load (0.9ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2513
+  (0.2ms) SAVEPOINT active_record_1
2514
+ SQL (7.3ms) INSERT INTO "shops" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Anderstons"], ["created_at", "2016-12-06 17:59:43.183699"], ["updated_at", "2016-12-06 17:59:43.183699"]]
2515
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2516
+  (0.2ms) SAVEPOINT active_record_1
2517
+ SQL (13.8ms) INSERT INTO "products" ("name", "category", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Les Paul"], ["category", "Gibson"], ["shop_id", 65], ["created_at", "2016-12-06 17:59:43.210265"], ["updated_at", "2016-12-06 17:59:43.210265"]]
2518
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2519
+ Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" = 60
2520
+  (0.2ms) SAVEPOINT active_record_1
2521
+ SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 60]]
2522
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2523
+ Product Load (0.5ms) SELECT "products".* FROM "products" WHERE "products"."id" = 60
2524
+  (0.8ms) ROLLBACK
2525
+  (0.1ms) BEGIN
2526
+ -------------------------
2527
+ SearchTest: test_includes
2528
+ -------------------------
2529
+ Product Load (0.6ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2530
+ Shop Load (0.8ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2531
+  (0.1ms) SAVEPOINT active_record_1
2532
+ SQL (0.2ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-06 17:59:45.559710"], ["updated_at", "2016-12-06 17:59:45.559710"]]
2533
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2534
+  (0.1ms) SAVEPOINT active_record_1
2535
+ SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Test"], ["shop_id", 66], ["created_at", "2016-12-06 17:59:45.561989"], ["updated_at", "2016-12-06 17:59:45.561989"]]
2536
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2537
+ Product Load (0.5ms) SELECT "products".* FROM "products" WHERE "products"."id" = 61
2538
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (66)
2539
+  (0.8ms) ROLLBACK
2540
+  (0.1ms) BEGIN
2541
+ ---------------------------------
2542
+ SearchTest: test_with_and_without
2543
+ ---------------------------------
2544
+ Product Load (0.8ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2545
+ Shop Load (0.6ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2546
+  (0.1ms) SAVEPOINT active_record_1
2547
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 1], ["created_at", "2016-12-06 17:59:47.672905"], ["updated_at", "2016-12-06 17:59:47.672905"]]
2548
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2549
+  (0.6ms) SAVEPOINT active_record_1
2550
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 2], ["created_at", "2016-12-06 17:59:47.682019"], ["updated_at", "2016-12-06 17:59:47.682019"]]
2551
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2552
+  (0.6ms) SAVEPOINT active_record_1
2553
+ SQL (0.3ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 3], ["created_at", "2016-12-06 17:59:47.688895"], ["updated_at", "2016-12-06 17:59:47.688895"]]
2554
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2555
+  (0.7ms) SAVEPOINT active_record_1
2556
+ SQL (0.3ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 4], ["created_at", "2016-12-06 17:59:47.696373"], ["updated_at", "2016-12-06 17:59:47.696373"]]
2557
+  (0.5ms) RELEASE SAVEPOINT active_record_1
2558
+ Shop Load (0.6ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (4, 3)
2559
+ Shop Load (0.5ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (2, 1)
2560
+  (0.9ms) ROLLBACK
2561
+  (0.1ms) BEGIN
2562
+ ----------------------
2563
+ SearchTest: test_order
2564
+ ----------------------
2565
+ Product Load (1.1ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2566
+ Shop Load (0.9ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2567
+  (0.2ms) SAVEPOINT active_record_1
2568
+ SQL (0.2ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-06 17:59:49.821040"], ["updated_at", "2016-12-06 17:59:49.821040"]]
2569
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2570
+  (0.5ms) SAVEPOINT active_record_1
2571
+ SQL (0.3ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 1], ["name", "1"], ["price", 1], ["position", 1], ["currency", "UYU"], ["shop_id", 67], ["created_at", "2016-12-06 17:59:49.828411"], ["updated_at", "2016-12-06 17:59:49.828411"]]
2572
+  (0.4ms) RELEASE SAVEPOINT active_record_1
2573
+  (0.8ms) SAVEPOINT active_record_1
2574
+ SQL (0.3ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 2], ["name", "2"], ["price", 2], ["position", 2], ["currency", "UYU"], ["shop_id", 67], ["created_at", "2016-12-06 17:59:49.838553"], ["updated_at", "2016-12-06 17:59:49.838553"]]
2575
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2576
+  (0.8ms) SAVEPOINT active_record_1
2577
+ SQL (0.7ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 3], ["name", "3"], ["price", 3], ["position", 3], ["currency", "UYU"], ["shop_id", 67], ["created_at", "2016-12-06 17:59:49.846241"], ["updated_at", "2016-12-06 17:59:49.846241"]]
2578
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2579
+ Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (1, 2, 3)
2580
+ Product Load (0.5ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (3, 2, 1)
2581
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (1, 2, 3)
2582
+ Product Load (0.5ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (3, 2, 1)
2583
+ Product Load (0.6ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (1, 2, 3)
2584
+ Product Load (0.7ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (3, 2, 1)
2585
+ Product Load (0.6ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (3, 2, 1)
2586
+ Product Load (0.7ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (3, 2, 1)
2587
+  (0.8ms) ROLLBACK
2588
+  (0.2ms) BEGIN
2589
+ ---------------------------
2590
+ SearchTest: test_pagination
2591
+ ---------------------------
2592
+ Product Load (1.6ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2593
+ Shop Load (1.5ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2594
+  (0.2ms) SAVEPOINT active_record_1
2595
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 1], ["created_at", "2016-12-06 17:59:52.523668"], ["updated_at", "2016-12-06 17:59:52.523668"]]
2596
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2597
+  (0.9ms) SAVEPOINT active_record_1
2598
+ SQL (0.3ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 2], ["created_at", "2016-12-06 17:59:52.531580"], ["updated_at", "2016-12-06 17:59:52.531580"]]
2599
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2600
+  (0.2ms) SAVEPOINT active_record_1
2601
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 3], ["created_at", "2016-12-06 17:59:52.539984"], ["updated_at", "2016-12-06 17:59:52.539984"]]
2602
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2603
+  (0.7ms) SAVEPOINT active_record_1
2604
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 4], ["created_at", "2016-12-06 17:59:52.547659"], ["updated_at", "2016-12-06 17:59:52.547659"]]
2605
+  (0.5ms) RELEASE SAVEPOINT active_record_1
2606
+  (0.6ms) SAVEPOINT active_record_1
2607
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 5], ["created_at", "2016-12-06 17:59:52.554737"], ["updated_at", "2016-12-06 17:59:52.554737"]]
2608
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2609
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (5, 4)
2610
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (3, 2)
2611
+ Shop Load (0.7ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 1
2612
+ Shop Load (0.5ms) SELECT "shops".* FROM "shops" WHERE 1=0
2613
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (3, 2)
2614
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 1
2615
+ Shop Load (0.5ms) SELECT "shops".* FROM "shops" WHERE 1=0
2616
+  (0.9ms) ROLLBACK
2617
+  (0.1ms) BEGIN
2618
+ -------------------------
2619
+ GeneratorTest: test_index
2620
+ -------------------------
2621
+  (0.3ms) ROLLBACK
2622
+  (0.1ms) BEGIN
2623
+ ---------------------------
2624
+ GeneratorTest: test_install
2625
+ ---------------------------
2626
+  (0.2ms) ROLLBACK
2627
+  (0.4ms) BEGIN
2628
+ --------------------
2629
+ IndexTest: test_find
2630
+ --------------------
2631
+ Product Load (0.6ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2632
+ Shop Load (0.7ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2633
+  (1.1ms) ROLLBACK
2634
+  (0.2ms) BEGIN
2635
+ -------------------------
2636
+ IndexTest: test_namespace
2637
+ -------------------------
2638
+ Product Load (0.7ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2639
+ Shop Load (0.6ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2640
+  (0.8ms) ROLLBACK
2641
+  (0.2ms) BEGIN
2642
+ -----------------------
2643
+ IndexTest: test_suggest
2644
+ -----------------------
2645
+ Product Load (0.8ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2646
+ Shop Load (0.6ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2647
+  (0.1ms) SAVEPOINT active_record_1
2648
+ SQL (0.2ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-06 17:59:54.874704"], ["updated_at", "2016-12-06 17:59:54.874704"]]
2649
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2650
+  (0.1ms) SAVEPOINT active_record_1
2651
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 68], ["created_at", "2016-12-06 17:59:54.876707"], ["updated_at", "2016-12-06 17:59:54.876707"]]
2652
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2653
+  (0.7ms) SAVEPOINT active_record_1
2654
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Stratocaster"], ["shop_id", 68], ["created_at", "2016-12-06 17:59:54.907296"], ["updated_at", "2016-12-06 17:59:54.907296"]]
2655
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2656
+  (0.8ms) ROLLBACK
2657
+  (0.2ms) BEGIN
2658
+ ---------------------
2659
+ IndexTest: test_exist
2660
+ ---------------------
2661
+ Product Load (1.2ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2662
+ Shop Load (0.7ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2663
+  (0.7ms) ROLLBACK
2664
+  (0.2ms) BEGIN
2665
+ --------------------
2666
+ TaskTest: test_build
2667
+ --------------------
2668
+ Product Load (0.6ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2669
+ Shop Load (0.7ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2670
+  (1.5ms) ROLLBACK
2671
+  (0.1ms) BEGIN
2672
+ ----------------------
2673
+ TaskTest: test_rebuild
2674
+ ----------------------
2675
+ Product Load (0.5ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2676
+ Shop Load (0.8ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2677
+ Product Load (0.7ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2678
+ Shop Load (0.7ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2679
+  (0.4ms) ROLLBACK
2680
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
2681
+  (0.4ms) BEGIN
2682
+ -------------------------
2683
+ RecordTest: test_indexing
2684
+ -------------------------
2685
+ Product Load (0.7ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2686
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2687
+  (0.2ms) SAVEPOINT active_record_1
2688
+ SQL (0.4ms) INSERT INTO "shops" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Anderstons"], ["created_at", "2016-12-06 18:00:13.851176"], ["updated_at", "2016-12-06 18:00:13.851176"]]
2689
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2690
+  (0.2ms) SAVEPOINT active_record_1
2691
+ SQL (0.3ms) INSERT INTO "products" ("name", "category", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Les Paul"], ["category", "Gibson"], ["shop_id", 69], ["created_at", "2016-12-06 18:00:13.869628"], ["updated_at", "2016-12-06 18:00:13.869628"]]
2692
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2693
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = 64
2694
+  (0.1ms) SAVEPOINT active_record_1
2695
+ SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 64]]
2696
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2697
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = 64
2698
+  (0.8ms) ROLLBACK
2699
+  (0.1ms) BEGIN
2700
+ --------------------
2701
+ IndexTest: test_find
2702
+ --------------------
2703
+ Product Load (0.7ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2704
+ Shop Load (0.7ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2705
+  (1.0ms) ROLLBACK
2706
+  (0.1ms) BEGIN
2707
+ -------------------------
2708
+ IndexTest: test_namespace
2709
+ -------------------------
2710
+ Product Load (1.6ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2711
+ Shop Load (0.9ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2712
+  (1.0ms) ROLLBACK
2713
+  (0.1ms) BEGIN
2714
+ -----------------------
2715
+ IndexTest: test_suggest
2716
+ -----------------------
2717
+ Product Load (0.8ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2718
+ Shop Load (0.6ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2719
+  (0.1ms) SAVEPOINT active_record_1
2720
+ SQL (0.2ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-06 18:00:16.116927"], ["updated_at", "2016-12-06 18:00:16.116927"]]
2721
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2722
+  (0.1ms) SAVEPOINT active_record_1
2723
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 70], ["created_at", "2016-12-06 18:00:16.120066"], ["updated_at", "2016-12-06 18:00:16.120066"]]
2724
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2725
+  (0.6ms) SAVEPOINT active_record_1
2726
+ SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Stratocaster"], ["shop_id", 70], ["created_at", "2016-12-06 18:00:16.135184"], ["updated_at", "2016-12-06 18:00:16.135184"]]
2727
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2728
+  (0.8ms) ROLLBACK
2729
+  (0.2ms) BEGIN
2730
+ ---------------------
2731
+ IndexTest: test_exist
2732
+ ---------------------
2733
+ Product Load (0.6ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2734
+ Shop Load (0.6ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2735
+  (0.8ms) ROLLBACK
2736
+  (0.1ms) BEGIN
2737
+ ---------------------------------
2738
+ SearchTest: test_with_and_without
2739
+ ---------------------------------
2740
+ Product Load (0.5ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2741
+ Shop Load (0.6ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2742
+  (0.1ms) SAVEPOINT active_record_1
2743
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 1], ["created_at", "2016-12-06 18:00:18.280241"], ["updated_at", "2016-12-06 18:00:18.280241"]]
2744
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2745
+  (0.6ms) SAVEPOINT active_record_1
2746
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 2], ["created_at", "2016-12-06 18:00:18.287146"], ["updated_at", "2016-12-06 18:00:18.287146"]]
2747
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2748
+  (0.6ms) SAVEPOINT active_record_1
2749
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 3], ["created_at", "2016-12-06 18:00:18.293693"], ["updated_at", "2016-12-06 18:00:18.293693"]]
2750
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2751
+  (0.7ms) SAVEPOINT active_record_1
2752
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 4], ["created_at", "2016-12-06 18:00:18.300134"], ["updated_at", "2016-12-06 18:00:18.300134"]]
2753
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2754
+ Shop Load (0.5ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (4, 3)
2755
+ Shop Load (0.5ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (2, 1)
2756
+  (0.7ms) ROLLBACK
2757
+  (0.1ms) BEGIN
2758
+ -------------------------
2759
+ SearchTest: test_includes
2760
+ -------------------------
2761
+ Product Load (0.7ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2762
+ Shop Load (0.5ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2763
+  (0.2ms) SAVEPOINT active_record_1
2764
+ SQL (0.3ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-06 18:00:20.371014"], ["updated_at", "2016-12-06 18:00:20.371014"]]
2765
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2766
+  (0.1ms) SAVEPOINT active_record_1
2767
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Test"], ["shop_id", 71], ["created_at", "2016-12-06 18:00:20.373345"], ["updated_at", "2016-12-06 18:00:20.373345"]]
2768
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2769
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = 67
2770
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (71)
2771
+  (0.7ms) ROLLBACK
2772
+  (0.2ms) BEGIN
2773
+ ----------------------
2774
+ SearchTest: test_order
2775
+ ----------------------
2776
+ Product Load (0.7ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2777
+ Shop Load (0.7ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2778
+  (0.2ms) SAVEPOINT active_record_1
2779
+ SQL (0.2ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-06 18:00:22.449099"], ["updated_at", "2016-12-06 18:00:22.449099"]]
2780
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2781
+  (0.5ms) SAVEPOINT active_record_1
2782
+ SQL (0.3ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 1], ["name", "1"], ["price", 1], ["position", 1], ["currency", "UYU"], ["shop_id", 72], ["created_at", "2016-12-06 18:00:22.456732"], ["updated_at", "2016-12-06 18:00:22.456732"]]
2783
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2784
+  (0.4ms) SAVEPOINT active_record_1
2785
+ SQL (0.3ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 2], ["name", "2"], ["price", 2], ["position", 2], ["currency", "UYU"], ["shop_id", 72], ["created_at", "2016-12-06 18:00:22.467138"], ["updated_at", "2016-12-06 18:00:22.467138"]]
2786
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2787
+  (1.2ms) SAVEPOINT active_record_1
2788
+ SQL (0.4ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 3], ["name", "3"], ["price", 3], ["position", 3], ["currency", "UYU"], ["shop_id", 72], ["created_at", "2016-12-06 18:00:22.476947"], ["updated_at", "2016-12-06 18:00:22.476947"]]
2789
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2790
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (1, 2, 3)
2791
+ Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (3, 2, 1)
2792
+ Product Load (0.5ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (1, 2, 3)
2793
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (3, 2, 1)
2794
+ Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (1, 2, 3)
2795
+ Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (3, 2, 1)
2796
+ Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (3, 2, 1)
2797
+ Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (3, 2, 1)
2798
+  (0.9ms) ROLLBACK
2799
+  (0.1ms) BEGIN
2800
+ ---------------------------
2801
+ SearchTest: test_pagination
2802
+ ---------------------------
2803
+ Product Load (0.9ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2804
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2805
+  (0.1ms) SAVEPOINT active_record_1
2806
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 1], ["created_at", "2016-12-06 18:00:24.596036"], ["updated_at", "2016-12-06 18:00:24.596036"]]
2807
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2808
+  (0.9ms) SAVEPOINT active_record_1
2809
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 2], ["created_at", "2016-12-06 18:00:24.602923"], ["updated_at", "2016-12-06 18:00:24.602923"]]
2810
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2811
+  (0.7ms) SAVEPOINT active_record_1
2812
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 3], ["created_at", "2016-12-06 18:00:24.613529"], ["updated_at", "2016-12-06 18:00:24.613529"]]
2813
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2814
+  (0.7ms) SAVEPOINT active_record_1
2815
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 4], ["created_at", "2016-12-06 18:00:24.620916"], ["updated_at", "2016-12-06 18:00:24.620916"]]
2816
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2817
+  (0.7ms) SAVEPOINT active_record_1
2818
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 5], ["created_at", "2016-12-06 18:00:24.628645"], ["updated_at", "2016-12-06 18:00:24.628645"]]
2819
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2820
+ Shop Load (0.6ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (5, 4)
2821
+ Shop Load (0.8ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (3, 2)
2822
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 1
2823
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE 1=0
2824
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (3, 2)
2825
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 1
2826
+ Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE 1=0
2827
+  (0.4ms) ROLLBACK
2828
+  (0.1ms) BEGIN
2829
+ ---------------------------
2830
+ GeneratorTest: test_install
2831
+ ---------------------------
2832
+  (0.2ms) ROLLBACK
2833
+  (0.1ms) BEGIN
2834
+ -------------------------
2835
+ GeneratorTest: test_index
2836
+ -------------------------
2837
+  (0.3ms) ROLLBACK
2838
+  (0.1ms) BEGIN
2839
+ ----------------------
2840
+ TaskTest: test_rebuild
2841
+ ----------------------
2842
+ Product Load (1.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2843
+ Shop Load (0.9ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2844
+  (1.2ms) ROLLBACK
2845
+  (0.1ms) BEGIN
2846
+ --------------------
2847
+ TaskTest: test_build
2848
+ --------------------
2849
+ Product Load (0.5ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2850
+ Shop Load (0.8ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2851
+ Product Load (1.1ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2852
+ Shop Load (0.8ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2853
+  (0.8ms) ROLLBACK
2854
+  (0.1ms) BEGIN
2855
+ --------------------
2856
+ DslTest: test_search
2857
+ --------------------
2858
+  (0.2ms) ROLLBACK
2859
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
2860
+  (0.2ms) BEGIN
2861
+ ---------------------
2862
+ IndexTest: test_exist
2863
+ ---------------------
2864
+ Product Load (0.8ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2865
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2866
+  (0.9ms) ROLLBACK
2867
+  (0.1ms) BEGIN
2868
+ -------------------------
2869
+ IndexTest: test_namespace
2870
+ -------------------------
2871
+ Product Load (0.5ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2872
+ Shop Load (0.6ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2873
+  (1.3ms) ROLLBACK
2874
+  (0.1ms) BEGIN
2875
+ -----------------------
2876
+ IndexTest: test_suggest
2877
+ -----------------------
2878
+ Product Load (0.9ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2879
+ Shop Load (0.9ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2880
+  (0.2ms) SAVEPOINT active_record_1
2881
+ SQL (0.5ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-06 19:27:46.879085"], ["updated_at", "2016-12-06 19:27:46.879085"]]
2882
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2883
+  (0.3ms) SAVEPOINT active_record_1
2884
+ SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 73], ["created_at", "2016-12-06 19:27:46.905059"], ["updated_at", "2016-12-06 19:27:46.905059"]]
2885
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2886
+  (1.3ms) SAVEPOINT active_record_1
2887
+ SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Stratocaster"], ["shop_id", 73], ["created_at", "2016-12-06 19:27:46.931520"], ["updated_at", "2016-12-06 19:27:46.931520"]]
2888
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2889
+  (0.8ms) ROLLBACK
2890
+  (0.1ms) BEGIN
2891
+ --------------------
2892
+ IndexTest: test_find
2893
+ --------------------
2894
+ Product Load (0.8ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2895
+ Shop Load (0.6ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2896
+  (1.0ms) ROLLBACK
2897
+  (0.1ms) BEGIN
2898
+ --------------------
2899
+ TaskTest: test_build
2900
+ --------------------
2901
+ Product Load (0.8ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2902
+ Shop Load (0.5ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2903
+  (0.7ms) ROLLBACK
2904
+  (0.1ms) BEGIN
2905
+ ----------------------
2906
+ TaskTest: test_rebuild
2907
+ ----------------------
2908
+ Product Load (0.6ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2909
+ Shop Load (0.6ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2910
+ Product Load (0.7ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2911
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2912
+  (0.8ms) ROLLBACK
2913
+  (0.1ms) BEGIN
2914
+ -------------------------
2915
+ RecordTest: test_indexing
2916
+ -------------------------
2917
+ Product Load (1.1ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2918
+ Shop Load (0.9ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2919
+  (0.2ms) SAVEPOINT active_record_1
2920
+ SQL (0.2ms) INSERT INTO "shops" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Anderstons"], ["created_at", "2016-12-06 19:27:49.276733"], ["updated_at", "2016-12-06 19:27:49.276733"]]
2921
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2922
+  (0.2ms) SAVEPOINT active_record_1
2923
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Les Paul"], ["category", "Gibson"], ["shop_id", 74], ["created_at", "2016-12-06 19:27:49.280288"], ["updated_at", "2016-12-06 19:27:49.280288"]]
2924
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2925
+ Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" = 70
2926
+  (0.1ms) SAVEPOINT active_record_1
2927
+ SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 70]]
2928
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2929
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = 70
2930
+  (0.7ms) ROLLBACK
2931
+  (0.1ms) BEGIN
2932
+ --------------------
2933
+ DslTest: test_search
2934
+ --------------------
2935
+  (0.2ms) ROLLBACK
2936
+  (0.2ms) BEGIN
2937
+ ----------------------
2938
+ SearchTest: test_order
2939
+ ----------------------
2940
+ Product Load (0.6ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2941
+ Shop Load (0.9ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2942
+  (0.2ms) SAVEPOINT active_record_1
2943
+ SQL (0.2ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-06 19:27:51.413862"], ["updated_at", "2016-12-06 19:27:51.413862"]]
2944
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2945
+  (0.2ms) SAVEPOINT active_record_1
2946
+ SQL (0.3ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 1], ["name", "1"], ["price", 1], ["position", 1], ["currency", "UYU"], ["shop_id", 75], ["created_at", "2016-12-06 19:27:51.421186"], ["updated_at", "2016-12-06 19:27:51.421186"]]
2947
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2948
+  (0.8ms) SAVEPOINT active_record_1
2949
+ SQL (0.2ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 2], ["name", "2"], ["price", 2], ["position", 2], ["currency", "UYU"], ["shop_id", 75], ["created_at", "2016-12-06 19:27:51.433132"], ["updated_at", "2016-12-06 19:27:51.433132"]]
2950
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2951
+  (0.7ms) SAVEPOINT active_record_1
2952
+ SQL (0.2ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 3], ["name", "3"], ["price", 3], ["position", 3], ["currency", "UYU"], ["shop_id", 75], ["created_at", "2016-12-06 19:27:51.440232"], ["updated_at", "2016-12-06 19:27:51.440232"]]
2953
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2954
+ Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (1, 2, 3)
2955
+ Product Load (0.5ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (3, 2, 1)
2956
+ Product Load (0.9ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (1, 2, 3)
2957
+ Product Load (0.7ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (3, 2, 1)
2958
+ Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (1, 2, 3)
2959
+ Product Load (1.6ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (3, 2, 1)
2960
+ Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (3, 2, 1)
2961
+ Product Load (0.9ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (3, 2, 1)
2962
+  (1.2ms) ROLLBACK
2963
+  (0.2ms) BEGIN
2964
+ ---------------------------
2965
+ SearchTest: test_pagination
2966
+ ---------------------------
2967
+ Product Load (0.7ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2968
+ Shop Load (0.6ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2969
+  (0.1ms) SAVEPOINT active_record_1
2970
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 1], ["created_at", "2016-12-06 19:27:53.564283"], ["updated_at", "2016-12-06 19:27:53.564283"]]
2971
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2972
+  (0.9ms) SAVEPOINT active_record_1
2973
+ SQL (0.3ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 2], ["created_at", "2016-12-06 19:27:53.570865"], ["updated_at", "2016-12-06 19:27:53.570865"]]
2974
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2975
+  (0.7ms) SAVEPOINT active_record_1
2976
+ SQL (0.3ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 3], ["created_at", "2016-12-06 19:27:53.577753"], ["updated_at", "2016-12-06 19:27:53.577753"]]
2977
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2978
+  (0.7ms) SAVEPOINT active_record_1
2979
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 4], ["created_at", "2016-12-06 19:27:53.583619"], ["updated_at", "2016-12-06 19:27:53.583619"]]
2980
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2981
+  (1.1ms) SAVEPOINT active_record_1
2982
+ SQL (0.3ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 5], ["created_at", "2016-12-06 19:27:53.589591"], ["updated_at", "2016-12-06 19:27:53.589591"]]
2983
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2984
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (5, 4)
2985
+ Shop Load (0.5ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (3, 2)
2986
+ Shop Load (0.6ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 1
2987
+ Shop Load (0.6ms) SELECT "shops".* FROM "shops" WHERE 1=0
2988
+ Shop Load (0.6ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (3, 2)
2989
+ Shop Load (0.5ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 1
2990
+ Shop Load (0.7ms) SELECT "shops".* FROM "shops" WHERE 1=0
2991
+  (0.8ms) ROLLBACK
2992
+  (0.1ms) BEGIN
2993
+ -------------------------
2994
+ SearchTest: test_includes
2995
+ -------------------------
2996
+ Product Load (0.6ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
2997
+ Shop Load (0.8ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
2998
+  (0.1ms) SAVEPOINT active_record_1
2999
+ SQL (0.2ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-06 19:27:55.684403"], ["updated_at", "2016-12-06 19:27:55.684403"]]
3000
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3001
+  (0.1ms) SAVEPOINT active_record_1
3002
+ SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Test"], ["shop_id", 76], ["created_at", "2016-12-06 19:27:55.686508"], ["updated_at", "2016-12-06 19:27:55.686508"]]
3003
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3004
+ Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" = 71
3005
+ Shop Load (0.5ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (76)
3006
+  (3.5ms) ROLLBACK
3007
+  (0.1ms) BEGIN
3008
+ ---------------------------------
3009
+ SearchTest: test_with_and_without
3010
+ ---------------------------------
3011
+ Product Load (1.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
3012
+ Shop Load (0.7ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
3013
+  (0.2ms) SAVEPOINT active_record_1
3014
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 1], ["created_at", "2016-12-06 19:27:57.820861"], ["updated_at", "2016-12-06 19:27:57.820861"]]
3015
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3016
+  (0.6ms) SAVEPOINT active_record_1
3017
+ SQL (0.5ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 2], ["created_at", "2016-12-06 19:27:57.826613"], ["updated_at", "2016-12-06 19:27:57.826613"]]
3018
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3019
+  (0.8ms) SAVEPOINT active_record_1
3020
+ SQL (0.3ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 3], ["created_at", "2016-12-06 19:27:57.833723"], ["updated_at", "2016-12-06 19:27:57.833723"]]
3021
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3022
+  (0.8ms) SAVEPOINT active_record_1
3023
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 4], ["created_at", "2016-12-06 19:27:57.842631"], ["updated_at", "2016-12-06 19:27:57.842631"]]
3024
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3025
+ Shop Load (0.6ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (4, 3)
3026
+ Shop Load (0.5ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (2, 1)
3027
+  (0.8ms) ROLLBACK
3028
+  (0.1ms) BEGIN
3029
+ -------------------------
3030
+ GeneratorTest: test_index
3031
+ -------------------------
3032
+  (0.3ms) ROLLBACK
3033
+  (0.1ms) BEGIN
3034
+ ---------------------------
3035
+ GeneratorTest: test_install
3036
+ ---------------------------
3037
+  (0.3ms) ROLLBACK
3038
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
3039
+  (0.2ms) BEGIN
3040
+ --------------------
3041
+ DslTest: test_search
3042
+ --------------------
3043
+  (0.2ms) ROLLBACK
3044
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
3045
+  (0.2ms) BEGIN
3046
+ --------------------
3047
+ DslTest: test_search
3048
+ --------------------
3049
+  (0.2ms) ROLLBACK
3050
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
3051
+  (0.2ms) BEGIN
3052
+ --------------------
3053
+ DslTest: test_search
3054
+ --------------------
3055
+  (0.2ms) ROLLBACK
3056
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
3057
+  (0.2ms) BEGIN
3058
+ --------------------
3059
+ DslTest: test_search
3060
+ --------------------
3061
+  (0.2ms) ROLLBACK
3062
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
3063
+  (0.2ms) BEGIN
3064
+ --------------------
3065
+ DslTest: test_search
3066
+ --------------------
3067
+  (0.1ms) SAVEPOINT active_record_1
3068
+ SQL (0.4ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-06 19:40:02.432362"], ["updated_at", "2016-12-06 19:40:02.432362"]]
3069
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3070
+  (0.2ms) ROLLBACK
3071
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
3072
+  (0.2ms) BEGIN
3073
+ --------------------
3074
+ DslTest: test_search
3075
+ --------------------
3076
+  (0.2ms) SAVEPOINT active_record_1
3077
+ SQL (0.5ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-06 20:08:43.637049"], ["updated_at", "2016-12-06 20:08:43.637049"]]
3078
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3079
+  (0.3ms) ROLLBACK
3080
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
3081
+  (0.2ms) BEGIN
3082
+ --------------------
3083
+ DslTest: test_search
3084
+ --------------------
3085
+  (0.2ms) SAVEPOINT active_record_1
3086
+ SQL (0.4ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-06 20:12:00.041115"], ["updated_at", "2016-12-06 20:12:00.041115"]]
3087
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3088
+  (0.2ms) ROLLBACK
3089
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
3090
+  (0.2ms) BEGIN
3091
+ --------------------
3092
+ DslTest: test_search
3093
+ --------------------
3094
+  (0.1ms) SAVEPOINT active_record_1
3095
+ SQL (0.4ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-06 20:12:22.204804"], ["updated_at", "2016-12-06 20:12:22.204804"]]
3096
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3097
+  (0.2ms) ROLLBACK
3098
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
3099
+  (0.2ms) BEGIN
3100
+ -------------------------
3101
+ SearchTest: test_includes
3102
+ -------------------------
3103
+ Product Load (0.5ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
3104
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
3105
+  (0.2ms) SAVEPOINT active_record_1
3106
+ SQL (0.4ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-06 20:13:26.327348"], ["updated_at", "2016-12-06 20:13:26.327348"]]
3107
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3108
+  (0.2ms) SAVEPOINT active_record_1
3109
+ SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Test"], ["shop_id", 81], ["created_at", "2016-12-06 20:13:26.346145"], ["updated_at", "2016-12-06 20:13:26.346145"]]
3110
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3111
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = 72
3112
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (81)
3113
+  (0.7ms) ROLLBACK
3114
+  (0.1ms) BEGIN
3115
+ ---------------------------
3116
+ SearchTest: test_pagination
3117
+ ---------------------------
3118
+ Product Load (0.6ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
3119
+ Shop Load (0.6ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
3120
+  (0.1ms) SAVEPOINT active_record_1
3121
+ SQL (0.3ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 1], ["created_at", "2016-12-06 20:13:28.452250"], ["updated_at", "2016-12-06 20:13:28.452250"]]
3122
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3123
+  (0.6ms) SAVEPOINT active_record_1
3124
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 2], ["created_at", "2016-12-06 20:13:28.459078"], ["updated_at", "2016-12-06 20:13:28.459078"]]
3125
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3126
+  (0.6ms) SAVEPOINT active_record_1
3127
+ SQL (0.3ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 3], ["created_at", "2016-12-06 20:13:28.465591"], ["updated_at", "2016-12-06 20:13:28.465591"]]
3128
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3129
+  (0.5ms) SAVEPOINT active_record_1
3130
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 4], ["created_at", "2016-12-06 20:13:28.472170"], ["updated_at", "2016-12-06 20:13:28.472170"]]
3131
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3132
+  (0.6ms) SAVEPOINT active_record_1
3133
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 5], ["created_at", "2016-12-06 20:13:28.477111"], ["updated_at", "2016-12-06 20:13:28.477111"]]
3134
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3135
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (5, 4)
3136
+ Shop Load (0.5ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (3, 2)
3137
+ Shop Load (0.5ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 1
3138
+ Shop Load (0.5ms) SELECT "shops".* FROM "shops" WHERE 1=0
3139
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (3, 2)
3140
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 1
3141
+ Shop Load (0.5ms) SELECT "shops".* FROM "shops" WHERE 1=0
3142
+  (0.9ms) ROLLBACK
3143
+  (0.1ms) BEGIN
3144
+ ---------------------------------
3145
+ SearchTest: test_with_and_without
3146
+ ---------------------------------
3147
+ Product Load (0.9ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
3148
+ Shop Load (0.6ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
3149
+  (0.1ms) SAVEPOINT active_record_1
3150
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 1], ["created_at", "2016-12-06 20:13:30.587625"], ["updated_at", "2016-12-06 20:13:30.587625"]]
3151
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3152
+  (0.6ms) SAVEPOINT active_record_1
3153
+ SQL (0.3ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 2], ["created_at", "2016-12-06 20:13:30.595360"], ["updated_at", "2016-12-06 20:13:30.595360"]]
3154
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3155
+  (0.6ms) SAVEPOINT active_record_1
3156
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 3], ["created_at", "2016-12-06 20:13:30.601854"], ["updated_at", "2016-12-06 20:13:30.601854"]]
3157
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3158
+  (0.8ms) SAVEPOINT active_record_1
3159
+ SQL (0.3ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 4], ["created_at", "2016-12-06 20:13:30.609282"], ["updated_at", "2016-12-06 20:13:30.609282"]]
3160
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3161
+ Shop Load (0.5ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (4, 3)
3162
+ Shop Load (0.5ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (2, 1)
3163
+  (0.7ms) ROLLBACK
3164
+  (0.1ms) BEGIN
3165
+ ----------------------
3166
+ SearchTest: test_order
3167
+ ----------------------
3168
+ Product Load (0.8ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
3169
+ Shop Load (0.5ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
3170
+  (0.1ms) SAVEPOINT active_record_1
3171
+ SQL (0.2ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-06 20:13:32.681273"], ["updated_at", "2016-12-06 20:13:32.681273"]]
3172
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3173
+  (0.5ms) SAVEPOINT active_record_1
3174
+ SQL (0.2ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 1], ["name", "1"], ["price", 1], ["position", 1], ["currency", "UYU"], ["shop_id", 82], ["created_at", "2016-12-06 20:13:32.687492"], ["updated_at", "2016-12-06 20:13:32.687492"]]
3175
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3176
+  (0.7ms) SAVEPOINT active_record_1
3177
+ SQL (0.2ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 2], ["name", "2"], ["price", 2], ["position", 2], ["currency", "UYU"], ["shop_id", 82], ["created_at", "2016-12-06 20:13:32.695721"], ["updated_at", "2016-12-06 20:13:32.695721"]]
3178
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3179
+  (0.7ms) SAVEPOINT active_record_1
3180
+ SQL (0.3ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 3], ["name", "3"], ["price", 3], ["position", 3], ["currency", "UYU"], ["shop_id", 82], ["created_at", "2016-12-06 20:13:32.702456"], ["updated_at", "2016-12-06 20:13:32.702456"]]
3181
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3182
+ Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (1, 2, 3)
3183
+ Product Load (0.7ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (3, 2, 1)
3184
+ Product Load (0.6ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (1, 2, 3)
3185
+ Product Load (1.1ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (3, 2, 1)
3186
+ Product Load (0.7ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (1, 2, 3)
3187
+ Product Load (0.6ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (3, 2, 1)
3188
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (3, 2, 1)
3189
+ Product Load (0.7ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (3, 2, 1)
3190
+  (1.3ms) ROLLBACK
3191
+  (0.2ms) BEGIN
3192
+ ---------------------
3193
+ IndexTest: test_exist
3194
+ ---------------------
3195
+ Product Load (0.5ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
3196
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
3197
+  (0.3ms) ROLLBACK
3198
+  (0.1ms) BEGIN
3199
+ -------------------------
3200
+ IndexTest: test_namespace
3201
+ -------------------------
3202
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
3203
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
3204
+  (0.7ms) ROLLBACK
3205
+  (0.1ms) BEGIN
3206
+ -----------------------
3207
+ IndexTest: test_suggest
3208
+ -----------------------
3209
+ Product Load (1.0ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
3210
+ Shop Load (0.5ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
3211
+  (0.1ms) SAVEPOINT active_record_1
3212
+ SQL (0.3ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-06 20:13:34.933104"], ["updated_at", "2016-12-06 20:13:34.933104"]]
3213
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3214
+  (0.1ms) SAVEPOINT active_record_1
3215
+ SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 83], ["created_at", "2016-12-06 20:13:34.937076"], ["updated_at", "2016-12-06 20:13:34.937076"]]
3216
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3217
+  (1.1ms) SAVEPOINT active_record_1
3218
+ SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Stratocaster"], ["shop_id", 83], ["created_at", "2016-12-06 20:13:34.947047"], ["updated_at", "2016-12-06 20:13:34.947047"]]
3219
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3220
+  (0.6ms) ROLLBACK
3221
+  (0.1ms) BEGIN
3222
+ --------------------
3223
+ IndexTest: test_find
3224
+ --------------------
3225
+ Product Load (0.5ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
3226
+ Shop Load (0.8ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
3227
+  (1.1ms) ROLLBACK
3228
+  (0.1ms) BEGIN
3229
+ --------------------
3230
+ DslTest: test_search
3231
+ --------------------
3232
+  (0.2ms) SAVEPOINT active_record_1
3233
+ SQL (0.2ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-06 20:13:37.037672"], ["updated_at", "2016-12-06 20:13:37.037672"]]
3234
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3235
+  (0.3ms) ROLLBACK
3236
+  (0.2ms) BEGIN
3237
+ ---------------------------
3238
+ GeneratorTest: test_install
3239
+ ---------------------------
3240
+  (0.6ms) ROLLBACK
3241
+  (0.1ms) BEGIN
3242
+ -------------------------
3243
+ GeneratorTest: test_index
3244
+ -------------------------
3245
+  (0.3ms) ROLLBACK
3246
+  (0.1ms) BEGIN
3247
+ -------------------------
3248
+ RecordTest: test_indexing
3249
+ -------------------------
3250
+ Product Load (0.4ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
3251
+ Shop Load (1.2ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
3252
+  (0.1ms) SAVEPOINT active_record_1
3253
+ SQL (0.2ms) INSERT INTO "shops" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Anderstons"], ["created_at", "2016-12-06 20:13:37.144627"], ["updated_at", "2016-12-06 20:13:37.144627"]]
3254
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3255
+  (0.2ms) SAVEPOINT active_record_1
3256
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Les Paul"], ["category", "Gibson"], ["shop_id", 85], ["created_at", "2016-12-06 20:13:37.147709"], ["updated_at", "2016-12-06 20:13:37.147709"]]
3257
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3258
+ Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" = 75
3259
+  (0.2ms) SAVEPOINT active_record_1
3260
+ SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 75]]
3261
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3262
+ Product Load (0.8ms) SELECT "products".* FROM "products" WHERE "products"."id" = 75
3263
+  (1.2ms) ROLLBACK
3264
+  (0.1ms) BEGIN
3265
+ ----------------------
3266
+ TaskTest: test_rebuild
3267
+ ----------------------
3268
+ Product Load (0.6ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
3269
+ Shop Load (0.7ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
3270
+  (0.8ms) ROLLBACK
3271
+  (0.1ms) BEGIN
3272
+ --------------------
3273
+ TaskTest: test_build
3274
+ --------------------
3275
+ Product Load (0.9ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
3276
+ Shop Load (0.8ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
3277
+ Product Load (0.6ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
3278
+ Shop Load (0.6ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
3279
+  (1.0ms) ROLLBACK
3280
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
3281
+  (0.3ms) BEGIN
3282
+ -------------------------
3283
+ RecordTest: test_indexing
3284
+ -------------------------
3285
+ Product Load (0.6ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
3286
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
3287
+  (0.1ms) SAVEPOINT active_record_1
3288
+ SQL (0.5ms) INSERT INTO "shops" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Anderstons"], ["created_at", "2016-12-06 20:14:09.083496"], ["updated_at", "2016-12-06 20:14:09.083496"]]
3289
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3290
+  (0.3ms) SAVEPOINT active_record_1
3291
+ SQL (0.4ms) INSERT INTO "products" ("name", "category", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Les Paul"], ["category", "Gibson"], ["shop_id", 86], ["created_at", "2016-12-06 20:14:09.103778"], ["updated_at", "2016-12-06 20:14:09.103778"]]
3292
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3293
+ Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" = 76
3294
+  (0.1ms) SAVEPOINT active_record_1
3295
+ SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 76]]
3296
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3297
+ Product Load (0.5ms) SELECT "products".* FROM "products" WHERE 1=0
3298
+  (0.8ms) ROLLBACK
3299
+  (0.2ms) BEGIN
3300
+ -------------------------
3301
+ IndexTest: test_namespace
3302
+ -------------------------
3303
+ Product Load (1.0ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
3304
+ Shop Load (0.8ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
3305
+  (0.8ms) ROLLBACK
3306
+  (0.1ms) BEGIN
3307
+ ---------------------
3308
+ IndexTest: test_exist
3309
+ ---------------------
3310
+ Product Load (0.7ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
3311
+ Shop Load (0.6ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
3312
+  (0.8ms) ROLLBACK
3313
+  (0.2ms) BEGIN
3314
+ -----------------------
3315
+ IndexTest: test_suggest
3316
+ -----------------------
3317
+ Product Load (1.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
3318
+ Shop Load (0.6ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
3319
+  (0.1ms) SAVEPOINT active_record_1
3320
+ SQL (0.2ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-06 20:14:11.309005"], ["updated_at", "2016-12-06 20:14:11.309005"]]
3321
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3322
+  (0.1ms) SAVEPOINT active_record_1
3323
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["shop_id", 87], ["created_at", "2016-12-06 20:14:11.311450"], ["updated_at", "2016-12-06 20:14:11.311450"]]
3324
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3325
+  (0.8ms) SAVEPOINT active_record_1
3326
+ SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Stratocaster"], ["shop_id", 87], ["created_at", "2016-12-06 20:14:11.326517"], ["updated_at", "2016-12-06 20:14:11.326517"]]
3327
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3328
+  (1.1ms) ROLLBACK
3329
+  (0.2ms) BEGIN
3330
+ --------------------
3331
+ IndexTest: test_find
3332
+ --------------------
3333
+ Product Load (0.8ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
3334
+ Shop Load (0.6ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
3335
+  (0.9ms) ROLLBACK
3336
+  (0.2ms) BEGIN
3337
+ --------------------
3338
+ DslTest: test_search
3339
+ --------------------
3340
+  (0.2ms) SAVEPOINT active_record_1
3341
+ SQL (0.3ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-06 20:14:13.414095"], ["updated_at", "2016-12-06 20:14:13.414095"]]
3342
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3343
+  (0.2ms) ROLLBACK
3344
+  (0.2ms) BEGIN
3345
+ ---------------------------
3346
+ GeneratorTest: test_install
3347
+ ---------------------------
3348
+  (0.2ms) ROLLBACK
3349
+  (0.1ms) BEGIN
3350
+ -------------------------
3351
+ GeneratorTest: test_index
3352
+ -------------------------
3353
+  (0.2ms) ROLLBACK
3354
+  (0.1ms) BEGIN
3355
+ --------------------
3356
+ TaskTest: test_build
3357
+ --------------------
3358
+ Product Load (0.3ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
3359
+ Shop Load (0.8ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
3360
+  (0.9ms) ROLLBACK
3361
+  (0.1ms) BEGIN
3362
+ ----------------------
3363
+ TaskTest: test_rebuild
3364
+ ----------------------
3365
+ Product Load (0.5ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
3366
+ Shop Load (0.6ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
3367
+ Product Load (0.7ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
3368
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
3369
+  (0.7ms) ROLLBACK
3370
+  (0.2ms) BEGIN
3371
+ -------------------------
3372
+ SearchTest: test_includes
3373
+ -------------------------
3374
+ Product Load (0.7ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
3375
+ Shop Load (0.3ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
3376
+  (0.1ms) SAVEPOINT active_record_1
3377
+ SQL (0.2ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-06 20:14:13.649167"], ["updated_at", "2016-12-06 20:14:13.649167"]]
3378
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3379
+  (0.1ms) SAVEPOINT active_record_1
3380
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Test"], ["shop_id", 89], ["created_at", "2016-12-06 20:14:13.651999"], ["updated_at", "2016-12-06 20:14:13.651999"]]
3381
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3382
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = 79
3383
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (89)
3384
+  (0.7ms) ROLLBACK
3385
+  (0.1ms) BEGIN
3386
+ ----------------------
3387
+ SearchTest: test_order
3388
+ ----------------------
3389
+ Product Load (0.8ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
3390
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
3391
+  (0.1ms) SAVEPOINT active_record_1
3392
+ SQL (0.2ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-06 20:14:15.725907"], ["updated_at", "2016-12-06 20:14:15.725907"]]
3393
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3394
+  (0.1ms) SAVEPOINT active_record_1
3395
+ SQL (0.2ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 1], ["name", "1"], ["price", 1], ["position", 1], ["currency", "UYU"], ["shop_id", 90], ["created_at", "2016-12-06 20:14:15.732707"], ["updated_at", "2016-12-06 20:14:15.732707"]]
3396
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3397
+  (0.7ms) SAVEPOINT active_record_1
3398
+ SQL (0.2ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 2], ["name", "2"], ["price", 2], ["position", 2], ["currency", "UYU"], ["shop_id", 90], ["created_at", "2016-12-06 20:14:15.741038"], ["updated_at", "2016-12-06 20:14:15.741038"]]
3399
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3400
+  (0.4ms) SAVEPOINT active_record_1
3401
+ SQL (0.3ms) INSERT INTO "products" ("id", "name", "price", "position", "currency", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", 3], ["name", "3"], ["price", 3], ["position", 3], ["currency", "UYU"], ["shop_id", 90], ["created_at", "2016-12-06 20:14:15.748103"], ["updated_at", "2016-12-06 20:14:15.748103"]]
3402
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3403
+ Product Load (0.9ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (1, 2, 3)
3404
+ Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (3, 2, 1)
3405
+ Product Load (0.8ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (1, 2, 3)
3406
+ Product Load (0.8ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (3, 2, 1)
3407
+ Product Load (0.7ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (1, 2, 3)
3408
+ Product Load (0.8ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (3, 2, 1)
3409
+ Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (3, 2, 1)
3410
+ Product Load (0.8ms) SELECT "products".* FROM "products" WHERE "products"."id" IN (3, 2, 1)
3411
+  (0.8ms) ROLLBACK
3412
+  (0.2ms) BEGIN
3413
+ ---------------------------
3414
+ SearchTest: test_pagination
3415
+ ---------------------------
3416
+ Product Load (0.9ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
3417
+ Shop Load (0.8ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
3418
+  (0.1ms) SAVEPOINT active_record_1
3419
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 1], ["created_at", "2016-12-06 20:14:17.970975"], ["updated_at", "2016-12-06 20:14:17.970975"]]
3420
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3421
+  (1.1ms) SAVEPOINT active_record_1
3422
+ SQL (0.3ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 2], ["created_at", "2016-12-06 20:14:18.088410"], ["updated_at", "2016-12-06 20:14:18.088410"]]
3423
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3424
+  (0.8ms) SAVEPOINT active_record_1
3425
+ SQL (0.3ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 3], ["created_at", "2016-12-06 20:14:18.233350"], ["updated_at", "2016-12-06 20:14:18.233350"]]
3426
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3427
+  (0.6ms) SAVEPOINT active_record_1
3428
+ SQL (0.3ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 4], ["created_at", "2016-12-06 20:14:18.459860"], ["updated_at", "2016-12-06 20:14:18.459860"]]
3429
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3430
+  (0.8ms) SAVEPOINT active_record_1
3431
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 5], ["created_at", "2016-12-06 20:14:18.465707"], ["updated_at", "2016-12-06 20:14:18.465707"]]
3432
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3433
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (5, 4)
3434
+ Shop Load (0.6ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (3, 2)
3435
+ Shop Load (0.5ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 1
3436
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" WHERE 1=0
3437
+ Shop Load (0.5ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (3, 2)
3438
+ Shop Load (0.4ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 1
3439
+ Shop Load (0.5ms) SELECT "shops".* FROM "shops" WHERE 1=0
3440
+  (0.8ms) ROLLBACK
3441
+  (0.1ms) BEGIN
3442
+ ---------------------------------
3443
+ SearchTest: test_with_and_without
3444
+ ---------------------------------
3445
+ Product Load (0.8ms) SELECT "products".* FROM "products" ORDER BY "products"."id" ASC LIMIT 1000
3446
+ Shop Load (0.7ms) SELECT "shops".* FROM "shops" ORDER BY "shops"."id" ASC LIMIT 1000
3447
+  (0.1ms) SAVEPOINT active_record_1
3448
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 1], ["created_at", "2016-12-06 20:14:20.560263"], ["updated_at", "2016-12-06 20:14:20.560263"]]
3449
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3450
+  (0.8ms) SAVEPOINT active_record_1
3451
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 2], ["created_at", "2016-12-06 20:14:20.566426"], ["updated_at", "2016-12-06 20:14:20.566426"]]
3452
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3453
+  (0.8ms) SAVEPOINT active_record_1
3454
+ SQL (0.3ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 3], ["created_at", "2016-12-06 20:14:20.573356"], ["updated_at", "2016-12-06 20:14:20.573356"]]
3455
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3456
+  (0.9ms) SAVEPOINT active_record_1
3457
+ SQL (0.2ms) INSERT INTO "shops" ("id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["id", 4], ["created_at", "2016-12-06 20:14:20.580665"], ["updated_at", "2016-12-06 20:14:20.580665"]]
3458
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3459
+ Shop Load (0.5ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (4, 3)
3460
+ Shop Load (0.5ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IN (2, 1)
3461
+  (0.8ms) ROLLBACK