performance issue reading in from an rpmdb
If you find all rpm and yum operations EXTREMELY slow – even doing simple things like listing all installed pkgs – it would be handy to take a look at the numbers you’re getting.
A bug filed today:
https://bugzilla.redhat.com/show_bug.cgi?id=752897
has been able to replicate it.
However, if you would like to check it on your system in general please run:
time python -c ‘import yum; print len(yum.YumBase().rpmdb.simplePkgList())’
This will spit out a number and then some times. The times are obvious – the number is the total number of pkgs installed on your system - according to your rpmdb.
If the time is beyond like 20s it’s way too slow. On my laptop it is between .12s and .78s.
Seriously – it shouldn’t take very long at all. if it is taking a long time – post your numbers in a comment on this blog post and what ver of rpm you’re using.
thanks
