Bug 244515

Summary: package database is too slow
Product: [openSUSE] openSUSE 10.2 Reporter: Stefan Sauer <ensonic>
Component: libzyppAssignee: E-mail List <zlm-code10-bugs>
Status: RESOLVED FIXED QA Contact: Forgotten User YrvzK78Vmi <forgotten_YrvzK78Vmi>
Severity: Normal    
Priority: P5 - None CC: dmacvicar, forgotten_qMyteedNxa, hubba
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Stefan Sauer 2007-02-11 21:57:08 UTC
This is on an AMD64 3500 (32 bit version). Whenever I start zypper or yast2 sw_single, it updates sources and parses metadata. It would be sufficient to do this once a day and cache the info. I should not spend that long to do a package search:

> time zypper search xxx
Restoring system sources...
Parsing metadata for 20061218-221332...
Parsing metadata for 20061218-221830...
Parsing metadata for 20061218-222612...
Parsing metadata for 20061217-132235...
Parsing metadata for SUSE-Linux-10.2-Updates...
Parsing metadata for 20070129-194455...
No packages found.

real    0m36.275s
user    0m27.566s
sys     0m1.240s
Comment 1 Stefan Sauer 2007-02-27 17:25:43 UTC
some additional info: Those tools under '/usr/lib/zmd/' like 'parse-metadata' and 'update-status' seem to be *really* slow. Either I have some misconfiguration or they use total unoptimal algorithms. I checked their deps and they link to libxml2. Can it be that related to how they process xml?

If the systray notierfier report that there are e.g. 2 updates and I open it, it takes several minutes before it shows which updates it mentioned. Shouldn't those be already there?
Comment 2 Bryce Nesbitt 2007-03-28 18:33:47 UTC
parse-metadata takes up to 30 minutes to complete on my 1Ghz Athlon system.

It is enough to want to make me learn to uninstall zen & beagle, and rediscover my computer's central processing unit.
Comment 3 Stefan Sauer 2007-04-10 17:05:29 UTC
will there be a fix for zen available or is the only thing left to do this procedure?

http://www.linuxquestions.org/reviews/showproduct.php?product=703

It would be really great if a zen-suite developer could at least confirm this and ev. give some tips (if any) to clean this up or workaround this problem.
Comment 4 Hubertus Haniel 2007-04-19 10:24:10 UTC
"rug update" takes more then an hour to apply an update to one of my systems which is a 2.1ghz box 32 bit.
Comment 5 Forgotten User qMyteedNxa 2007-12-08 13:04:05 UTC
it seems that this isn`t any better with 10.3, at least on my system here (older notebook with 1Ghz/512MB)

installing packages via yast is really a pain and i now have stopped using yast when i need to add some packages. downloading rpm`s manually and installing via "rpm -i" works much faster/better for me. i wonder why yast has become such an ressource-hog.