thermos 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/thermos.rb +4 -4
- data/lib/thermos/beverage.rb +7 -2
- data/lib/thermos/refill_job.rb +5 -3
- data/lib/thermos/version.rb +1 -1
- data/test/dummy/db/schema.rb +5 -5
- data/test/thermos_test.rb +17 -0
- metadata +41 -49
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +0 -31
- data/test/dummy/log/test.log +0 -340
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 886447c2a7bde38e68638bda58ee8dbb289b262d2c9b42abfaae3b60e7b17fa8
|
4
|
+
data.tar.gz: ec12e6101829fca14833f1b9592cc0ee1455b07acf409a8b9550574828122098
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bedcbc1f8c9a53bc0db0f7738ac31b90a3954f2e04c9e317273337e8c5006390e8746437130f6a9bbfcfba07a48d9c141e725075037ed463a3c8bb069b948f34
|
7
|
+
data.tar.gz: b1fdb1e89e785d795578c540eb26a3d63616a18723ffcd201e1beb40beb976519f5932fd7a48b92b858997bfce9bea2dc28c1d4f9c1d43e6a820cea2c620ee99
|
data/lib/thermos.rb
CHANGED
@@ -8,14 +8,14 @@ require 'thermos/refill_job'
|
|
8
8
|
require 'thermos/rebuild_cache_job'
|
9
9
|
|
10
10
|
module Thermos
|
11
|
-
def self.keep_warm(key:, model:, id:, deps: [], lookup_key: nil, &block)
|
12
|
-
fill(key: key, model: model, deps: deps, lookup_key: lookup_key, &block)
|
11
|
+
def self.keep_warm(key:, model:, id:, deps: [], lookup_key: nil, filter: nil, &block)
|
12
|
+
fill(key: key, model: model, deps: deps, lookup_key: lookup_key, filter: filter, &block)
|
13
13
|
drink(key: key, id: id)
|
14
14
|
end
|
15
15
|
|
16
|
-
def self.fill(key:, model:, deps: [], lookup_key: nil, &block)
|
16
|
+
def self.fill(key:, model:, deps: [], lookup_key: nil, filter: nil, &block)
|
17
17
|
BeverageStorage.instance.add_beverage(
|
18
|
-
Beverage.new(key: key, model: model, deps: deps, action: block, lookup_key: lookup_key)
|
18
|
+
Beverage.new(key: key, model: model, deps: deps, action: block, lookup_key: lookup_key, filter: filter)
|
19
19
|
)
|
20
20
|
end
|
21
21
|
|
data/lib/thermos/beverage.rb
CHANGED
@@ -2,12 +2,13 @@
|
|
2
2
|
|
3
3
|
module Thermos
|
4
4
|
class Beverage
|
5
|
-
attr_reader :key, :model, :deps, :action, :lookup_key
|
5
|
+
attr_reader :key, :model, :deps, :action, :lookup_key, :filter
|
6
6
|
|
7
|
-
def initialize(key:, model:, deps:, action:, lookup_key: nil)
|
7
|
+
def initialize(key:, model:, deps:, action:, lookup_key: nil, filter: nil)
|
8
8
|
@key = key
|
9
9
|
@model = model
|
10
10
|
@lookup_key = lookup_key || :id
|
11
|
+
@filter = filter || nil
|
11
12
|
@deps = deps.map do |dep|
|
12
13
|
Dependency.new(model: model, association: dep)
|
13
14
|
end
|
@@ -25,6 +26,10 @@ module Thermos
|
|
25
26
|
end.uniq
|
26
27
|
end
|
27
28
|
|
29
|
+
def should_fill?(model)
|
30
|
+
@filter.class == Proc ? !!@filter.call(model) : true
|
31
|
+
end
|
32
|
+
|
28
33
|
private
|
29
34
|
|
30
35
|
def set_observers
|
data/lib/thermos/refill_job.rb
CHANGED
@@ -9,7 +9,7 @@ module Thermos
|
|
9
9
|
|
10
10
|
def refill_primary_caches(model)
|
11
11
|
BeverageStorage.instance.beverages.each do |beverage|
|
12
|
-
if beverage.model == model.class
|
12
|
+
if beverage.model == model.class && beverage.should_fill?(model)
|
13
13
|
Thermos::RebuildCacheJob.perform_later(beverage.key, model.send(beverage.lookup_key))
|
14
14
|
end
|
15
15
|
end
|
@@ -17,8 +17,10 @@ module Thermos
|
|
17
17
|
|
18
18
|
def refill_dependency_caches(model)
|
19
19
|
BeverageStorage.instance.beverages.each do |beverage|
|
20
|
-
beverage.
|
21
|
-
|
20
|
+
if beverage.should_fill?(model)
|
21
|
+
beverage.lookup_keys_for_dep_model(model).each do |lookup_key|
|
22
|
+
Thermos::RebuildCacheJob.perform_later(beverage.key, lookup_key)
|
23
|
+
end
|
22
24
|
end
|
23
25
|
end
|
24
26
|
end
|
data/lib/thermos/version.rb
CHANGED
data/test/dummy/db/schema.rb
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
# of editing this file, please use the migrations feature of Active Record to
|
3
3
|
# incrementally modify your database, and then regenerate this schema definition.
|
4
4
|
#
|
5
|
-
#
|
6
|
-
#
|
7
|
-
#
|
8
|
-
# from scratch.
|
9
|
-
#
|
5
|
+
# This file is the source Rails uses to define your schema when running `rails
|
6
|
+
# db:schema:load`. When creating a new database, `rails db:schema:load` tends to
|
7
|
+
# be faster and is potentially less error prone than running all of your
|
8
|
+
# migrations from scratch. Old migrations may fail to apply correctly if those
|
9
|
+
# migrations use external dependencies or application code.
|
10
10
|
#
|
11
11
|
# It's strongly recommended that you check this file into your version control system.
|
12
12
|
|
data/test/thermos_test.rb
CHANGED
@@ -126,6 +126,23 @@ class ThermosTest < ActiveSupport::TestCase
|
|
126
126
|
assert_equal 1, Thermos.drink(key: "key", id: "foo")
|
127
127
|
assert_raises(MockExpectationError) { mock.verify }
|
128
128
|
end
|
129
|
+
|
130
|
+
test "allows filtering for which records should be rebuilt" do
|
131
|
+
mock = Minitest::Mock.new
|
132
|
+
category = categories(:baseball)
|
133
|
+
filter = ->(model) { model.name.match("ball") }
|
134
|
+
Thermos.fill(key: "key", model: Category, lookup_key: "name", filter: filter) do |name|
|
135
|
+
mock.call(name)
|
136
|
+
end
|
137
|
+
|
138
|
+
mock.expect(:call, 1, ["basketball"])
|
139
|
+
category.update!(name: "basketball")
|
140
|
+
mock.verify
|
141
|
+
|
142
|
+
mock.expect(:call, 1, ["hockey"])
|
143
|
+
category.update!(name: "hockey")
|
144
|
+
assert_raises(MockExpectationError) { mock.verify }
|
145
|
+
end
|
129
146
|
|
130
147
|
# has_many model changes
|
131
148
|
test "rebuilds the cache on has_many model change" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thermos
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Thal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -106,15 +106,11 @@ files:
|
|
106
106
|
- test/dummy/config/locales/en.yml
|
107
107
|
- test/dummy/config/routes.rb
|
108
108
|
- test/dummy/config/secrets.yml
|
109
|
-
- test/dummy/db/development.sqlite3
|
110
109
|
- test/dummy/db/migrate/20160325214744_create_categories.rb
|
111
110
|
- test/dummy/db/migrate/20160325214849_create_products.rb
|
112
111
|
- test/dummy/db/migrate/20160325220006_create_category_items.rb
|
113
112
|
- test/dummy/db/migrate/20160326174530_create_stores.rb
|
114
113
|
- test/dummy/db/schema.rb
|
115
|
-
- test/dummy/db/test.sqlite3
|
116
|
-
- test/dummy/log/development.log
|
117
|
-
- test/dummy/log/test.log
|
118
114
|
- test/dummy/public/404.html
|
119
115
|
- test/dummy/public/422.html
|
120
116
|
- test/dummy/public/500.html
|
@@ -144,62 +140,58 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
140
|
- !ruby/object:Gem::Version
|
145
141
|
version: '0'
|
146
142
|
requirements: []
|
147
|
-
rubygems_version: 3.
|
143
|
+
rubygems_version: 3.0.3
|
148
144
|
signing_key:
|
149
145
|
specification_version: 4
|
150
146
|
summary: Always-warm, auto-rebuilding rails caching without timers or touching.
|
151
147
|
test_files:
|
152
|
-
- test/
|
148
|
+
- test/fixtures/products.yml
|
149
|
+
- test/fixtures/stores.yml
|
150
|
+
- test/fixtures/categories.yml
|
151
|
+
- test/fixtures/category_items.yml
|
152
|
+
- test/thermos_test.rb
|
153
|
+
- test/dummy/config/locales/en.yml
|
154
|
+
- test/dummy/config/routes.rb
|
155
|
+
- test/dummy/config/database.yml
|
156
|
+
- test/dummy/config/application.rb
|
157
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
158
|
+
- test/dummy/config/initializers/assets.rb
|
159
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
160
|
+
- test/dummy/config/initializers/mime_types.rb
|
161
|
+
- test/dummy/config/initializers/session_store.rb
|
162
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
163
|
+
- test/dummy/config/initializers/inflections.rb
|
164
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
165
|
+
- test/dummy/config/secrets.yml
|
166
|
+
- test/dummy/config/boot.rb
|
167
|
+
- test/dummy/config/environments/production.rb
|
168
|
+
- test/dummy/config/environments/development.rb
|
169
|
+
- test/dummy/config/environments/test.rb
|
170
|
+
- test/dummy/config/environment.rb
|
171
|
+
- test/dummy/bin/setup
|
172
|
+
- test/dummy/bin/rake
|
173
|
+
- test/dummy/bin/rails
|
174
|
+
- test/dummy/bin/bundle
|
153
175
|
- test/dummy/app/models/product.rb
|
176
|
+
- test/dummy/app/models/category.rb
|
154
177
|
- test/dummy/app/models/category_item.rb
|
155
178
|
- test/dummy/app/models/store.rb
|
156
|
-
- test/dummy/app/controllers/application_controller.rb
|
157
|
-
- test/dummy/app/views/layouts/application.html.erb
|
158
179
|
- test/dummy/app/assets/config/manifest.js
|
159
180
|
- test/dummy/app/assets/javascripts/application.js
|
160
181
|
- test/dummy/app/assets/stylesheets/application.css
|
182
|
+
- test/dummy/app/views/layouts/application.html.erb
|
183
|
+
- test/dummy/app/controllers/application_controller.rb
|
161
184
|
- test/dummy/app/helpers/application_helper.rb
|
162
|
-
- test/dummy/bin/rake
|
163
|
-
- test/dummy/bin/setup
|
164
|
-
- test/dummy/bin/bundle
|
165
|
-
- test/dummy/bin/rails
|
166
|
-
- test/dummy/config/secrets.yml
|
167
|
-
- test/dummy/config/routes.rb
|
168
|
-
- test/dummy/config/locales/en.yml
|
169
|
-
- test/dummy/config/environments/production.rb
|
170
|
-
- test/dummy/config/environments/development.rb
|
171
|
-
- test/dummy/config/environments/test.rb
|
172
|
-
- test/dummy/config/environment.rb
|
173
|
-
- test/dummy/config/application.rb
|
174
|
-
- test/dummy/config/database.yml
|
175
|
-
- test/dummy/config/boot.rb
|
176
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
177
|
-
- test/dummy/config/initializers/mime_types.rb
|
178
|
-
- test/dummy/config/initializers/filter_parameter_logging.rb
|
179
|
-
- test/dummy/config/initializers/session_store.rb
|
180
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
181
|
-
- test/dummy/config/initializers/assets.rb
|
182
|
-
- test/dummy/config/initializers/cookies_serializer.rb
|
183
|
-
- test/dummy/config/initializers/inflections.rb
|
184
|
-
- test/dummy/config.ru
|
185
|
-
- test/dummy/Rakefile
|
186
|
-
- test/dummy/public/favicon.ico
|
187
|
-
- test/dummy/public/422.html
|
188
|
-
- test/dummy/public/500.html
|
189
|
-
- test/dummy/public/404.html
|
190
|
-
- test/dummy/db/schema.rb
|
191
|
-
- test/dummy/db/test.sqlite3
|
192
|
-
- test/dummy/db/migrate/20160325214849_create_products.rb
|
193
185
|
- test/dummy/db/migrate/20160326174530_create_stores.rb
|
186
|
+
- test/dummy/db/migrate/20160325214849_create_products.rb
|
194
187
|
- test/dummy/db/migrate/20160325214744_create_categories.rb
|
195
188
|
- test/dummy/db/migrate/20160325220006_create_category_items.rb
|
196
|
-
- test/dummy/db/
|
197
|
-
- test/dummy/
|
198
|
-
- test/dummy/
|
189
|
+
- test/dummy/db/schema.rb
|
190
|
+
- test/dummy/Rakefile
|
191
|
+
- test/dummy/public/404.html
|
192
|
+
- test/dummy/public/422.html
|
193
|
+
- test/dummy/public/favicon.ico
|
194
|
+
- test/dummy/public/500.html
|
199
195
|
- test/dummy/README.rdoc
|
200
|
-
- test/
|
201
|
-
- test/fixtures/products.yml
|
202
|
-
- test/fixtures/categories.yml
|
203
|
-
- test/fixtures/category_items.yml
|
204
|
-
- test/fixtures/stores.yml
|
196
|
+
- test/dummy/config.ru
|
205
197
|
- test/test_helper.rb
|
Binary file
|
data/test/dummy/db/test.sqlite3
DELETED
Binary file
|
@@ -1,31 +0,0 @@
|
|
1
|
-
DEPRECATION WARNING: `.represent_boolean_as_integer=` is now always true, so setting this is deprecated and will be removed in Rails 6.1. (called from load at /Users/athal/.asdf/installs/ruby/2.5.6/bin/rake:23)
|
2
|
-
[1m[35m (1.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
3
|
-
[1m[35m (2.2ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
4
|
-
[1m[35m (1.8ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
5
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
6
|
-
Migrating to CreateCategories (20160325214744)
|
7
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
8
|
-
[1m[35m (0.5ms)[0m [1m[35mCREATE TABLE "categories" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "store_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
9
|
-
[1m[36mprimary::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160325214744"]]
|
10
|
-
[1m[35m (1.3ms)[0m [1m[36mcommit transaction[0m
|
11
|
-
Migrating to CreateProducts (20160325214849)
|
12
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13
|
-
[1m[35m (0.5ms)[0m [1m[35mCREATE TABLE "products" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
14
|
-
[1m[36mprimary::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160325214849"]]
|
15
|
-
[1m[35m (1.3ms)[0m [1m[36mcommit transaction[0m
|
16
|
-
Migrating to CreateCategoryItems (20160325220006)
|
17
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
18
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE TABLE "category_items" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "category_id" integer, "product_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
19
|
-
[1m[36mprimary::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160325220006"]]
|
20
|
-
[1m[35m (1.2ms)[0m [1m[36mcommit transaction[0m
|
21
|
-
Migrating to CreateStores (20160326174530)
|
22
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
23
|
-
[1m[35m (0.5ms)[0m [1m[35mCREATE TABLE "stores" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
24
|
-
[1m[36mprimary::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160326174530"]]
|
25
|
-
[1m[35m (1.1ms)[0m [1m[36mcommit transaction[0m
|
26
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
27
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
28
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.6ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2020-04-30 15:04:00.698654"], ["updated_at", "2020-04-30 15:04:00.698654"]]
|
29
|
-
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
30
|
-
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
31
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
data/test/dummy/log/test.log
DELETED
@@ -1,340 +0,0 @@
|
|
1
|
-
[1m[35m (1.4ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
2
|
-
[1m[35m (1.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
3
|
-
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
4
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
5
|
-
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "categories"[0m
|
6
|
-
[1m[35m (3.9ms)[0m [1m[35mCREATE TABLE "categories" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "store_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
7
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "category_items"[0m
|
8
|
-
[1m[35m (1.2ms)[0m [1m[35mCREATE TABLE "category_items" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "category_id" integer, "product_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
9
|
-
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "products"[0m
|
10
|
-
[1m[35m (1.6ms)[0m [1m[35mCREATE TABLE "products" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
11
|
-
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "stores"[0m
|
12
|
-
[1m[35m (1.8ms)[0m [1m[35mCREATE TABLE "stores" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
13
|
-
[1m[35m (1.5ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
14
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
15
|
-
[1m[35m (2.8ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20160326174530)[0m
|
16
|
-
[1m[35m (1.6ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
17
|
-
(20160325214744),
|
18
|
-
(20160325214849),
|
19
|
-
(20160325220006);
|
20
|
-
|
21
|
-
[0m
|
22
|
-
[1m[35m (1.5ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
23
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
24
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
25
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.5ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2020-04-30 15:04:05.288707"], ["updated_at", "2020-04-30 15:04:05.288707"]]
|
26
|
-
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
27
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
28
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "schema_sha1"], ["LIMIT", 1]]
|
29
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
30
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "schema_sha1"], ["value", "134e2f83987f60f7f5b4e080f9158b942de36d8e"], ["created_at", "2020-04-30 15:04:05.294044"], ["updated_at", "2020-04-30 15:04:05.294044"]]
|
31
|
-
[1m[35m (1.0ms)[0m [1m[36mcommit transaction[0m
|
32
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
33
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
34
|
-
[1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys[0m
|
35
|
-
[1m[35m (0.0ms)[0m [1m[35mPRAGMA defer_foreign_keys[0m
|
36
|
-
[1m[35m (0.1ms)[0m [1m[35mPRAGMA defer_foreign_keys = ON[0m
|
37
|
-
[1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m
|
38
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
39
|
-
[1m[36mFixtures Load (0.8ms)[0m [1m[31mDELETE FROM "products";
|
40
|
-
DELETE FROM "categories";
|
41
|
-
DELETE FROM "category_items";
|
42
|
-
DELETE FROM "stores";
|
43
|
-
INSERT INTO "products" ("id", "name", "created_at", "updated_at") VALUES (469160771, 'glove', '2020-04-30 15:04:05.387008', '2020-04-30 15:04:05.387008');
|
44
|
-
INSERT INTO "categories" ("id", "name", "store_id", "created_at", "updated_at") VALUES (322908140, 'baseball', 868874525, '2020-04-30 15:04:05.388913', '2020-04-30 15:04:05.388913');
|
45
|
-
INSERT INTO "category_items" ("id", "name", "category_id", "product_id", "created_at", "updated_at") VALUES (678302810, 'baseball glove', 322908140, 469160771, '2020-04-30 15:04:05.390505', '2020-04-30 15:04:05.390505');
|
46
|
-
INSERT INTO "stores" ("id", "name", "created_at", "updated_at") VALUES (868874525, 'sports store', '2020-04-30 15:04:05.393035', '2020-04-30 15:04:05.393035')[0m
|
47
|
-
[1m[35m (1.4ms)[0m [1m[36mcommit transaction[0m
|
48
|
-
[1m[35m (0.1ms)[0m [1m[35mPRAGMA defer_foreign_keys = 0[0m
|
49
|
-
[1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m
|
50
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51
|
-
---------------------------------------------------------
|
52
|
-
ThermosTest: test_keeps_the_cache_warm_using_fill_/_drink
|
53
|
-
---------------------------------------------------------
|
54
|
-
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
55
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
56
|
-
-------------------------------------------------------------------------------------------
|
57
|
-
ThermosTest: test_does_not_rebuild_the_cache_for_an_unrelated_has_many_through_model_change
|
58
|
-
-------------------------------------------------------------------------------------------
|
59
|
-
[1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 322908140], ["LIMIT", 1]]
|
60
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
61
|
-
[1m[36mProduct Create (0.6ms)[0m [1m[32mINSERT INTO "products" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2020-04-30 15:04:05.413054"], ["updated_at", "2020-04-30 15:04:05.413054"]]
|
62
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64
|
-
[1m[36mProduct Update (0.1ms)[0m [1m[33mUPDATE "products" SET "name" = ?, "updated_at" = ? WHERE "products"."id" = ?[0m [["name", "foo"], ["updated_at", "2020-04-30 15:04:05.418895"], ["id", 469160772]]
|
65
|
-
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
66
|
-
[ActiveJob] [1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 469160772], ["LIMIT", 1]]
|
67
|
-
[ActiveJob] [Thermos::RefillJob] [7a73cbb9-e40c-49a6-96a2-819f381ac9b9] Performing Thermos::RefillJob (Job ID: 7a73cbb9-e40c-49a6-96a2-819f381ac9b9) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: #<GlobalID:0x00007feb19d20d50 @uri=#<URI::GID gid://dummy/Product/469160772>>
|
68
|
-
[ActiveJob] [Thermos::RefillJob] [7a73cbb9-e40c-49a6-96a2-819f381ac9b9] [1m[35m (0.2ms)[0m [1m[34mSELECT "categories"."id" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" INNER JOIN "products" ON "products"."id" = "category_items"."product_id" WHERE "products"."id" = ?[0m [["id", 469160772]]
|
69
|
-
[ActiveJob] [Thermos::RefillJob] [7a73cbb9-e40c-49a6-96a2-819f381ac9b9] Performed Thermos::RefillJob (Job ID: 7a73cbb9-e40c-49a6-96a2-819f381ac9b9) from Inline(default) in 12.52ms
|
70
|
-
[ActiveJob] Enqueued Thermos::RefillJob (Job ID: 7a73cbb9-e40c-49a6-96a2-819f381ac9b9) to Inline(default) with arguments: #<GlobalID:0x00007feb1adb53f0 @uri=#<URI::GID gid://dummy/Product/469160772>>
|
71
|
-
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
72
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
73
|
-
------------------------------------------------------------
|
74
|
-
ThermosTest: test_rebuilds_the_cache_on_primary_model_change
|
75
|
-
------------------------------------------------------------
|
76
|
-
[1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 322908140], ["LIMIT", 1]]
|
77
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
78
|
-
[1m[36mCategory Update (0.3ms)[0m [1m[33mUPDATE "categories" SET "name" = ?, "updated_at" = ? WHERE "categories"."id" = ?[0m [["name", "foo"], ["updated_at", "2020-04-30 15:04:05.523306"], ["id", 322908140]]
|
79
|
-
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
80
|
-
[ActiveJob] [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 322908140], ["LIMIT", 1]]
|
81
|
-
[ActiveJob] [Thermos::RefillJob] [5cab55d4-06d0-4aaa-8e15-4476c6c90e97] Performing Thermos::RefillJob (Job ID: 5cab55d4-06d0-4aaa-8e15-4476c6c90e97) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: #<GlobalID:0x00007feb19459550 @uri=#<URI::GID gid://dummy/Category/322908140>>
|
82
|
-
[ActiveJob] [Thermos::RefillJob] [5cab55d4-06d0-4aaa-8e15-4476c6c90e97] [Thermos::RebuildCacheJob] [ce509247-2009-4177-be71-68398f6c465b] Performing Thermos::RebuildCacheJob (Job ID: ce509247-2009-4177-be71-68398f6c465b) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: "key", 322908140
|
83
|
-
[ActiveJob] [Thermos::RefillJob] [5cab55d4-06d0-4aaa-8e15-4476c6c90e97] [Thermos::RebuildCacheJob] [ce509247-2009-4177-be71-68398f6c465b] Performed Thermos::RebuildCacheJob (Job ID: ce509247-2009-4177-be71-68398f6c465b) from Inline(default) in 0.75ms
|
84
|
-
[ActiveJob] [Thermos::RefillJob] [5cab55d4-06d0-4aaa-8e15-4476c6c90e97] Enqueued Thermos::RebuildCacheJob (Job ID: ce509247-2009-4177-be71-68398f6c465b) to Inline(default) with arguments: "key", 322908140
|
85
|
-
[ActiveJob] [Thermos::RefillJob] [5cab55d4-06d0-4aaa-8e15-4476c6c90e97] Performed Thermos::RefillJob (Job ID: 5cab55d4-06d0-4aaa-8e15-4476c6c90e97) from Inline(default) in 1.41ms
|
86
|
-
[ActiveJob] Enqueued Thermos::RefillJob (Job ID: 5cab55d4-06d0-4aaa-8e15-4476c6c90e97) to Inline(default) with arguments: #<GlobalID:0x00007feb19cd9f40 @uri=#<URI::GID gid://dummy/Category/322908140>>
|
87
|
-
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
88
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
89
|
-
----------------------------------------------------------------------------------
|
90
|
-
ThermosTest: test_does_not_rebuild_the_cache_for_an_unrelated_primary_model_change
|
91
|
-
----------------------------------------------------------------------------------
|
92
|
-
[1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 322908140], ["LIMIT", 1]]
|
93
|
-
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
94
|
-
[1m[36mCategory Create (0.4ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "bar"], ["created_at", "2020-04-30 15:04:05.531148"], ["updated_at", "2020-04-30 15:04:05.531148"]]
|
95
|
-
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
96
|
-
[ActiveJob] [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 322908141], ["LIMIT", 1]]
|
97
|
-
[ActiveJob] [Thermos::RefillJob] [383f3a3e-4c51-4b39-8696-9e8ba8418f1a] Performing Thermos::RefillJob (Job ID: 383f3a3e-4c51-4b39-8696-9e8ba8418f1a) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: #<GlobalID:0x00007feb1ad9f6b8 @uri=#<URI::GID gid://dummy/Category/322908141>>
|
98
|
-
[ActiveJob] [Thermos::RefillJob] [383f3a3e-4c51-4b39-8696-9e8ba8418f1a] Performed Thermos::RefillJob (Job ID: 383f3a3e-4c51-4b39-8696-9e8ba8418f1a) from Inline(default) in 0.04ms
|
99
|
-
[ActiveJob] Enqueued Thermos::RefillJob (Job ID: 383f3a3e-4c51-4b39-8696-9e8ba8418f1a) to Inline(default) with arguments: #<GlobalID:0x00007feb1ad9d4f8 @uri=#<URI::GID gid://dummy/Category/322908141>>
|
100
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
101
|
-
[1m[36mCategory Update (0.1ms)[0m [1m[33mUPDATE "categories" SET "name" = ?, "updated_at" = ? WHERE "categories"."id" = ?[0m [["name", "foo"], ["updated_at", "2020-04-30 15:04:05.535626"], ["id", 322908140]]
|
102
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
103
|
-
[ActiveJob] [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 322908140], ["LIMIT", 1]]
|
104
|
-
[ActiveJob] [Thermos::RefillJob] [f9f740d4-cc88-4b13-b8a9-14c5affdc10a] Performing Thermos::RefillJob (Job ID: f9f740d4-cc88-4b13-b8a9-14c5affdc10a) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: #<GlobalID:0x00007feb19431050 @uri=#<URI::GID gid://dummy/Category/322908140>>
|
105
|
-
[ActiveJob] [Thermos::RefillJob] [f9f740d4-cc88-4b13-b8a9-14c5affdc10a] [Thermos::RebuildCacheJob] [c1a54668-583b-4bce-9325-134aa731bed6] Performing Thermos::RebuildCacheJob (Job ID: c1a54668-583b-4bce-9325-134aa731bed6) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: "key", 322908140
|
106
|
-
[ActiveJob] [Thermos::RefillJob] [f9f740d4-cc88-4b13-b8a9-14c5affdc10a] [Thermos::RebuildCacheJob] [c1a54668-583b-4bce-9325-134aa731bed6] Performed Thermos::RebuildCacheJob (Job ID: c1a54668-583b-4bce-9325-134aa731bed6) from Inline(default) in 1.4ms
|
107
|
-
[ActiveJob] [Thermos::RefillJob] [f9f740d4-cc88-4b13-b8a9-14c5affdc10a] Enqueued Thermos::RebuildCacheJob (Job ID: c1a54668-583b-4bce-9325-134aa731bed6) to Inline(default) with arguments: "key", 322908140
|
108
|
-
[ActiveJob] [Thermos::RefillJob] [f9f740d4-cc88-4b13-b8a9-14c5affdc10a] Performed Thermos::RefillJob (Job ID: f9f740d4-cc88-4b13-b8a9-14c5affdc10a) from Inline(default) in 1.95ms
|
109
|
-
[ActiveJob] Enqueued Thermos::RefillJob (Job ID: f9f740d4-cc88-4b13-b8a9-14c5affdc10a) to Inline(default) with arguments: #<GlobalID:0x00007feb1ad85588 @uri=#<URI::GID gid://dummy/Category/322908140>>
|
110
|
-
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
111
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
112
|
-
----------------------------------------------------------------
|
113
|
-
ThermosTest: test_re-builds_the_cache_for_new_belongs_to_records
|
114
|
-
----------------------------------------------------------------
|
115
|
-
[1m[36mCategory Load (0.4ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 322908140], ["LIMIT", 1]]
|
116
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
117
|
-
[1m[36mStore Create (0.6ms)[0m [1m[32mINSERT INTO "stores" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "foo"], ["created_at", "2020-04-30 15:04:05.563671"], ["updated_at", "2020-04-30 15:04:05.563671"]]
|
118
|
-
[1m[36mCategory Update (0.3ms)[0m [1m[33mUPDATE "categories" SET "store_id" = ?, "updated_at" = ? WHERE "categories"."id" = ?[0m [["store_id", 868874526], ["updated_at", "2020-04-30 15:04:05.566444"], ["id", 322908140]]
|
119
|
-
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
120
|
-
[ActiveJob] [1m[36mStore Load (0.1ms)[0m [1m[34mSELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ?[0m [["id", 868874526], ["LIMIT", 1]]
|
121
|
-
[ActiveJob] [Thermos::RefillJob] [39961cdd-3add-4b2f-89d1-2731220068d7] Performing Thermos::RefillJob (Job ID: 39961cdd-3add-4b2f-89d1-2731220068d7) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: #<GlobalID:0x00007feb1ad2c438 @uri=#<URI::GID gid://dummy/Store/868874526>>
|
122
|
-
[ActiveJob] [Thermos::RefillJob] [39961cdd-3add-4b2f-89d1-2731220068d7] [1m[35m (0.1ms)[0m [1m[34mSELECT "categories"."id" FROM "categories" INNER JOIN "stores" ON "stores"."id" = "categories"."store_id" WHERE "stores"."id" = ?[0m [["id", 868874526]]
|
123
|
-
[ActiveJob] [Thermos::RefillJob] [39961cdd-3add-4b2f-89d1-2731220068d7] [Thermos::RebuildCacheJob] [c6b0d4b1-079c-49f8-8807-343219255b8a] Performing Thermos::RebuildCacheJob (Job ID: c6b0d4b1-079c-49f8-8807-343219255b8a) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: "key", 322908140
|
124
|
-
[ActiveJob] [Thermos::RefillJob] [39961cdd-3add-4b2f-89d1-2731220068d7] [Thermos::RebuildCacheJob] [c6b0d4b1-079c-49f8-8807-343219255b8a] Performed Thermos::RebuildCacheJob (Job ID: c6b0d4b1-079c-49f8-8807-343219255b8a) from Inline(default) in 1.7ms
|
125
|
-
[ActiveJob] [Thermos::RefillJob] [39961cdd-3add-4b2f-89d1-2731220068d7] Enqueued Thermos::RebuildCacheJob (Job ID: c6b0d4b1-079c-49f8-8807-343219255b8a) to Inline(default) with arguments: "key", 322908140
|
126
|
-
[ActiveJob] [Thermos::RefillJob] [39961cdd-3add-4b2f-89d1-2731220068d7] Performed Thermos::RefillJob (Job ID: 39961cdd-3add-4b2f-89d1-2731220068d7) from Inline(default) in 3.82ms
|
127
|
-
[ActiveJob] Enqueued Thermos::RefillJob (Job ID: 39961cdd-3add-4b2f-89d1-2731220068d7) to Inline(default) with arguments: #<GlobalID:0x00007feb193b05e0 @uri=#<URI::GID gid://dummy/Store/868874526>>
|
128
|
-
[ActiveJob] [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 322908140], ["LIMIT", 1]]
|
129
|
-
[ActiveJob] [Thermos::RefillJob] [348665d4-f570-4145-a3c8-f83238f3531c] Performing Thermos::RefillJob (Job ID: 348665d4-f570-4145-a3c8-f83238f3531c) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: #<GlobalID:0x00007feb1a2c4360 @uri=#<URI::GID gid://dummy/Category/322908140>>
|
130
|
-
[ActiveJob] [Thermos::RefillJob] [348665d4-f570-4145-a3c8-f83238f3531c] [Thermos::RebuildCacheJob] [bde5a39a-1b10-46ca-aeb1-2aa9f6da13f4] Performing Thermos::RebuildCacheJob (Job ID: bde5a39a-1b10-46ca-aeb1-2aa9f6da13f4) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: "key", 322908140
|
131
|
-
[ActiveJob] [Thermos::RefillJob] [348665d4-f570-4145-a3c8-f83238f3531c] [Thermos::RebuildCacheJob] [bde5a39a-1b10-46ca-aeb1-2aa9f6da13f4] Performed Thermos::RebuildCacheJob (Job ID: bde5a39a-1b10-46ca-aeb1-2aa9f6da13f4) from Inline(default) in 1.31ms
|
132
|
-
[ActiveJob] [Thermos::RefillJob] [348665d4-f570-4145-a3c8-f83238f3531c] Enqueued Thermos::RebuildCacheJob (Job ID: bde5a39a-1b10-46ca-aeb1-2aa9f6da13f4) to Inline(default) with arguments: "key", 322908140
|
133
|
-
[ActiveJob] [Thermos::RefillJob] [348665d4-f570-4145-a3c8-f83238f3531c] Performed Thermos::RefillJob (Job ID: 348665d4-f570-4145-a3c8-f83238f3531c) from Inline(default) in 2.74ms
|
134
|
-
[ActiveJob] Enqueued Thermos::RefillJob (Job ID: 348665d4-f570-4145-a3c8-f83238f3531c) to Inline(default) with arguments: #<GlobalID:0x00007feb1ad251d8 @uri=#<URI::GID gid://dummy/Category/322908140>>
|
135
|
-
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
136
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
137
|
-
--------------------------------------------------------------------------
|
138
|
-
ThermosTest: test_accepts_and_can_rebuild_off_of_an_id_other_than_the_'id'
|
139
|
-
--------------------------------------------------------------------------
|
140
|
-
[1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 322908140], ["LIMIT", 1]]
|
141
|
-
[1m[36mProduct Load (0.0ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 469160771], ["LIMIT", 1]]
|
142
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
143
|
-
[1m[36mCategory Update (0.7ms)[0m [1m[33mUPDATE "categories" SET "name" = ?, "updated_at" = ? WHERE "categories"."id" = ?[0m [["name", "foo"], ["updated_at", "2020-04-30 15:04:05.584873"], ["id", 322908140]]
|
144
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
145
|
-
[ActiveJob] [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 322908140], ["LIMIT", 1]]
|
146
|
-
[ActiveJob] [Thermos::RefillJob] [58f500fa-bac4-40bd-8fb2-9addbdc4138e] Performing Thermos::RefillJob (Job ID: 58f500fa-bac4-40bd-8fb2-9addbdc4138e) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: #<GlobalID:0x00007feb1ad0c6b0 @uri=#<URI::GID gid://dummy/Category/322908140>>
|
147
|
-
[ActiveJob] [Thermos::RefillJob] [58f500fa-bac4-40bd-8fb2-9addbdc4138e] [Thermos::RebuildCacheJob] [f3b41c46-4cbb-4d5f-a14a-d22a49ae40d0] Performing Thermos::RebuildCacheJob (Job ID: f3b41c46-4cbb-4d5f-a14a-d22a49ae40d0) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: "key", "foo"
|
148
|
-
[ActiveJob] [Thermos::RefillJob] [58f500fa-bac4-40bd-8fb2-9addbdc4138e] [Thermos::RebuildCacheJob] [f3b41c46-4cbb-4d5f-a14a-d22a49ae40d0] Performed Thermos::RebuildCacheJob (Job ID: f3b41c46-4cbb-4d5f-a14a-d22a49ae40d0) from Inline(default) in 1.42ms
|
149
|
-
[ActiveJob] [Thermos::RefillJob] [58f500fa-bac4-40bd-8fb2-9addbdc4138e] Enqueued Thermos::RebuildCacheJob (Job ID: f3b41c46-4cbb-4d5f-a14a-d22a49ae40d0) to Inline(default) with arguments: "key", "foo"
|
150
|
-
[ActiveJob] [Thermos::RefillJob] [58f500fa-bac4-40bd-8fb2-9addbdc4138e] Performed Thermos::RefillJob (Job ID: 58f500fa-bac4-40bd-8fb2-9addbdc4138e) from Inline(default) in 1.91ms
|
151
|
-
[ActiveJob] Enqueued Thermos::RefillJob (Job ID: 58f500fa-bac4-40bd-8fb2-9addbdc4138e) to Inline(default) with arguments: #<GlobalID:0x00007feb19c72d40 @uri=#<URI::GID gid://dummy/Category/322908140>>
|
152
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
153
|
-
[1m[36mProduct Update (0.2ms)[0m [1m[33mUPDATE "products" SET "name" = ?, "updated_at" = ? WHERE "products"."id" = ?[0m [["name", "foo"], ["updated_at", "2020-04-30 15:04:05.591253"], ["id", 469160771]]
|
154
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
155
|
-
[ActiveJob] [1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 469160771], ["LIMIT", 1]]
|
156
|
-
[ActiveJob] [Thermos::RefillJob] [dfb56108-c1fa-46c6-9f85-5b99ec653749] Performing Thermos::RefillJob (Job ID: dfb56108-c1fa-46c6-9f85-5b99ec653749) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: #<GlobalID:0x00007feb1a2ae8d0 @uri=#<URI::GID gid://dummy/Product/469160771>>
|
157
|
-
[ActiveJob] [Thermos::RefillJob] [dfb56108-c1fa-46c6-9f85-5b99ec653749] [1m[35m (0.1ms)[0m [1m[34mSELECT "categories"."name" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" INNER JOIN "products" ON "products"."id" = "category_items"."product_id" WHERE "products"."id" = ?[0m [["id", 469160771]]
|
158
|
-
[ActiveJob] [Thermos::RefillJob] [dfb56108-c1fa-46c6-9f85-5b99ec653749] [Thermos::RebuildCacheJob] [da9431d7-b3a5-45aa-83b5-4d522b7a5441] Performing Thermos::RebuildCacheJob (Job ID: da9431d7-b3a5-45aa-83b5-4d522b7a5441) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: "key", "foo"
|
159
|
-
[ActiveJob] [Thermos::RefillJob] [dfb56108-c1fa-46c6-9f85-5b99ec653749] [Thermos::RebuildCacheJob] [da9431d7-b3a5-45aa-83b5-4d522b7a5441] Performed Thermos::RebuildCacheJob (Job ID: da9431d7-b3a5-45aa-83b5-4d522b7a5441) from Inline(default) in 0.77ms
|
160
|
-
[ActiveJob] [Thermos::RefillJob] [dfb56108-c1fa-46c6-9f85-5b99ec653749] Enqueued Thermos::RebuildCacheJob (Job ID: da9431d7-b3a5-45aa-83b5-4d522b7a5441) to Inline(default) with arguments: "key", "foo"
|
161
|
-
[ActiveJob] [Thermos::RefillJob] [dfb56108-c1fa-46c6-9f85-5b99ec653749] Performed Thermos::RefillJob (Job ID: dfb56108-c1fa-46c6-9f85-5b99ec653749) from Inline(default) in 2.4ms
|
162
|
-
[ActiveJob] Enqueued Thermos::RefillJob (Job ID: dfb56108-c1fa-46c6-9f85-5b99ec653749) to Inline(default) with arguments: #<GlobalID:0x00007feb1a2a4308 @uri=#<URI::GID gid://dummy/Product/469160771>>
|
163
|
-
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
164
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
165
|
-
---------------------------------------------------------------------
|
166
|
-
ThermosTest: test_rebuilds_the_cache_on_has_many_through_model_change
|
167
|
-
---------------------------------------------------------------------
|
168
|
-
[1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 322908140], ["LIMIT", 1]]
|
169
|
-
[1m[36mProduct Load (0.0ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 469160771], ["LIMIT", 1]]
|
170
|
-
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
171
|
-
[1m[36mProduct Update (0.7ms)[0m [1m[33mUPDATE "products" SET "name" = ?, "updated_at" = ? WHERE "products"."id" = ?[0m [["name", "foo"], ["updated_at", "2020-04-30 15:04:05.602715"], ["id", 469160771]]
|
172
|
-
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
173
|
-
[ActiveJob] [1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 469160771], ["LIMIT", 1]]
|
174
|
-
[ActiveJob] [Thermos::RefillJob] [6424d15d-262f-4102-a67b-7660635fe7a6] Performing Thermos::RefillJob (Job ID: 6424d15d-262f-4102-a67b-7660635fe7a6) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: #<GlobalID:0x00007feb19c514b0 @uri=#<URI::GID gid://dummy/Product/469160771>>
|
175
|
-
[ActiveJob] [Thermos::RefillJob] [6424d15d-262f-4102-a67b-7660635fe7a6] [1m[35m (0.0ms)[0m [1m[34mSELECT "categories"."id" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" INNER JOIN "products" ON "products"."id" = "category_items"."product_id" WHERE "products"."id" = ?[0m [["id", 469160771]]
|
176
|
-
[ActiveJob] [Thermos::RefillJob] [6424d15d-262f-4102-a67b-7660635fe7a6] [Thermos::RebuildCacheJob] [5ec388f6-656d-4688-9d91-b1cf7f3018e3] Performing Thermos::RebuildCacheJob (Job ID: 5ec388f6-656d-4688-9d91-b1cf7f3018e3) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: "key", 322908140
|
177
|
-
[ActiveJob] [Thermos::RefillJob] [6424d15d-262f-4102-a67b-7660635fe7a6] [Thermos::RebuildCacheJob] [5ec388f6-656d-4688-9d91-b1cf7f3018e3] Performed Thermos::RebuildCacheJob (Job ID: 5ec388f6-656d-4688-9d91-b1cf7f3018e3) from Inline(default) in 0.81ms
|
178
|
-
[ActiveJob] [Thermos::RefillJob] [6424d15d-262f-4102-a67b-7660635fe7a6] Enqueued Thermos::RebuildCacheJob (Job ID: 5ec388f6-656d-4688-9d91-b1cf7f3018e3) to Inline(default) with arguments: "key", 322908140
|
179
|
-
[ActiveJob] [Thermos::RefillJob] [6424d15d-262f-4102-a67b-7660635fe7a6] Performed Thermos::RefillJob (Job ID: 6424d15d-262f-4102-a67b-7660635fe7a6) from Inline(default) in 1.98ms
|
180
|
-
[ActiveJob] Enqueued Thermos::RefillJob (Job ID: 6424d15d-262f-4102-a67b-7660635fe7a6) to Inline(default) with arguments: #<GlobalID:0x00007feb1ace4db8 @uri=#<URI::GID gid://dummy/Product/469160771>>
|
181
|
-
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
182
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
183
|
-
------------------------------------------------------
|
184
|
-
ThermosTest: test_keeps_the_cache_warm_using_keep_warm
|
185
|
-
------------------------------------------------------
|
186
|
-
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
187
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
188
|
-
----------------------------------------------------------------------
|
189
|
-
ThermosTest: test_re-builds_the_cache_for_new_has_many_through_records
|
190
|
-
----------------------------------------------------------------------
|
191
|
-
[1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 322908140], ["LIMIT", 1]]
|
192
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
193
|
-
[1m[36mProduct Create (0.5ms)[0m [1m[32mINSERT INTO "products" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2020-04-30 15:04:05.630441"], ["updated_at", "2020-04-30 15:04:05.630441"]]
|
194
|
-
[1m[36mCategoryItem Create (0.2ms)[0m [1m[32mINSERT INTO "category_items" ("category_id", "product_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["category_id", 322908140], ["product_id", 469160772], ["created_at", "2020-04-30 15:04:05.631920"], ["updated_at", "2020-04-30 15:04:05.631920"]]
|
195
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
196
|
-
[ActiveJob] [1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 469160772], ["LIMIT", 1]]
|
197
|
-
[ActiveJob] [Thermos::RefillJob] [61ca40f7-8468-4777-b43a-bcef6ec7db56] Performing Thermos::RefillJob (Job ID: 61ca40f7-8468-4777-b43a-bcef6ec7db56) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: #<GlobalID:0x00007feb193221f0 @uri=#<URI::GID gid://dummy/Product/469160772>>
|
198
|
-
[ActiveJob] [Thermos::RefillJob] [61ca40f7-8468-4777-b43a-bcef6ec7db56] [1m[35m (0.1ms)[0m [1m[34mSELECT "categories"."id" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" INNER JOIN "products" ON "products"."id" = "category_items"."product_id" WHERE "products"."id" = ?[0m [["id", 469160772]]
|
199
|
-
[ActiveJob] [Thermos::RefillJob] [61ca40f7-8468-4777-b43a-bcef6ec7db56] [Thermos::RebuildCacheJob] [cb03a152-8031-42c2-a249-ce85a40b4761] Performing Thermos::RebuildCacheJob (Job ID: cb03a152-8031-42c2-a249-ce85a40b4761) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: "key", 322908140
|
200
|
-
[ActiveJob] [Thermos::RefillJob] [61ca40f7-8468-4777-b43a-bcef6ec7db56] [Thermos::RebuildCacheJob] [cb03a152-8031-42c2-a249-ce85a40b4761] Performed Thermos::RebuildCacheJob (Job ID: cb03a152-8031-42c2-a249-ce85a40b4761) from Inline(default) in 1.55ms
|
201
|
-
[ActiveJob] [Thermos::RefillJob] [61ca40f7-8468-4777-b43a-bcef6ec7db56] Enqueued Thermos::RebuildCacheJob (Job ID: cb03a152-8031-42c2-a249-ce85a40b4761) to Inline(default) with arguments: "key", 322908140
|
202
|
-
[ActiveJob] [Thermos::RefillJob] [61ca40f7-8468-4777-b43a-bcef6ec7db56] Performed Thermos::RefillJob (Job ID: 61ca40f7-8468-4777-b43a-bcef6ec7db56) from Inline(default) in 3.39ms
|
203
|
-
[ActiveJob] Enqueued Thermos::RefillJob (Job ID: 61ca40f7-8468-4777-b43a-bcef6ec7db56) to Inline(default) with arguments: #<GlobalID:0x00007feb1a25c6e8 @uri=#<URI::GID gid://dummy/Product/469160772>>
|
204
|
-
[1m[35m (0.8ms)[0m [1m[31mrollback transaction[0m
|
205
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
206
|
-
---------------------------------------------------------------
|
207
|
-
ThermosTest: test_rebuilds_the_cache_on_belongs_to_model_change
|
208
|
-
---------------------------------------------------------------
|
209
|
-
[1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 322908140], ["LIMIT", 1]]
|
210
|
-
[1m[36mStore Load (0.2ms)[0m [1m[34mSELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ?[0m [["id", 868874525], ["LIMIT", 1]]
|
211
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
212
|
-
[1m[36mStore Update (0.3ms)[0m [1m[33mUPDATE "stores" SET "name" = ?, "updated_at" = ? WHERE "stores"."id" = ?[0m [["name", "foo"], ["updated_at", "2020-04-30 15:04:05.645579"], ["id", 868874525]]
|
213
|
-
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
214
|
-
[ActiveJob] [1m[36mStore Load (0.1ms)[0m [1m[34mSELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ?[0m [["id", 868874525], ["LIMIT", 1]]
|
215
|
-
[ActiveJob] [Thermos::RefillJob] [1df3f467-81ce-4bca-a154-746ce25d93a4] Performing Thermos::RefillJob (Job ID: 1df3f467-81ce-4bca-a154-746ce25d93a4) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: #<GlobalID:0x00007feb1ac0c3f0 @uri=#<URI::GID gid://dummy/Store/868874525>>
|
216
|
-
[ActiveJob] [Thermos::RefillJob] [1df3f467-81ce-4bca-a154-746ce25d93a4] [1m[35m (0.1ms)[0m [1m[34mSELECT "categories"."id" FROM "categories" INNER JOIN "stores" ON "stores"."id" = "categories"."store_id" WHERE "stores"."id" = ?[0m [["id", 868874525]]
|
217
|
-
[ActiveJob] [Thermos::RefillJob] [1df3f467-81ce-4bca-a154-746ce25d93a4] [Thermos::RebuildCacheJob] [a7bf9c33-9037-4084-bbd9-fff6f854717f] Performing Thermos::RebuildCacheJob (Job ID: a7bf9c33-9037-4084-bbd9-fff6f854717f) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: "key", 322908140
|
218
|
-
[ActiveJob] [Thermos::RefillJob] [1df3f467-81ce-4bca-a154-746ce25d93a4] [Thermos::RebuildCacheJob] [a7bf9c33-9037-4084-bbd9-fff6f854717f] Performed Thermos::RebuildCacheJob (Job ID: a7bf9c33-9037-4084-bbd9-fff6f854717f) from Inline(default) in 0.86ms
|
219
|
-
[ActiveJob] [Thermos::RefillJob] [1df3f467-81ce-4bca-a154-746ce25d93a4] Enqueued Thermos::RebuildCacheJob (Job ID: a7bf9c33-9037-4084-bbd9-fff6f854717f) to Inline(default) with arguments: "key", 322908140
|
220
|
-
[ActiveJob] [Thermos::RefillJob] [1df3f467-81ce-4bca-a154-746ce25d93a4] Performed Thermos::RefillJob (Job ID: 1df3f467-81ce-4bca-a154-746ce25d93a4) from Inline(default) in 2.32ms
|
221
|
-
[ActiveJob] Enqueued Thermos::RefillJob (Job ID: 1df3f467-81ce-4bca-a154-746ce25d93a4) to Inline(default) with arguments: #<GlobalID:0x00007feb1abf6938 @uri=#<URI::GID gid://dummy/Store/868874525>>
|
222
|
-
[1m[35m (1.0ms)[0m [1m[31mrollback transaction[0m
|
223
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
224
|
-
-------------------------------------------------------------------------------------
|
225
|
-
ThermosTest: test_does_not_rebuild_the_cache_for_an_unrelated_belongs_to_model_change
|
226
|
-
-------------------------------------------------------------------------------------
|
227
|
-
[1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 322908140], ["LIMIT", 1]]
|
228
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
229
|
-
[1m[36mStore Create (0.4ms)[0m [1m[32mINSERT INTO "stores" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2020-04-30 15:04:05.655344"], ["updated_at", "2020-04-30 15:04:05.655344"]]
|
230
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
231
|
-
[ActiveJob] [1m[36mStore Load (0.1ms)[0m [1m[34mSELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ?[0m [["id", 868874526], ["LIMIT", 1]]
|
232
|
-
[ActiveJob] [Thermos::RefillJob] [4296e01e-d6eb-4aa8-9199-355bdb518569] Performing Thermos::RefillJob (Job ID: 4296e01e-d6eb-4aa8-9199-355bdb518569) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: #<GlobalID:0x00007feb1abcd1c8 @uri=#<URI::GID gid://dummy/Store/868874526>>
|
233
|
-
[ActiveJob] [Thermos::RefillJob] [4296e01e-d6eb-4aa8-9199-355bdb518569] Performed Thermos::RefillJob (Job ID: 4296e01e-d6eb-4aa8-9199-355bdb518569) from Inline(default) in 0.05ms
|
234
|
-
[ActiveJob] Enqueued Thermos::RefillJob (Job ID: 4296e01e-d6eb-4aa8-9199-355bdb518569) to Inline(default) with arguments: #<GlobalID:0x00007feb1abbfe38 @uri=#<URI::GID gid://dummy/Store/868874526>>
|
235
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
236
|
-
[1m[36mStore Update (0.1ms)[0m [1m[33mUPDATE "stores" SET "name" = ?, "updated_at" = ? WHERE "stores"."id" = ?[0m [["name", "foo"], ["updated_at", "2020-04-30 15:04:05.660458"], ["id", 868874526]]
|
237
|
-
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
238
|
-
[ActiveJob] [1m[36mStore Load (0.1ms)[0m [1m[34mSELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ?[0m [["id", 868874526], ["LIMIT", 1]]
|
239
|
-
[ActiveJob] [Thermos::RefillJob] [59a14c90-6fa9-47ea-a3b0-ab69fa60f5f9] Performing Thermos::RefillJob (Job ID: 59a14c90-6fa9-47ea-a3b0-ab69fa60f5f9) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: #<GlobalID:0x00007feb1ab8dd70 @uri=#<URI::GID gid://dummy/Store/868874526>>
|
240
|
-
[ActiveJob] [Thermos::RefillJob] [59a14c90-6fa9-47ea-a3b0-ab69fa60f5f9] [1m[35m (0.1ms)[0m [1m[34mSELECT "categories"."id" FROM "categories" INNER JOIN "stores" ON "stores"."id" = "categories"."store_id" WHERE "stores"."id" = ?[0m [["id", 868874526]]
|
241
|
-
[ActiveJob] [Thermos::RefillJob] [59a14c90-6fa9-47ea-a3b0-ab69fa60f5f9] Performed Thermos::RefillJob (Job ID: 59a14c90-6fa9-47ea-a3b0-ab69fa60f5f9) from Inline(default) in 0.92ms
|
242
|
-
[ActiveJob] Enqueued Thermos::RefillJob (Job ID: 59a14c90-6fa9-47ea-a3b0-ab69fa60f5f9) to Inline(default) with arguments: #<GlobalID:0x00007feb19299558 @uri=#<URI::GID gid://dummy/Store/868874526>>
|
243
|
-
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
244
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
245
|
-
--------------------------------------------------------------
|
246
|
-
ThermosTest: test_re-builds_the_cache_for_new_has_many_records
|
247
|
-
--------------------------------------------------------------
|
248
|
-
[1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 322908140], ["LIMIT", 1]]
|
249
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
250
|
-
[1m[36mCategoryItem Create (0.5ms)[0m [1m[32mINSERT INTO "category_items" ("category_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["category_id", 322908140], ["created_at", "2020-04-30 15:04:05.669235"], ["updated_at", "2020-04-30 15:04:05.669235"]]
|
251
|
-
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
252
|
-
[ActiveJob] [1m[36mCategoryItem Load (0.2ms)[0m [1m[34mSELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ?[0m [["id", 678302811], ["LIMIT", 1]]
|
253
|
-
[ActiveJob] [Thermos::RefillJob] [b09d0df7-2b2a-4b86-a5b5-61b24e3e5fe0] Performing Thermos::RefillJob (Job ID: b09d0df7-2b2a-4b86-a5b5-61b24e3e5fe0) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: #<GlobalID:0x00007feb19b825e8 @uri=#<URI::GID gid://dummy/CategoryItem/678302811>>
|
254
|
-
[ActiveJob] [Thermos::RefillJob] [b09d0df7-2b2a-4b86-a5b5-61b24e3e5fe0] [1m[35m (0.1ms)[0m [1m[34mSELECT "categories"."id" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" WHERE "category_items"."id" = ?[0m [["id", 678302811]]
|
255
|
-
[ActiveJob] [Thermos::RefillJob] [b09d0df7-2b2a-4b86-a5b5-61b24e3e5fe0] [Thermos::RebuildCacheJob] [d0df963d-c7bc-44b3-84a6-59115a455682] Performing Thermos::RebuildCacheJob (Job ID: d0df963d-c7bc-44b3-84a6-59115a455682) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: "key", 322908140
|
256
|
-
[ActiveJob] [Thermos::RefillJob] [b09d0df7-2b2a-4b86-a5b5-61b24e3e5fe0] [Thermos::RebuildCacheJob] [d0df963d-c7bc-44b3-84a6-59115a455682] Performed Thermos::RebuildCacheJob (Job ID: d0df963d-c7bc-44b3-84a6-59115a455682) from Inline(default) in 2.04ms
|
257
|
-
[ActiveJob] [Thermos::RefillJob] [b09d0df7-2b2a-4b86-a5b5-61b24e3e5fe0] Enqueued Thermos::RebuildCacheJob (Job ID: d0df963d-c7bc-44b3-84a6-59115a455682) to Inline(default) with arguments: "key", 322908140
|
258
|
-
[ActiveJob] [Thermos::RefillJob] [b09d0df7-2b2a-4b86-a5b5-61b24e3e5fe0] Performed Thermos::RefillJob (Job ID: b09d0df7-2b2a-4b86-a5b5-61b24e3e5fe0) from Inline(default) in 3.58ms
|
259
|
-
[ActiveJob] Enqueued Thermos::RefillJob (Job ID: b09d0df7-2b2a-4b86-a5b5-61b24e3e5fe0) to Inline(default) with arguments: #<GlobalID:0x00007feb1ab1d930 @uri=#<URI::GID gid://dummy/CategoryItem/678302811>>
|
260
|
-
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
261
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
262
|
-
---------------------------------------------------------------------------------------------------------------------------
|
263
|
-
ThermosTest: test_only_rebuilds_cache_for_stated_dependencies,_even_if_another_cache_has_an_associated_model_of_the_primary
|
264
|
-
---------------------------------------------------------------------------------------------------------------------------
|
265
|
-
[1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 322908140], ["LIMIT", 1]]
|
266
|
-
[1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 469160771], ["LIMIT", 1]]
|
267
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
268
|
-
[1m[36mProduct Update (0.4ms)[0m [1m[33mUPDATE "products" SET "name" = ?, "updated_at" = ? WHERE "products"."id" = ?[0m [["name", "foo"], ["updated_at", "2020-04-30 15:04:05.681843"], ["id", 469160771]]
|
269
|
-
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
270
|
-
[ActiveJob] [1m[36mProduct Load (0.1ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ?[0m [["id", 469160771], ["LIMIT", 1]]
|
271
|
-
[ActiveJob] [Thermos::RefillJob] [04f6a413-66c0-4439-aa70-4399d2ac0989] Performing Thermos::RefillJob (Job ID: 04f6a413-66c0-4439-aa70-4399d2ac0989) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: #<GlobalID:0x00007feb19ace548 @uri=#<URI::GID gid://dummy/Product/469160771>>
|
272
|
-
[ActiveJob] [Thermos::RefillJob] [04f6a413-66c0-4439-aa70-4399d2ac0989] [Thermos::RebuildCacheJob] [c0899b8b-b9c3-4177-8a81-126eb7a3ed91] Performing Thermos::RebuildCacheJob (Job ID: c0899b8b-b9c3-4177-8a81-126eb7a3ed91) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: "product_key", 469160771
|
273
|
-
[ActiveJob] [Thermos::RefillJob] [04f6a413-66c0-4439-aa70-4399d2ac0989] [Thermos::RebuildCacheJob] [c0899b8b-b9c3-4177-8a81-126eb7a3ed91] Performed Thermos::RebuildCacheJob (Job ID: c0899b8b-b9c3-4177-8a81-126eb7a3ed91) from Inline(default) in 2.06ms
|
274
|
-
[ActiveJob] [Thermos::RefillJob] [04f6a413-66c0-4439-aa70-4399d2ac0989] Enqueued Thermos::RebuildCacheJob (Job ID: c0899b8b-b9c3-4177-8a81-126eb7a3ed91) to Inline(default) with arguments: "product_key", 469160771
|
275
|
-
[ActiveJob] [Thermos::RefillJob] [04f6a413-66c0-4439-aa70-4399d2ac0989] Performed Thermos::RefillJob (Job ID: 04f6a413-66c0-4439-aa70-4399d2ac0989) from Inline(default) in 2.89ms
|
276
|
-
[ActiveJob] Enqueued Thermos::RefillJob (Job ID: 04f6a413-66c0-4439-aa70-4399d2ac0989) to Inline(default) with arguments: #<GlobalID:0x00007feb19ab6970 @uri=#<URI::GID gid://dummy/Product/469160771>>
|
277
|
-
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
278
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
279
|
-
-----------------------------------------------------------------------------------
|
280
|
-
ThermosTest: test_does_not_rebuild_the_cache_for_an_unrelated_has_many_model_change
|
281
|
-
-----------------------------------------------------------------------------------
|
282
|
-
[1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 322908140], ["LIMIT", 1]]
|
283
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
284
|
-
[1m[36mCategoryItem Create (0.4ms)[0m [1m[32mINSERT INTO "category_items" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2020-04-30 15:04:05.692625"], ["updated_at", "2020-04-30 15:04:05.692625"]]
|
285
|
-
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
286
|
-
[ActiveJob] [1m[36mCategoryItem Load (0.1ms)[0m [1m[34mSELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ?[0m [["id", 678302811], ["LIMIT", 1]]
|
287
|
-
[ActiveJob] [Thermos::RefillJob] [ce432d2c-a837-4e0d-9599-a5703e01ac6e] Performing Thermos::RefillJob (Job ID: ce432d2c-a837-4e0d-9599-a5703e01ac6e) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: #<GlobalID:0x00007feb1aa44ba8 @uri=#<URI::GID gid://dummy/CategoryItem/678302811>>
|
288
|
-
[ActiveJob] [Thermos::RefillJob] [ce432d2c-a837-4e0d-9599-a5703e01ac6e] Performed Thermos::RefillJob (Job ID: ce432d2c-a837-4e0d-9599-a5703e01ac6e) from Inline(default) in 0.06ms
|
289
|
-
[ActiveJob] Enqueued Thermos::RefillJob (Job ID: ce432d2c-a837-4e0d-9599-a5703e01ac6e) to Inline(default) with arguments: #<GlobalID:0x00007feb1917aa28 @uri=#<URI::GID gid://dummy/CategoryItem/678302811>>
|
290
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
291
|
-
[1m[36mCategoryItem Update (0.1ms)[0m [1m[33mUPDATE "category_items" SET "name" = ?, "updated_at" = ? WHERE "category_items"."id" = ?[0m [["name", "foo"], ["updated_at", "2020-04-30 15:04:05.697602"], ["id", 678302811]]
|
292
|
-
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
293
|
-
[ActiveJob] [1m[36mCategoryItem Load (0.1ms)[0m [1m[34mSELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ?[0m [["id", 678302811], ["LIMIT", 1]]
|
294
|
-
[ActiveJob] [Thermos::RefillJob] [d9346926-4e69-4530-afd9-def9a7bb823f] Performing Thermos::RefillJob (Job ID: d9346926-4e69-4530-afd9-def9a7bb823f) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: #<GlobalID:0x00007feb1a99f248 @uri=#<URI::GID gid://dummy/CategoryItem/678302811>>
|
295
|
-
[ActiveJob] [Thermos::RefillJob] [d9346926-4e69-4530-afd9-def9a7bb823f] [1m[35m (0.1ms)[0m [1m[34mSELECT "categories"."id" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" WHERE "category_items"."id" = ?[0m [["id", 678302811]]
|
296
|
-
[ActiveJob] [Thermos::RefillJob] [d9346926-4e69-4530-afd9-def9a7bb823f] Performed Thermos::RefillJob (Job ID: d9346926-4e69-4530-afd9-def9a7bb823f) from Inline(default) in 0.84ms
|
297
|
-
[ActiveJob] Enqueued Thermos::RefillJob (Job ID: d9346926-4e69-4530-afd9-def9a7bb823f) to Inline(default) with arguments: #<GlobalID:0x00007feb1996e748 @uri=#<URI::GID gid://dummy/CategoryItem/678302811>>
|
298
|
-
[1m[35m (3.9ms)[0m [1m[31mrollback transaction[0m
|
299
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
300
|
-
--------------------------------------------------------------------------------
|
301
|
-
ThermosTest: test_does_not_rebuild_the_cache_on_rolled_back_primary_model_change
|
302
|
-
--------------------------------------------------------------------------------
|
303
|
-
[1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 322908140], ["LIMIT", 1]]
|
304
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
305
|
-
[1m[36mCategory Update (0.4ms)[0m [1m[33mUPDATE "categories" SET "name" = ?, "updated_at" = ? WHERE "categories"."id" = ?[0m [["name", "foo"], ["updated_at", "2020-04-30 15:04:05.710144"], ["id", 322908140]]
|
306
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
307
|
-
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
308
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
309
|
-
-------------------------------------------------------------
|
310
|
-
ThermosTest: test_rebuilds_the_cache_on_has_many_model_change
|
311
|
-
-------------------------------------------------------------
|
312
|
-
[1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 322908140], ["LIMIT", 1]]
|
313
|
-
[1m[36mCategoryItem Load (0.0ms)[0m [1m[34mSELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ?[0m [["id", 678302810], ["LIMIT", 1]]
|
314
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
315
|
-
[1m[36mCategoryItem Update (0.8ms)[0m [1m[33mUPDATE "category_items" SET "name" = ?, "updated_at" = ? WHERE "category_items"."id" = ?[0m [["name", "foo"], ["updated_at", "2020-04-30 15:04:05.716752"], ["id", 678302810]]
|
316
|
-
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
317
|
-
[ActiveJob] [1m[36mCategoryItem Load (0.0ms)[0m [1m[34mSELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ?[0m [["id", 678302810], ["LIMIT", 1]]
|
318
|
-
[ActiveJob] [Thermos::RefillJob] [bf6ec42d-ee2b-44c4-b7ae-768624b8f2cb] Performing Thermos::RefillJob (Job ID: bf6ec42d-ee2b-44c4-b7ae-768624b8f2cb) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: #<GlobalID:0x00007feb194c28c0 @uri=#<URI::GID gid://dummy/CategoryItem/678302810>>
|
319
|
-
[ActiveJob] [Thermos::RefillJob] [bf6ec42d-ee2b-44c4-b7ae-768624b8f2cb] [1m[35m (0.0ms)[0m [1m[34mSELECT "categories"."id" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" WHERE "category_items"."id" = ?[0m [["id", 678302810]]
|
320
|
-
[ActiveJob] [Thermos::RefillJob] [bf6ec42d-ee2b-44c4-b7ae-768624b8f2cb] [Thermos::RebuildCacheJob] [ad819419-1502-40a6-9723-9e303d6d144b] Performing Thermos::RebuildCacheJob (Job ID: ad819419-1502-40a6-9723-9e303d6d144b) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: "key", 322908140
|
321
|
-
[ActiveJob] [Thermos::RefillJob] [bf6ec42d-ee2b-44c4-b7ae-768624b8f2cb] [Thermos::RebuildCacheJob] [ad819419-1502-40a6-9723-9e303d6d144b] Performed Thermos::RebuildCacheJob (Job ID: ad819419-1502-40a6-9723-9e303d6d144b) from Inline(default) in 0.69ms
|
322
|
-
[ActiveJob] [Thermos::RefillJob] [bf6ec42d-ee2b-44c4-b7ae-768624b8f2cb] Enqueued Thermos::RebuildCacheJob (Job ID: ad819419-1502-40a6-9723-9e303d6d144b) to Inline(default) with arguments: "key", 322908140
|
323
|
-
[ActiveJob] [Thermos::RefillJob] [bf6ec42d-ee2b-44c4-b7ae-768624b8f2cb] Performed Thermos::RefillJob (Job ID: bf6ec42d-ee2b-44c4-b7ae-768624b8f2cb) from Inline(default) in 1.63ms
|
324
|
-
[ActiveJob] Enqueued Thermos::RefillJob (Job ID: bf6ec42d-ee2b-44c4-b7ae-768624b8f2cb) to Inline(default) with arguments: #<GlobalID:0x00007feb194b8438 @uri=#<URI::GID gid://dummy/CategoryItem/678302810>>
|
325
|
-
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
326
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
327
|
-
----------------------------------------------------------------
|
328
|
-
ThermosTest: test_pre-builds_cache_for_new_primary_model_records
|
329
|
-
----------------------------------------------------------------
|
330
|
-
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
331
|
-
[1m[36mCategory Create (0.5ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "foo"], ["created_at", "2020-04-30 15:04:05.723711"], ["updated_at", "2020-04-30 15:04:05.723711"]]
|
332
|
-
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
333
|
-
[ActiveJob] [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 322908141], ["LIMIT", 1]]
|
334
|
-
[ActiveJob] [Thermos::RefillJob] [7214a2fa-b23f-443d-9112-ef907c60c0c4] Performing Thermos::RefillJob (Job ID: 7214a2fa-b23f-443d-9112-ef907c60c0c4) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: #<GlobalID:0x00007feb1ae14a80 @uri=#<URI::GID gid://dummy/Category/322908141>>
|
335
|
-
[ActiveJob] [Thermos::RefillJob] [7214a2fa-b23f-443d-9112-ef907c60c0c4] [Thermos::RebuildCacheJob] [d5916426-2b2a-4a73-aae8-b0e415bf8822] Performing Thermos::RebuildCacheJob (Job ID: d5916426-2b2a-4a73-aae8-b0e415bf8822) from Inline(default) enqueued at 2020-04-30T15:04:05Z with arguments: "key", "foo"
|
336
|
-
[ActiveJob] [Thermos::RefillJob] [7214a2fa-b23f-443d-9112-ef907c60c0c4] [Thermos::RebuildCacheJob] [d5916426-2b2a-4a73-aae8-b0e415bf8822] Performed Thermos::RebuildCacheJob (Job ID: d5916426-2b2a-4a73-aae8-b0e415bf8822) from Inline(default) in 1.98ms
|
337
|
-
[ActiveJob] [Thermos::RefillJob] [7214a2fa-b23f-443d-9112-ef907c60c0c4] Enqueued Thermos::RebuildCacheJob (Job ID: d5916426-2b2a-4a73-aae8-b0e415bf8822) to Inline(default) with arguments: "key", "foo"
|
338
|
-
[ActiveJob] [Thermos::RefillJob] [7214a2fa-b23f-443d-9112-ef907c60c0c4] Performed Thermos::RefillJob (Job ID: 7214a2fa-b23f-443d-9112-ef907c60c0c4) from Inline(default) in 2.59ms
|
339
|
-
[ActiveJob] Enqueued Thermos::RefillJob (Job ID: 7214a2fa-b23f-443d-9112-ef907c60c0c4) to Inline(default) with arguments: #<GlobalID:0x00007feb1a316ea8 @uri=#<URI::GID gid://dummy/Category/322908141>>
|
340
|
-
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|