Skip to content

[Feature proposal] Improve performance for complexly joined query trees #24

Description

@quorak

Right now I includes up to 6 realtions in my query, to avoid n+1 queries. Building up this Object tree takes a lot of the time. Sometimes more that querying the data and processing the jbuilder. How about we only do it, if the cache is empty for this object.
I would imagine something like!

  1. Get only fields to generate cache_key from db like id, updated_at without building the object tree
  2. Get data from cache
  3. Get remaining data where cache was missed from database and process block for them, return cache for the others

What do you think?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions