Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
share_count_entity_load looks for share counts from the database for all entities. I had a performance problem after adding a new node type with an entity reference field. Turned out that e.g. when loading the "add new content of this new node type" page all taxonomy terms get a DB select (about 300). It really jammed up everything.
I'm testing now to only do the db call for nodes: if($type == 'node') {}
around everything in share_count_entity_load.
Comments
Comment #0.0
ahemnell CreditAttribution: ahemnell commentedtypo
Comment #1
Ken Hawkins CreditAttribution: Ken Hawkins commentedDid you ever find a good fix/workaround for this?
Comment #2
ahemnell CreditAttribution: ahemnell commentedI am actually still using share_count module, but with some modifications. Restricting share_count_entity_load to nodes only as described above is one of them. I will try to submit a patch at some point.