Entity queries are not entirely cheap

Created on 13 July 2015, over 9 years ago
Updated 3 February 2023, almost 2 years ago

Problem/Motivation

On admin user the frontpage has a couple of entity queries: (~100ms is the entire request in that example.)

which are not necessarily cheap to execute.

One part of the chain of functions is

which you can see, is not really cheap, but if you think about it, could be actually cached. The table mapping of an entity type should really not change between requests.

Proposed resolution

Maybe think about better ideas how to optimize it.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs work

Version

9.5

Component
Entity 

Last updated about 20 hours ago

Created by

🇩🇪Germany dawehner

Live updates comments and jobs are added and updated live.
  • Performance

    It affects performance. It is often combined with the Needs profiling tag.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024