Huge performance issue on sites with a lot of entity types and bundles

Created on 28 March 2023, over 1 year ago

Problem/Motivation

We have sites with a few dozen entity types and almost 1.000 bundles. Most of which is due to extensive use of the groups module with a huge number of group types. On such sites, we see dramatic performance degration and started profiling this. It comes down to this function: \Drupal\danse_content\Plugin\Danse\Content::enabledSubscriptionBundles. It gets called quite often and has a lot to do when the number of bundles is that large.

Proposed resolution

Use caching to store the list of enabled subscription bundles. Also, look around where we may have more such bottle necks and optimize them as well.

🐛 Bug report
Status

Fixed

Version

2.2

Component

Code

Created by

🇩🇪Germany jurgenhaas Gottmadingen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024