Question about patching

What happens if the patch doesn't match the resource? Or does the Updater first check if one has the latest version and either requests a patch or the updated resource?

Dave
===

Windows 11 & Android 13

Comments

  • Bradley Grainger (Logos)
    Bradley Grainger (Logos) Administrator, Logos Employee Posts: 12,094

    It requests a patch that corresponds to the version of the resource you already have. If a patch for that version isn't available, it will download the full resource. If the patch was available, but hashing the resource (after the patch is applied) gives the wrong value, the full resource will be downloaded.

  • Rosie Perera
    Rosie Perera Member Posts: 26,194 ✭✭✭✭✭


    It requests a patch that corresponds to the version of the resource you already have. If a patch for that version isn't available, it will download the full resource. If the patch was available, but hashing the resource (after the patch is applied) gives the wrong value, the full resource will be downloaded.


    So, now that patching has been implemented, supposing I have version N of a resource. If I wait a while before updating resources, and there have been two updates to a particular resource since when you started doing patches, will there be a patch available that goes from N to N+1 and another patch for N to N+2, or will the only available patch be N+1 to N+2 and I'll have to do a full resource download?

  • Dave Hooton
    Dave Hooton MVP Posts: 36,131

    It requests a patch that corresponds to the version of the resource you already have. If a patch for that version isn't available, it will download the full resource. If the patch was available, but hashing the resource (after the patch is applied) gives the wrong value, the full resource will be downloaded.

    Thanks for the explanation, Bradley. The changes in Beta 5 are quite significant and will benefit users in countries without sophisticated communications.  Rosie's question may well apply to a user installing from a not so recent DVD.

    Dave
    ===

    Windows 11 & Android 13

  • Bradley Grainger (Logos)
    Bradley Grainger (Logos) Administrator, Logos Employee Posts: 12,094

    So, now that patching has been implemented, supposing I have version N of a resource. If I wait a while before updating resources, and there have been two updates to a particular resource since when you started doing patches, will there be a patch available that goes from N to N+1 and another patch for N to N+2, or will the only available patch be N+1 to N+2 and I'll have to do a full resource download?

    Our resource patching program is currently configured to produce patches for the last three versions (i.e., N-3, N-2, N-1) when an updated resource (version N) is published. The patches go straight from your currently installed version to the latest version; i.e., you can go straight from N-3 to N, and don't have to go in "hops" from N-3 to N-2, N-2 to N-1, N-1 to N, etc.

  • TCBlack
    TCBlack Member Posts: 10,980 ✭✭✭

    Our resource patching program is currently configured to produce patches for the last three versions (i.e., N-3, N-2, N-1) when an updated resource (version N) is published. The patches go straight from your currently installed version to the latest version; i.e., you can go straight from N-3 to N, and don't have to go in "hops" from N-3 to N-2, N-2 to N-1, N-1 to N, etc

    Excellent Job Bradley (and all the other devs involved in implementing this)!  Apparently then N-4 creates a full download, that's not at all unreasonable.

     Great job!

    Hmm Sarcasm is my love language. Obviously I love you. 

  • Rosie Perera
    Rosie Perera Member Posts: 26,194 ✭✭✭✭✭


    Our resource patching program is currently configured to produce patches for the last three versions (i.e., N-3, N-2, N-1) when an updated resource (version N) is published. The patches go straight from your currently installed version to the latest version; i.e., you can go straight from N-3 to N, and don't have to go in "hops" from N-3 to N-2, N-2 to N-1, N-1 to N, etc.

    Awesome! Thanks, Bradley. It's totally reasonable to make someone do a complete download of a resource if they're 4 versions out of date. The new way is so much of an improvement over the old way. Now if only you can make indexing work faster, too, with some clever trick like this... Oh, I'm so demanding. [:)]

This discussion has been closed.