Sha256: 2ffd8148fe63dbaa79fcdfcaba3e2c13008971cd0b3bde3fa46fd7d127767173

Contents?: true

Size: 958 Bytes

Versions: 8

Compression:

Stored size: 958 Bytes

Contents

<% start = Time.now %>
<table border="1">
  <thead>
    <tr>
      <th>
        id
      </th>
      <th>
        replies_count
      </th>
      <th>
        in_reply_to.id
      </th>
      <th>
        in_reply_to.favorites_count
      </th>
    </tr>
  </thead>
  <tbody>
    <% @tweets.each do |tweet| %>
      <tr>
        <td>
          <%= tweet.id %>
        </td>
        <td>
          <%= (precount? || eager_count?) ? tweet.replies_count : tweet.replies.count %>
        </td>
        <td>
          <%= tweet.in_reply_to.try(:id) %>
        </td>
        <td>
          <%= tweet.in_reply_to.try(:favorites_count) %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>
<% finish = Time.now %>

<p>
  Loader: <%= loader %>
</p>
<p>
  Time: <%= "%.1f" % ((finish - start) * 1000) %>ms
</p>

<p>
  <% ApplicationController::AVAILABLE_LOADERS.each do |ld| %>
    <%= link_to_unless loader == ld, ld, url_for(loader: ld) %>
  <% end %>
</p>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
activerecord-precount-0.7.0 sample/app/views/application/index.html.erb
activerecord-precount-0.7.0.beta1 sample/app/views/application/index.html.erb
activerecord-precount-0.6.3 sample/app/views/application/index.html.erb
activerecord-precount-0.6.2 sample/app/views/application/index.html.erb
activerecord-precount-0.6.1 sample/app/views/application/index.html.erb
activerecord-precount-0.6.0 sample/app/views/application/index.html.erb
activerecord-precount-0.5.1 sample/app/views/application/index.html.erb
activerecord-precount-0.5.0 sample/app/views/application/index.html.erb