<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hyottokoaloha</author_name>
  <author_url>https://blog.hatena.ne.jp/hyottokoaloha/</author_url>
  <blog_title>DesignAssembler</blog_title>
  <blog_url>https://hyottokoaloha.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>hyottokoaloha.hatenablog.com 500msから更に5倍速くした やった事 ボトルネックになっていたモデルメソッドの結果をキャッシュに入れる Rails.cache Rails.cache使ってモデルメソッドの結果をキャッシュに入れました。 def hoge cache_variable = Rails.cache.read(&quot;#{column_name}_cache&quot;) if cache_variable.nil? #重い処理してarrayに入れる Rails.cache.write(&quot;#{column_name}_cache&quot;, array.to_a, expire…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhyottokoaloha.hatenablog.com%2Fentry%2F2016%2F05%2F06%2F020050&quot; title=&quot;Railsアプリケーションを6倍速くしてから更に5倍速くした - DesignAssembler&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>http://cdn.mogile.archive.st-hatena.com/v1/image/hyottokoaloha/297795097227320532.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-05-06 02:00:50</published>
  <title>Railsアプリケーションを6倍速くしてから更に5倍速くした</title>
  <type>rich</type>
  <url>https://hyottokoaloha.hatenablog.com/entry/2016/05/06/020050</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
