Sha256: df754ce1e63d7fee392ab5a577d3d040527be28f7b14cec027972f8bd767ca8b

Contents?: true

Size: 839 Bytes

Versions: 7

Compression:

Stored size: 839 Bytes

Contents

<p><%= pluralize(total_connections, "connection") %></p>
<% if show_message %>
  <p>
    <%= link_to "Use connection pooling", "http://www.craigkerstiens.com/2014/05/22/on-connection-pooling/", target: "_blank" %> for better performance. <%= link_to "PgBouncer", "https://wiki.postgresql.org/wiki/PgBouncer", target: "_blank" %> is a solid option.
  </p>
<% end %>

<table class="table">
  <thead>
    <tr>
      <th>Top Sources</th>
      <th style="width: 20%;">Connections</th>
    </tr>
  </thead>
  <tbody>
    <% connection_sources.each do |source| %>
      <tr>
        <td><%= source["source"] %> <div class="text-muted"><%= [source["user"], source["database"], source["ip"]].compact.join(" - ") %></div></td>
        <td><%= number_with_delimiter(source["total_connections"]) %></td>
      </tr>
    <% end %>
  </tbody>
</table>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pghero-1.6.2 app/views/pg_hero/home/_connections_table.html.erb
pghero-1.6.1 app/views/pg_hero/home/_connections_table.html.erb
pghero-1.6.0 app/views/pg_hero/home/_connections_table.html.erb
pghero-1.5.3 app/views/pg_hero/home/_connections_table.html.erb
pghero-1.5.2 app/views/pg_hero/home/_connections_table.html.erb
pghero-1.5.1 app/views/pg_hero/home/_connections_table.html.erb
pghero-1.5.0 app/views/pg_hero/home/_connections_table.html.erb