Sha256: d484ccf5850b17557c62c4a211877ba3614bc8c5fa4ffd8b45e311f08b86e8c1

Contents?: true

Size: 1.3 KB

Versions: 41

Compression:

Stored size: 1.3 KB

Contents

<% if index && !details[:covering_index] %>
  <% unless @debug %>
    <div style="float: right; color: #f0ad4e; margin-top: 0px; padding: 10px; cursor: pointer;" onclick="document.getElementById('details-<%= index.object_id %>').style.display = 'block'; this.style.display = 'none';">Details</div>
  <% end %>
  <code><pre style="color: #eee; background-color: #333;">CREATE INDEX CONCURRENTLY ON <%= index[:table] %><% if index[:using] %> USING <%= index[:using] %><% end %> (<%= index[:columns].join(", ") %>)</pre></code>
<% end %>
<div id="details-<%= index.object_id %>" style="<%= "display: none;" unless @debug %>">
  <code><pre style="color: #f0ad4e; background-color: #333;"><% if details[:explanation] %><%= details[:explanation] %>
<% end %><% if details[:row_estimates] %>Rows: <%= details[:rows] %>
Row progression: <%= details[:row_progression].to_a.join(", ") %>

Row estimates
<%= details[:row_estimates].to_a.map { |k, v| "- #{k}: #{v}" }.join("\n") %><% end %><% if details[:table_indexes] %>

Existing indexes
<% details[:table_indexes].sort_by { |i| [i[:primary] ? 0 : 1, i[:columns]] }.each do |i3| %>- <%= i3[:columns].join(", ") %><% if i3[:using] != "btree" %> <%= i3[:using].to_s.upcase %><% end %><% if i3[:primary] %> PRIMARY<% elsif i3[:unique] %> UNIQUE<% end %>
<% end %><% end %></pre></code>
</div>

Version data entries

41 entries across 41 versions & 2 rubygems

Version Path
pghero-2.7.0 app/views/pg_hero/home/_suggested_index.html.erb
pghero-2.6.0 app/views/pg_hero/home/_suggested_index.html.erb
pghero-2.5.1 app/views/pg_hero/home/_suggested_index.html.erb
pghero-2.5.0 app/views/pg_hero/home/_suggested_index.html.erb
pghero-2.4.2 app/views/pg_hero/home/_suggested_index.html.erb
pghero-2.4.1 app/views/pg_hero/home/_suggested_index.html.erb
pghero-2.4.0 app/views/pg_hero/home/_suggested_index.html.erb
pghero-2.3.0 app/views/pg_hero/home/_suggested_index.html.erb
pghero-2.2.1 app/views/pg_hero/home/_suggested_index.html.erb
pghero-2.2.0 app/views/pg_hero/home/_suggested_index.html.erb
pghero-2.1.1 app/views/pg_hero/home/_suggested_index.html.erb
pghero-2.1.0 app/views/pg_hero/home/_suggested_index.html.erb
pghero-2.0.8 app/views/pg_hero/home/_suggested_index.html.erb
pghero-2.0.7 app/views/pg_hero/home/_suggested_index.html.erb
pghero-2.0.6 app/views/pg_hero/home/_suggested_index.html.erb
pghero-2.0.5 app/views/pg_hero/home/_suggested_index.html.erb
pghero-2.0.4 app/views/pg_hero/home/_suggested_index.html.erb
pghero-2.0.3 app/views/pg_hero/home/_suggested_index.html.erb
pghero-2.0.2 app/views/pg_hero/home/_suggested_index.html.erb
pghero-2.0.1 app/views/pg_hero/home/_suggested_index.html.erb