Forum
Asset Tags
Hi Drew,
Sorry to make two threads. I've been trying to chase down a reason for a Perch 3 upgrade to have gotten a lot slower, and I've noticed that this particular client has over 3050 individual tags for assets. As a result anything that touches assets appears to be running very slowly (30-40s load times). The UI for the assets panel also seems to be struggling with the number of elements in the filter tab. I've removed the data and this does remove the delay.
This is after only a few months of the client managing their site so I am a little concerned about this over the long-term.
I wouldn't consider this a criticism, as no UI or DB should really be handling that many items well - I'm just wondering whether there is something that could be done as a hard limit or a paginated system that could cope better with this volume. It looks like a lot of the tags have come from images uploaded from Shutterstock.
At the moment I am considering truncating the resources_tags table to complete the upgrade, otherwise we are a bit stuck as adding non-text content is as a bit of a standstill.
Are you talking about items in the 'By Tag' filter on the smartbar?
That's right, yes. This is an example of about 1/3 of the list, which took about 45 seconds to load.
It also affects uploading new assets, changing the view mode (list / grid). Generally anything that seems to pull in assets data. Running the queries from the debug-bar manually show reasonably fast speeds so I am guessing the issue is PHP related.
Yes, I could see how that many tags would be an issue.
What would you recommend at this point? I don't believe the client uses tags so would it be safe to truncate the
tags
andresources_to_tags
tables as a temporary solution?Yes, that should be fine.