Sha256: 120dfe86e4ced4e76964bfdd672e2f8498e5427703db6ddb31563e734990ac3d

Contents?: true

Size: 1.42 KB

Versions: 7

Compression:

Stored size: 1.42 KB

Contents

<div class="content">
  <h1>Tune</h1>

  <table class="table">
    <thead>
      <tr>
        <th>Setting</th>
        <th style="width: 20%;">Value</th>
      </tr>
    </thead>
    <tbody>
      <% @settings.each do |setting, value| %>
        <tr>
          <td><%= setting %></td>
          <td><%= value %></td>
        </tr>
      <% end %>
    </tbody>
  </table>

  <p>Check out <%= link_to "PgTune", "https://pgtune.leopard.in.ua/", target: "_blank" %> for recommendations. DB version is <%= @database.server_version.split(" ").first.split(".").first(2).join(".") %>.</p>
</div>

<% if @autovacuum_settings %>
  <div class="content">
    <h1>Autovacuum</h1>

    <table class="table">
      <thead>
        <tr>
          <th>Setting</th>
          <th style="width: 20%;">Value</th>
        </tr>
      </thead>
      <tbody>
        <% @autovacuum_settings.each do |setting, value| %>
          <tr>
            <td><%= setting %></td>
            <td>
              <%= value %>
              <% if setting == :autovacuum_vacuum_cost_limit && value == "-1" %>
                <span class="text-muted"><%= @database.vacuum_settings[:vacuum_cost_limit] %></span>
              <% end %>
            </td>
          </tr>
        <% end %>
      </tbody>
    </table>

    <p>Check out <%= link_to "Autovacuum Tuning Basics", "https://blog.2ndquadrant.com/autovacuum-tuning-basics/", target: "_blank" %> for recommendations.</p>
  </div>
<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pghero-2.4.2 app/views/pg_hero/home/tune.html.erb
pghero-2.4.1 app/views/pg_hero/home/tune.html.erb
pghero-2.4.0 app/views/pg_hero/home/tune.html.erb
pghero-2.3.0 app/views/pg_hero/home/tune.html.erb
pghero-2.2.1 app/views/pg_hero/home/tune.html.erb
pghero-2.2.0 app/views/pg_hero/home/tune.html.erb
pghero-2.1.1 app/views/pg_hero/home/tune.html.erb