[python-bugzilla] Quickly getting the status of multiple tickets

Jason L Tibbitts III tibbs at math.uh.edu
Fri May 24 15:10:18 UTC 2013


I maintain the code that spits out the review status reports at
http://fedoraproject.org/PackageReviewStatus/

In order to generate these reports, I run a few queries to get the list
of tickets in the Package Review component and process them a bit.  One
thing I need to know is whether any tickets in the Blocked By field are
still open, so I make a list of them and pass them to getbugssimple().
Unfortunately with the new bugzilla instance currently running, doing
this for just 500 tickets takes so long that everything aborts with
proxy errors, so I have to split the list and make multiple queries.

Is there any better way to do this?  I know bugzilla needs to know this
often, in order to strike through ticket dependencies which have been
closed.  Is there any way to simply get the status of dependencies out
of the result of a query without doing a separate lookup?

 - J<


More information about the python-bugzilla mailing list