Mailinglist Archive: zypp-devel (92 mails)

< Previous Next >
Re: [zypp-devel] zypper se performance
  • From: Jan Kupec <jkupec@xxxxxxx>
  • Date: Mon, 13 Aug 2007 15:21:49 +0200
  • Message-id: <46C05AED.1070601@xxxxxxx>
Benji Weber wrote:
> Hi,
> 
> "zypper se" in svn trunk is still taking quite a long time on my
> machine, anywhere between 10-20s with main repositories + packman.
> 
> A simple java test app which queries the /var/cache/zypp/zypp.db
> database for the name,version,release,repository,arch takes between
> 1-4s in my tests.

Stano, seems like Benji has the answer you've been looking for :O)

> Does this lack of performance imply that all resolvables are being
> read into memory before performing the search, rather than just

Yes

> running the search on the SQLite database? If so, is there any reason
> for this?

Sure. Not enough time to implement the search via the database in
libzypp. Although a partial solution (for simple searches by package
name and kind + optionally by repo) could be implemented directly in
zypper in a few hours. Actually we had a plan to look into this this week.

Cheers,

Jano

-- 
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx

< Previous Next >
This Thread
References