porpoise 0.9.2 → 0.9.3
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 +4 -4
- data/README.md +1 -1
- data/gemfiles/rails_3.gemfile.lock +1 -1
- data/gemfiles/rails_4.gemfile.lock +1 -1
- data/gemfiles/rails_5.gemfile.lock +1 -1
- data/lib/active_support/cache/porpoise_store.rb +3 -0
- data/lib/porpoise/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1bb9742ea2691c9286a6d5c59087aa574220e30a
|
|
4
|
+
data.tar.gz: d35d5078dfa2725190f8298030c1d7aa3fcaf186
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a2fac198b35735804800e2c18e7cc0a9240fe78f2ad93f7300c3d2b9e3ffdfb446a7ea57134651f4cf04d7a4f5d133872590387718ddec1effa294b9dfc7884a
|
|
7
|
+
data.tar.gz: 9307bec54ebd9202dfa2a315a9930531b11ebe3562b2e0b98f5b495e9e66f322f6aa05324822f3ed14f1304cba2011ec1c3bd2b6b27d0b3a46c964f4563ccf51
|
data/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Porpoise implements an additional cache backend for Ruby on Rails applications.
|
|
|
6
6
|
|
|
7
7
|
### Performance
|
|
8
8
|
|
|
9
|
-
Redis outperforms this implementation
|
|
9
|
+
Redis outperforms this implementation and I don't think I have to tell why. For an SQL based solution it still performs alright though. By using a short living in-memory cache it actually comes close to a Redis based solution, at least in our setup. Besides, this thing integrates with Rails, uses ActiveRecord and all the bloat that comes with it. And although a cache should help performance, cache read/write speed sometimes are not the problem. To prevent firing the same query when reading the same cache fragment over and over again, this thing comes with a short life in-memory cache to quickly return those items. In our situation, reading data was even faster than the Redis based solution.
|
|
10
10
|
|
|
11
11
|
### Then why?
|
|
12
12
|
|
data/lib/porpoise/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: porpoise
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Wessel van Heerde
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-11-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|