I have a view similar to this:
<h1>Example restaurant</h1>
<% @restaurant.menus.each do |menu| %>
Here a long menu is generated (expensive operation)
<% end %>
I already use fragment caching for speeding up the next requests. However when the cache is cold the request is extremely slow.
Is there a reliable way to render each element in parallel? (Or at least concurrently, if using MRI)
Note that each element (i.e. restaurant menu) is independent from the other.