[Yum-devel] ranked multiterm searching

James Antill jantill at redhat.com
Tue Jun 5 21:54:28 UTC 2007


On Tue, 2007-06-05 at 14:59 -0400, seth vidal wrote:

> what version of yum are you using? With 3.2.0 search isn't quite instant
> but it is very, very fast. 2-4 seconds when I'm using 'time'. Its faster
> when you run it as a user b/c it doesn't touch the repos.

 Atm. it's the FC7 GA yum, recompiled on FC6. Some of this might be that
my desktop is currently "relatively old".
 Doing "time yum list foobarbaz" (as a normal user) pretty consistently
gives me over 16-17 seconds (with maxed out CPU, mostly in user space).
 "yum list 'foobarbaz*'" actually gives me ~20-21 seconds, which was a
surprise (again 90%+ CPU).

> > 1. yum search foo - output "small" number of results, and if there is
> > more than that a message of "X of Y more results, use --all-matches to
> > see them all".
> 
> we're making what searchGenerator() has to hand back very, very, very
> ornate by doing this. Think of all the returned data that the caller
> will need to take into account?

 Well I had assumed that more than just the cli would want it, so the
change would be to do:

    def searchGenerator(self, fields, criteria, most_relevant=False):

...and put all the logic in there and return what we are now.

-- 
James Antill <jantill at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20070605/d6ba67af/attachment.pgp 


More information about the Yum-devel mailing list