[wp-trac] [WordPress Trac] #10611: Support Partial core upgrades

WordPress Trac wp-trac at lists.automattic.com
Sat Aug 15 13:13:13 UTC 2009


#10611: Support Partial core upgrades
-----------------------------+----------------------------------------------
 Reporter:  dd32             |       Owner:  dd32          
     Type:  enhancement      |      Status:  new           
 Priority:  normal           |   Milestone:  Future Release
Component:  Upgrade/Install  |     Version:  2.9           
 Severity:  normal           |    Keywords:                
-----------------------------+----------------------------------------------

Comment(by dd32):

 There was a bit of chat on IRC about the options.

 Your idea of multiple step zips is actually more complex than the offered
 suggestions.

 The main thing against partial upgrade zips is the potential of other
 files being changed.

 One solution which was suggested was:
  * API on wordpress.org to return a list of md5's of files
  * WP then checks to  see if all files match, And if only the changed
 files differ
   * Download the Partial upgrade zip
  * Else
   * Download the full upgrade zip
  * Continue as normal.

 Basically the thinking is, Dont trust the install the user is running,
 dont count on all the files being exactly as we expect them to be.

 I'm going to write up a proof of concept patch based off the psuedocode
 above, just to show the potential implications of that method, and how
 much of a speedup it may bring.

 One thing that many people are not sure about is where the main bottleneck
 is
  * Downloading the large Zip file
  * The Zip Decompression (This is mainly memory usage IMO)
  * The IO time
  * The 2nd IO time

 Personally i think its mainly the IO..

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10611#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list