Looking at https://devpad.canonical.com/~matsubara/oops.cgi/2009-04-17/A1853 you can see that the major problem are the SPR queries issues in SPR.createBuild() for having a better build-ETA.
I don't know exactly why/how a SPR.select(SPN.name='foobar') takes ~500 ms, but that code is executed 8 times (number of architectures) which certainly pushes sql-time above the timeout threshold.
Looking at https:/ /devpad. canonical. com/~matsubara/ oops.cgi/ 2009-04- 17/A1853 you can see that the major problem are the SPR queries issues in SPR.createBuild() for having a better build-ETA.
I don't know exactly why/how a SPR.select( SPN.name= 'foobar' ) takes ~500 ms, but that code is executed 8 times (number of architectures) which certainly pushes sql-time above the timeout threshold.