Performance issue
-
One of my clients couldn’t access the media library anymore, is was timing out every time. The display is 250 items per page.
In your function display_post_list_column, the query that gets the post_ids, took over 3 seconds per query, so it’s called 250 times, which caused the timeout.
I did some testing, in the query instead of doing LIKE ‘_thumbnail_id’, if you do = ‘_thumbnail_id’, from over 3 seconds, it takes 0.3s, 10 times faster, with this fix, it doesn’t timeout anymore.
In this case the LIKE is not necessary, because you know the exact meta_key you are looking for.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Performance issue’ is closed to new replies.