All upgraders get registered at startup time
Bug #101301 reported by
Jan-Wijbrand Kolman
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Silva |
Fix Released
|
Wishlist
|
Guido Wesdorp |
Bug Description
On Zope startup time all Silva upgraders get registered at the upgrading
facility. Even though it might not use much, I think this is a waste of
resources (CPU and RAM). Esp. since most of the registrations are not useful
anyway - e.g the upgrader for 0.9.3 to 1.0 cannot be used if your running Silva-1.2.
Shouldn't the registration of the appropiate upgraders be done at upgrade-time?
Or at least, only the upgrader appropiate for a Silva version should be
regsitered at start up time? Or am I missing something here?
Currently assigned to me, but I'd like hear Zagy's and Faassen's idea on this.
To post a comment you must log in.
Registring upgraders which you cannot use anyway should not be registered. This
indeed is a waste of ressources.
Registring at startup has a reason: third party products (i.e. SilvaDocument)
can register their upgraders. How could you do this at upgrade time? Start up is
the only 'easy' hook I know of. Although Silva has a list of Silva products,
which you could use on upgrade time. By the time implementing this using the
startup hook was the simplest thing to do.