ruby-pg-extras 3.2.5 → 3.2.6
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/lib/ruby-pg-extras/diagnose_data.rb +1 -1
- data/lib/ruby-pg-extras/version.rb +1 -1
- data/spec/diagnose_data_spec.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4157b9c66247198391b90075249cfd8f5a366e33cb991d98624af0ad11fad33c
|
|
4
|
+
data.tar.gz: f71702b5b5c743240deb0afb2a0b1558fc8b4b48a32b4cb7189168f16101e65f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3240c3dece8839de9460329cffe01541d278d2715148c1b3569c85a9b1251a8053f3d2922170eaa6e4ef76cc7ae1c0293ad45744afe5b470c8a86ac5f46ca09b
|
|
7
|
+
data.tar.gz: e49eab57e1e3ab7b09e6649cf88994bb438e7f725bdc7c243e27f706bd77b004cfa1ff569b18abed67dfd895047000ff6f0d4e81759f334cfe66df50ca57be72
|
data/README.md
CHANGED
|
@@ -139,7 +139,7 @@ RubyPGExtras.index_info(args: { table_name: "users" })
|
|
|
139
139
|
| index_users_on_slack_id | users | slack_id | 1080 kB | 258870 | 0.00% |
|
|
140
140
|
| index_users_on_team_id | users | team_id | 816 kB | 70962 | 0.00% |
|
|
141
141
|
| index_users_on_uuid | users | uuid | 1032 kB | 0 | 0.00% |
|
|
142
|
-
| index_users_on_block_uuid | users | block_uuid | 776 kB | 19502 | 100.00%
|
|
142
|
+
| index_users_on_block_uuid | users | block_uuid | 776 kB | 19502 | 100.00% |
|
|
143
143
|
| index_users_on_api_auth_token | users | api_auth_token | 1744 kB | 156 | 0.00% |
|
|
144
144
|
|
|
145
145
|
```
|
|
@@ -118,7 +118,7 @@ module RubyPGExtras
|
|
|
118
118
|
in_format: :hash,
|
|
119
119
|
args: { min_scans: PG_EXTRAS_UNUSED_INDEXES_MAX_SCANS }
|
|
120
120
|
).select do |i|
|
|
121
|
-
Filesize.from(i.fetch("index_size")).to_i >= PG_EXTRAS_UNUSED_INDEXES_MIN_SIZE_BYTES
|
|
121
|
+
Filesize.from(i.fetch("index_size").sub("bytes", "").strip).to_i >= PG_EXTRAS_UNUSED_INDEXES_MIN_SIZE_BYTES
|
|
122
122
|
end
|
|
123
123
|
|
|
124
124
|
if indexes.count == 0
|
data/spec/diagnose_data_spec.rb
CHANGED
|
@@ -13,7 +13,7 @@ describe RubyPGExtras::DiagnoseData do
|
|
|
13
13
|
expect(RubyPGExtras).to receive(:unused_indexes) {
|
|
14
14
|
[
|
|
15
15
|
{ "table" => "public.plans", "index" => "index_plans_on_payer_id", "index_size" => "16 MB", "index_scans" => 0 },
|
|
16
|
-
{ "table" => "public.feedbacks", "index" => "index_feedbacks_on_target_id", "index_size" => "
|
|
16
|
+
{ "table" => "public.feedbacks", "index" => "index_feedbacks_on_target_id", "index_size" => "111180 bytes", "index_scans" => 1 },
|
|
17
17
|
{ "table" => "public.channels", "index" => "index_channels_on_slack_id", "index_size" => "56 MB", "index_scans" => 7}
|
|
18
18
|
]
|
|
19
19
|
}
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ruby-pg-extras
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.2.
|
|
4
|
+
version: 3.2.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- pawurb
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-01-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: pg
|
|
@@ -153,7 +153,7 @@ homepage: http://github.com/pawurb/ruby-pg-extras
|
|
|
153
153
|
licenses:
|
|
154
154
|
- MIT
|
|
155
155
|
metadata: {}
|
|
156
|
-
post_install_message:
|
|
156
|
+
post_install_message:
|
|
157
157
|
rdoc_options: []
|
|
158
158
|
require_paths:
|
|
159
159
|
- lib
|
|
@@ -169,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
169
169
|
version: '0'
|
|
170
170
|
requirements: []
|
|
171
171
|
rubygems_version: 3.1.6
|
|
172
|
-
signing_key:
|
|
172
|
+
signing_key:
|
|
173
173
|
specification_version: 4
|
|
174
174
|
summary: Ruby PostgreSQL performance database insights
|
|
175
175
|
test_files:
|