mbenkmann / limux-gosa

GOsa² is a web based adminstration tool for user accounts, groups, servers, clients, and many other things.
18 stars 5 forks source link

GOsa package list dialog performance improvement #100

Open mbenkmann opened 9 years ago

mbenkmann commented 9 years ago

From matthias...@gmail.com on March 24, 2013 20:27:07

To improve the performance of GOsa's package list editing dialog, make it pass element, of course, which it currently doesn't.

Original issue: http://code.google.com/p/go-susi/issues/detail?id=100

mbenkmann commented 9 years ago

From matthias...@gmail.com on March 24, 2013 12:34:42

I think when I create a new package list GOsa queries "%", i.e. all packages even though it doesn't need to do so for the first dialog page. I think it does that just to check if it needs to present the "The data for these packages cannot be shown because the selected release is not available on this server" message or not. This needs to be optimized.

mbenkmann commented 9 years ago

From matthias...@gmail.com on March 24, 2013 12:36:50

Oops. I just notice that GOsa passes new, so this problem doesn't seem to exist for creating new package lists. But I need to examine more closely what queries GOsa sends and how they can probably be optimized for the different use cases regarding package lists.

mbenkmann commented 9 years ago

From matthias...@gmail.com on March 24, 2013 12:44:45

For presenting the list of packages currently on the package list GOsa only needs the information that a certain package has debconf parameters. It doesn't need the actual Templates information. To speed up things it would be possible to implement a way for GOsa to tell go-susi it just wants to know if a package has debconf parameters. Then go-susi could just report or something like that.