This is almost entirely non-SQL time, as you might expect. The slow blocks between SQL statements are as follows, with all Launchpad line numbers relative to r17628:
1) 1278ms: zope/publisher/publish.py:129 (... DistroSeries.getDistroArchSeries) to 132 (... DistroArchSeries.isNominatedArchIndep). Not quite sure what's happening in here - maybe something to do with request form processing?
2) 3004ms: The first part of DistroArchSeries.setChroot, up to the start of the LibraryFileAliasSet.create call at line 190. A fair bit of this will be the sha1 computation, but https://bugs.launchpad.net/launchpad/+bug/1116954 may also be implicated. I note that the sha1 computation is done from scratch in the event of needing to apply the \r hack, when it should be possible to just add one byte to the sha1 object and get an updated digest; but the chroot in question here didn't end with \r.
3) 2304ms: FileUploadClient.addFile:161-217. Mostly necessary reading and checksumming of the file, although I wonder if a larger chunk size would be more efficient.
4) 1883ms: zope/publisher/publish.py:132 (... looking something up in SessionPkgData) to 137 (... post-webservice-call commit). Not quite sure what's happening in here - possibly something else to do with the enormous request, or maybe something tracelog-related?
I think that's as much as I can readily work out by OOPS inspection. More than that will probably require stepping through or profiling this locally.
This is almost entirely non-SQL time, as you might expect. The slow blocks between SQL statements are as follows, with all Launchpad line numbers relative to r17628:
1) 1278ms: zope/publisher/ publish. py:129 (... DistroSeries. getDistroArchSe ries) to 132 (... DistroArchSerie s.isNominatedAr chIndep) . Not quite sure what's happening in here - maybe something to do with request form processing?
2) 3004ms: The first part of DistroArchSerie s.setChroot, up to the start of the LibraryFileAlia sSet.create call at line 190. A fair bit of this will be the sha1 computation, but https:/ /bugs.launchpad .net/launchpad/ +bug/1116954 may also be implicated. I note that the sha1 computation is done from scratch in the event of needing to apply the \r hack, when it should be possible to just add one byte to the sha1 object and get an updated digest; but the chroot in question here didn't end with \r.
3) 2304ms: FileUploadClien t.addFile: 161-217. Mostly necessary reading and checksumming of the file, although I wonder if a larger chunk size would be more efficient.
4) 1883ms: zope/publisher/ publish. py:132 (... looking something up in SessionPkgData) to 137 (... post-webservice -call commit). Not quite sure what's happening in here - possibly something else to do with the enormous request, or maybe something tracelog-related?
I think that's as much as I can readily work out by OOPS inspection. More than that will probably require stepping through or profiling this locally.