Univention Bugzilla – Bug 49675
UMC App Center module startup performance is too slow
Last modified: 2019-12-18 13:33:08 CET
At Bug #49674 the threshold for the app center performance test had to be increased, because is took longer than 15 seconds to perform a quick appcenter/query command. The startup performance of the UMC module should be improved.
Fixed in univention-appcenter 8.0.11-97A~4.4.0.201912131056 As always, this is an everlasting task. But it should be better now: Prior to this change, "query(quick=True)" skipped an "univention-app update" and only returned a subset of the attributes to save some upload time. Faster, but apparently, not fast enough. Now, "query(quick=True)" simply returns the content of a cache file. This cache file is the return value of "query(quick=False)", which is issued right afterwards by the frontend. So you always get the value of your last opening of the module. As the query is user independent, this works across sessions.
Q: In order to see if there are app updates available, i now have to open the app center twice in a row?
A: (and sorry for not being clear) query(quick=False) is issued right after the first call, rewrites the cache and returns the current state. This current state needs to update the view in the App Center. This should happen even today, but it is currently buggy (for some time now) and needs to be fixed along with this bug. I currently do not know which bug will be used to tackle this issue, otherwise I would have depended on it.
Thank you for the clarification, for me it was not clear that the appcenter module view would be updated after query(quick=False).
OK: query is cached in json file and query(quick=True) uses the content of json as answer OK: json is created on upgrade OK: yaml (57faacff9a Bug #49675: yaml) -> verified
<http://errata.software-univention.de/ucs/4.4/405.html>