BranchSet:CollectionResource:#branches timeouts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Critical
|
Robert Collins |
Bug Description
17 SELECT Person.account, Person.
GET: 17 Robots: 2 Local: 2
5 https:/
OOPS-1898E1410, OOPS-1898G1864, OOPS-1898G1918, OOPS-1898G26, OOPS-1898G884
Branch: launchpad-rev-12568
Revno: 12568
SQL time: 7939 ms
Non-sql time: 5269 ms
Total time: 13208 ms
Statement Count: 191
still lots of lazy-loaded persons etc
1 65 2680 41 2639 SQL-launchpad-
SELECT Person.account,
Person.icon,
Person.id,
Person.logo,
Person.name,
FROM Person
WHERE Person.id = $INTLIMIT $INT
2 50 1183 23 1160 SQL-launchpad-
SELECT CodeImport.
FROM CodeImport
WHERE CodeImport.branch = $INT
ORDER BY CodeImport.id
3 42 897 21 876 SQL-launchpad-
SELECT Product.
FROM Product
WHERE Product.id = $INTLIMIT $INT
4 13 2131 163 1968 SQL-launchpad-
SELECT Branch.
Branch.id,
Branch.name,
FROM Branch
WHERE Branch.id = $INTLIMIT $INT
Related branches
- Steve Kowalik (community): Approve
-
Diff: 146 lines (+55/-6)5 files modifiedlib/lp/code/model/branch.py (+1/-1)
lib/lp/code/model/branchcollection.py (+15/-0)
lib/lp/code/model/tests/test_branch.py (+2/-0)
lib/lp/services/database/bulk.py (+25/-5)
lib/lp/services/database/tests/test_bulk.py (+12/-0)
Changed in launchpad: | |
status: | Fix Committed → Fix Released |
Current content - because this is likely transient depending on which branches are present (unless it regressed with a lazr.restful change, but I think that that is unlikely).
{"total_size": 50, "start": 0, "entries": [{"control_format": "Bazaar-NG meta directory, format 1\n", "unique_name": "~stephen- tiedemann/ nfcpy/trunk" , "date_last_ modified" : "2011-03- 14T10:10: 58.104329+ 00:00", "sourcepackage_ link": null, "merge_queue_link": null, "private": false, "registrant_link": "https:/ /api.launchpad. net/1.0/ ~stephen- tiedemann", "linked_ bugs_collection _link": "https:/ /api.launchpad. net/1.0/ ~stephen- tiedemann/ nfcpy/trunk/ linked_ bugs", "branch_format": "Bazaar Branch Format 7 (needs bzr 1.6)\n", "last_mirrored": "2011-03- 14T10:10: 52.918060+ 00:00", "subscriptions_ collection_ link": "https:/ /api.launchpad. net/1.0/ ~stephen- tiedemann/ nfcpy/trunk/ subscriptions", "lifecycle_status": "Development", "last_scanned_id": "<email address hidden>", "dependent_ branches_ collection_ link": "https:/ /api.launchpad. net/1.0/ ~stephen- tiedemann/ nfcpy/trunk/ dependent_ branches", "http_etag": "\"b8d5d008b5c0 e7cc97df4d0f1e0 ac7c0987d5d7d- d2c17cc01dc7cf0 c4f881eca7db20e aaddbfd30e\ "", "spec_links_ collection_ link": "https:/ /api.launchpad. net/1.0/ ~stephen- tiedemann/ nfcpy/trunk/ spec_links", "name": "trunk", "reviewer_link": null, "self_link": "https:/ /api.launchpad. net/1.0/ ~stephen- tiedemann/ nfcpy/trunk", "resource_ type_link" : "https:/ /api.launchpad. net/1.0/ #branch", "revision_count": 36, "repository_ format" : "Bazaar repository format 2a (needs bzr 1.16 or later)\n", "description": null, "landing_ targets_ collection_ link": "https:/ /api.launchpad. net/1.0/ ~stephen- tiedemann/ nfcpy/trunk/ landing_ targets", "mirror_ status_ message" : null, "subscribers_ collection_ link": "https:/ /api.launchpad. net/1.0/ ~stephen- tiedemann/ nfcpy/trunk/ subscribers", "recipes_ collection_ link": "https:/ /api.launchpad. net/1.0/ ~stephen- tiedemann/ nfcpy/trunk/ recipes", "project_link": "https:/ /api.launchpad. net/1.0/ nfcpy", "landing_ candidates_ collection_ link": "https:/ /api.launchpad. net/1.0/ ~stephen- tiedemann/ nfcpy/trunk/ landing_ candidates", "display_name": "lp:nfcpy", "branch_type": "Hosted", "bzr_identity": "lp:nfcpy", "merge_ queue_config" : null, "last_scanned": "2011-03- 14T10:10: 58.992661+ 00:00", "url": null, "whiteboard": null, "code_import_link": null, "web_link": "https:/ /code.launchpad .net/~stephen- tiedemann/ nfcpy/trunk", "owner_link": "https:/ /api.launchpad. net/1.0/ ~stephen- tiedemann", "last_mirror_ attempt" : "2010-04- 07T10:24: 04.800411+ 00:00", "date_created": "2010-01- 30T00:11: 07.745857+ 00:00"} , {"control_format": "Bazaar-NG meta directory, format 1\n", "unique_name": "~trb143/ openlp/ bugs", "date_last_ modified" : "2011-03- 14T10:10: 10.867000+ 00:00", "sourcepackage_ link": null, "merge_queue_link": null, "private": false, "registrant_link": "https:/ /api.launchpad. net/1.0/ ~trb143", "linked_ bugs_collection _link": "https:/ /api.launchpad. net/1.0/ ~trb143/ openlp/ bugs/linked_ bugs", "branch_format": "Bazaar Branch Format 7 (needs bzr 1.6)\n", "last_mirrored": "2011-03- 14T10:10: 26.244857+ 00:00", "subscriptions_ collection_ link": "https:/ /api.launchpad. net/1.0/ ~trb143/ openlp/ bugs/subscr...