[wp-trac] [WordPress Trac] #23205: New Media Uploader slow for sites with many images

WordPress Trac noreply at wordpress.org
Mon Sep 7 18:24:05 UTC 2015


#23205: New Media Uploader slow for sites with many images
------------------------------------+-----------------------------
 Reporter:  salromano               |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  Future Release
Component:  Media                   |     Version:  3.5
 Severity:  normal                  |  Resolution:
 Keywords:  dev-feedback has-patch  |     Focuses:
------------------------------------+-----------------------------

Comment (by nimmolo):

 Replying to [comment:22 nacin]:
 > In media-views.js, check out the saveContentMode function and the
 libraryContent user setting. This stores the user's last visited screen in
 certain situations. Does that work for this situation? Does it remember
 your choice of the uploader after you go to it? If not, then let's fix
 that for the situation described. If it does, then I'm not sure what else
 to do here.

 Try going through the old posts of a big blog where you've changed themes,
 and assign a featured image to a batch of 200 *old posts*. It doesn't
 remember your "Uploaded to this post" choice between posts, and keeps
 defaulting to the most recent media uploads. Very annoying.

 ButI think this example is an increasingly relevant case: the maintenance
 and updating of an existing blog that maybe  didn't previously make use of
 featured images or galleries. It means tons of repetitive work and it
 could be easier.

 The default behavior is only relevant (and maybe ''kind of'' expected)
 when you're adding posts on the top (most recent post) of a blog, but
 again in this case I think users really only expect to default to the
 images they've uploaded to the post.

 > But more so, secondly: I would like to know how it is *slower*. It only
 pulls down a few dozen images, and only pulls down more as you scroll. Is
 it the JS, the SQL query itself, etc?

 It's way slower in the case of an old normal blog post with a few images,
 because Media Uploader is now pulling 40 recent images at medium size
 instead of, say, the one or two or three in the post itself. Compounded
 over the revision of a hundred posts, this is a lot of extra time.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/23205#comment:30>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list