pghero 0.0.2 → 0.0.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 +2 -3
- data/app/views/pg_hero/home/index.html.erb +3 -3
- data/lib/pghero.rb +1 -1
- data/lib/pghero/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 72c9e058b5ed49715e3376e81828ab8e16f37cf9
|
|
4
|
+
data.tar.gz: 0371e228982aa29fc28780d81c41a7669f84e5f0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fc8ba7e762a1cd496a704096983022024d27bd15169e963c4c2b24263c3e35f3014536aa285d32163f83e5c2482d8adefd2193c9fd495b0b3f1ae10831825b22
|
|
7
|
+
data.tar.gz: 3c7580581995c32e229d259b8e2f50b29a12fb15f34ccf8895e690344cd8f708a0efe4675e086bcd451803418efdc4788f7d1667c87947f57c97a92c9c83c9ff
|
data/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
[View the demo](https://pghero.herokuapp.com/)
|
|
6
6
|
|
|
7
|
-

|
|
8
8
|
|
|
9
9
|
Supports PostgreSQL 9.2+
|
|
10
10
|
|
|
@@ -68,9 +68,8 @@ end
|
|
|
68
68
|
|
|
69
69
|
## TODO
|
|
70
70
|
|
|
71
|
-
- demo
|
|
72
71
|
- better explanations on dashboard
|
|
73
|
-
- more
|
|
72
|
+
- use `pg_stat_statements` extension for more detailed insights
|
|
74
73
|
- poll for running queries
|
|
75
74
|
- better design (no bootstrap)
|
|
76
75
|
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
</div>
|
|
16
16
|
<div class="alert alert-<%= @missing_indexes.empty? ? "success" : "warning" %>">
|
|
17
17
|
<% if @missing_indexes.any? %>
|
|
18
|
-
<%= pluralize(@missing_indexes.size, "possibly missing index") %>
|
|
18
|
+
<%= pluralize(@missing_indexes.size, "possibly missing index", "possibly missing indexes") %>
|
|
19
19
|
<% else %>
|
|
20
20
|
No missing indexes
|
|
21
21
|
<% end %>
|
|
22
22
|
</div>
|
|
23
23
|
<div class="alert alert-<%= @unused_indexes.empty? ? "success" : "warning" %>">
|
|
24
24
|
<% if @unused_indexes.any? %>
|
|
25
|
-
<%= pluralize(@unused_indexes.size, "unused index") %>
|
|
25
|
+
<%= pluralize(@unused_indexes.size, "unused index", "unused indexes") %>
|
|
26
26
|
<% else %>
|
|
27
27
|
No unused indexes
|
|
28
28
|
<% end %>
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
<tr>
|
|
69
69
|
<td><%= query["table"] %></td>
|
|
70
70
|
<td style="width: 30%;"><%= query["percent_of_times_index_used"] %></td>
|
|
71
|
-
<td style="width: 20%;"><%= query["rows_in_table"] %></td>
|
|
71
|
+
<td style="width: 20%;"><%= number_with_delimiter(query["rows_in_table"]) %></td>
|
|
72
72
|
</tr>
|
|
73
73
|
<% end %>
|
|
74
74
|
</tbody>
|
data/lib/pghero.rb
CHANGED
data/lib/pghero/version.rb
CHANGED