RubyFlow The Ruby and Rails community linklog

A faster way to cache complicated data models

When your data model gets complicated, and your APIs hit that sad 1 second response time, there’s usually an easy fix: :includes. But if you want to cache your responses, you can only fetch one object at a time, and you can’t get all the benefits of :includes. So how do you get a fast response for your cached objects, and still load the objects that aren’t in the cache, quickly?

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in