On Wednesday 19 December 2007 15:37:29 Michael Matz wrote:
That's not because the UI is too slow, but because the way the search is implemented in libzypp is. sqlite isn't optimized for searching strings in the database. This particular detail (the kind thingy) can really be implemented via code instead of data.
That is because UI search is a iteration over the pool. No sql is used and the db is loaded in memory completely before (so the time is paid once at start up). Then during the iteration, the string is compared against every attribute of the resolvable, which is retrieved from the db on the fly (as they are not in memory), which results in one sql query per comparision. zypper uses sql for searchng and appart from reading the rpm db search is really fast, only 1 query is done. Duncan -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org