Bug 230349

Summary: zypper is too slow parsing metadata
Product: [openSUSE] openSUSE 10.2 Reporter: Joe Shaw <joeshaw>
Component: libzyppAssignee: Klaus Kämpf <kkaempf>
Status: RESOLVED FIXED QA Contact: Klaus Kämpf <kkaempf>
Severity: Critical    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Joe Shaw 2006-12-21 20:26:21 UTC
This one is somewhat related to bug 230333.

I have 6 repositories, consisting (currently) of 12623 packages total.  They are all repodata/yum repos.

Running "zypper patches", which is a no-op because they're yum repos, takes consistently 53 seconds to run on my Thinkpad T42p, with no load otherwise.

This ~1 minute penalty is suffered on every appreciable packaging command: zypper search, zypper install, etc.  It grows increasingly frustrating over time.  In contrast, yum's basic packaging commands are almost instantaneous, assuming it doesn't download and refresh its own metadata.  (When it does, it suffers a penalty roughly on par with zypper's.)
Comment 1 Joe Shaw 2006-12-21 20:27:19 UTC
Here is my repo list:

[joe@portage ~]$ sudo zypper sl
# | Enabled | Refresh | Type | Name          | URI                                                                             
--+---------+---------+------+---------------+---------------------------------------------------------------------------------
1 | Yes     | Yes     | YUM  | 10.2-non-oss  | http://download.opensuse.org/distribution/10.2/repo/non-oss/suse/               
2 | Yes     | Yes     | YUM  | stable-mirror | http://mirrors.kernel.org/opensuse/distribution/SL-OSS-factory/inst-source/suse/
3 | Yes     | Yes     | YUM  | mono          | http://go-mono.com/download-stable/suse-102-i586                                
4 | Yes     | Yes     | YUM  | buildservice  | http://software.opensuse.org/download/openSUSE:/Tools/openSUSE_10.2/            
5 | Yes     | Yes     | YUM  | 10.2          | http://download.opensuse.org/distribution/10.2/repo/oss/suse/                   
6 | Yes     | Yes     | YUM  | 10.2-debug    | http://download.opensuse.org/distribution/10.2/repo/debug/suse/                 
Comment 2 Klaus Kämpf 2007-01-10 15:17:00 UTC
Parsing is fast. Its the creation of all in-memory objects which takes time.

To be fixed in 10.3
Comment 3 Klaus Kämpf 2007-01-10 15:19:27 UTC
*** Bug 230333 has been marked as a duplicate of this bug. ***
Comment 4 Klaus Kämpf 2007-10-05 09:10:32 UTC
Revisit in preparation of Code11
Comment 5 Klaus Kämpf 2007-10-09 09:13:35 UTC
Mostly fixed in 10.3