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

ahemnell’s picture

Issue summary: View changes

typo

Ken Hawkins’s picture

Issue summary: View changes

Did you ever find a good fix/workaround for this?

ahemnell’s picture

I 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.