pg_cache_key 0.1.7 → 0.1.8

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: df06ab94afde0667be0ceec0dedffb85c1c44843
4
- data.tar.gz: 0e546012438cfb4ca95a73939277832ddfe5ec4e
3
+ metadata.gz: 7ab935460692921f271ba3a6b0e67f823bba26e3
4
+ data.tar.gz: a1d0685bc66eac844a16e83a81887d9bf3d6d67b
5
5
  SHA512:
6
- metadata.gz: 787b13f87615cedc33808931394debf0beedd8f3bfac026867d929ffdc0b790a4137e6a156484d8c62c98e58f30a158ce6dc90fdd181cb46779d81afee006fb7
7
- data.tar.gz: 0b888b5481925c5a97272b7ed5ab3e9ea0fc51ddfc46546cfacdd725c80a50ecdaa65346424c0d5daef210219aa733abb6ff7d6c768343d1286bf21f800af808
6
+ metadata.gz: 1819b7165d988330f65b58edaa4a14260406abacf9e01179f45ff8b2b2e31f2b076b2763418bd7d565ce0ece8c225e50e8f1df5766b9bf5d7a3fc7cead38f1f1
7
+ data.tar.gz: 7d8ed9eef29a6aee08b1bf5355c9832388b98a73198ea4a220db3771fbdcb901e01aff923d52736e667e553f65ad1972cc4331ead0936cc29f0031604682c14d
data/README.md CHANGED
@@ -81,11 +81,11 @@ Or install it yourself as:
81
81
  $ gem install pg_cache_key
82
82
 
83
83
  ## Usage
84
- It works out of the box.
84
+ It works out of the box. Plz don't use in on collection greater than 50K your DB will suffer.
85
85
 
86
86
  ## Как использовать
87
87
 
88
- По идее работает само из коробки, но если будут траблы - пишите.
88
+ По идее работает само из коробки, но если будут траблы - пишите. Не стоит использовать для получаения кеш ключей коллекций больше 50К элементов, БДшка будет мучаться.
89
89
 
90
90
  ## Testing
91
91
  rake spec
data/lib/pg_cache_key.rb CHANGED
@@ -33,7 +33,7 @@ module ActiveRecord
33
33
  return "#{self.class.to_s.underscore}/blank" if to_sql.blank?
34
34
  @cache_keys ||= {}
35
35
  @cache_keys[timestamp_column] ||= connection.execute( cache_key_raw_sql(timestamp_column) )[0]['cache_key']
36
- @cache_keys[timestamp_column] ||= super
36
+ @cache_keys[timestamp_column] ||= collection_cache_key
37
37
  end
38
38
 
39
39
  end
@@ -1,3 +1,3 @@
1
1
  module PgCacheKey
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_cache_key
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - alekseyl